Share Tips, Code Samples, etc. with the Visual Prolog community.
Chan Bok
Active Member
Posts: 26
Joined: 13 Sep 2000 23:01

An OpenGL Application

Unread post by Chan Bok »

I recently launched a beta version of Axon Idea Processor (Axon2010) that uses GDI+ for 2D and OpenGL for 3D display (switcheable).

Many thanks to Gildas for pioneering OpenGL in VIP and sharing his knowhow by publishing the V3D package. Unlike V3D, the Axon version uses only opengl.lib and glu32.lib, but does not use vip7opengl.lib, glaux.lib, or c glue-codes.

OpenGL has many of the graphics features of GDI+, but is lacking in font support and hatch patterns. Performance is highly satisfactory due to the use of the graphics processor, frame buffers, and threading.

The software is still in the beta stage, and beta testers are most welcome.

Chan Bok
Axon Research
http://web.singnet.com.sg/~axon2000
Attachments
An example of the 3D display.
An example of the 3D display.
oo-gui.gif (119.48 KiB) Viewed 19906 times
Chan Bok
Active Member
Posts: 26
Joined: 13 Sep 2000 23:01

Unread post by Chan Bok »

Axon2010 is now post beta.
The Lite version is, as usual, freely available for download.

Chan Bok
Axon Research
Chan Bok
Active Member
Posts: 26
Joined: 13 Sep 2000 23:01

Unread post by Chan Bok »

Dear Erkki,

Firstly a belated congratulations to your PhD, and to your excellent work and blog,
and also your book that you showed me while in St. Petersberg.
I must admit I am overwhelmed by what I see.

As you can see I have experimented with both 2D and 3D.
I am not sure if you are referring to 2D or 3D, or both.

For 2D display I still use the GDI+ flat API on a conventional window for historical reason.
For a new project I will certainly consider the OO version.

For 3D much can be learned about OpenGL programming by studying Gildas' V3D package.

For a complex display with animation, performance become an issue.
For 2D, double-buffering is needed for smooth display.
3D has the advantage of hardware acceleration and buffer swapping.

Best Regards,

Chan Bok
Axon Research
Chan Bok
Axon Research
Chan Bok
Active Member
Posts: 26
Joined: 13 Sep 2000 23:01

Unread post by Chan Bok »

I don't have any examples other than the complete source codes (for Axon).
There are some examples in the Examples (that come with Visual Prolog) for drawing including a gdiplus demo.

Best Regards,

Chan Bok
Axon Research
Chan Bok
Axon Research
Gildas Menier
Active Member
Posts: 25
Joined: 8 Jun 2004 23:01

Unread post by Gildas Menier »

Hi James,

This may help you (see the end of the page for a (temp) download link) : http://www.arsaniit.com/en/prolog-tools ... opengl-v3d

The code should provide more or less what you need (the selection is also implemented using a single pass one-color draw when the user clicks with an off line buffer - I guess you see what I mean)

I am completely rewriting this package from scratch so this link won't be available too long. Feel free to pm to arsaniit if you have questions.

Best regards

Gildas
Post Reply