Using Opengl with
Bluesss
You can create quite realistic 3D animations of Bluesss models. Recall that Bluess produces a C++Builder unit "modelrun1.cpp" that is used by the CSN project included in the package. Looking at the CSN source (csn.cpp) you will see that the progect creates two forms, Form1 and Form2. The last one is not visible. It will be activated and shown when you use OpenGL graphics. In fact, you may also use Form2 for other purposes.

To use OpenGL you can implement your own code or use the Bluesss tool that comes in GLR.CPP. To do this, you will need glu.cpp, glut.cpp.
GLR.cpp unit includes some basic OpenGL operations. Using it, you can easily create some geometrical figures with texture and read and display shapes defined in ASCII STL files. The tool does not include reflexive surfaces or figures. Anyway, you should be familiar with OpenGL. If not, consult any of the OpenGL manuals and help files available on the Web.

The general purpose of GLR is to initialize OpenGL, to create 3D scenaries and view them from the distance stored in the radius variable, with view algles al, be and ga.

The Bluesss package includes the source code for two example programs that use OpenGL.
The file plant.csm is a simulation Bluesss program. It simulates several abstract plants growing over a green area. First, a plant trunk grows, then a number of "flowers" arise. The view angle and the color of the flowers change. Then the light source moves.
See the plant.csm source code for more comments on the model.

The C++Builder glexa0.bpr is a complete project that uses GLR without Bluesss. You can use and modify this project just to create 3d graphics. Note that it uses a small auxiliary unit glaux.cpp. See the glexa1.cpp source code for more information.
Below: sample shapes of figures created with Bluesss GLR tool.
New Bluesss feature
sq_grnsm.gif
Other links
sq_grnsm.gif
Click here to go to the main Bluess page