Examples

Example 1 : Circle Display

This example show how using GLC_lib to display a circle with the class GLC_Circle.

Tags: 

Example 3: Cylinder display

From example02 (Point of view handling) replace the circle by a cylinder GLC_Cylinder and add a light GLC_Light to the scene.
Only the difference compared to the example02 is developed.

Tags: 

Example 4: Several objects display

Now that we know how displaying a circle and a cylinder, we will use GLC_3DViewCollection class to display a set of objects enbeded in GLC_3DViewInstance class.
Only the difference compared to the example03 is developed.

Tags: 

Example 5: Objects positioning

Now that we know how displaying several objects by uses GLC_World class which contains a GLC_3DViewInstance class and a GLC_StructOccurence which the root assembly. This example show how to construct an assembly and how to positioning objects by using transformation with GLC_Matrix4x4 class.
Only the difference compared to the example04 is developed.

Tags: 

Example 6: Loading OBJ File

Now we will see how to load a 3D Model file with the GLC_Factory and display it by GLC_World class. In this example an OBJ file format is loaded.
Other supported format can be loaded in the same way. (The file extension is used by GLC_Lib to determine the file format.)

Tags: 

Example 7: Texture & Background image

Now we will see how to texturing objects with GLC_Texture class and how to add a background image with GLC_Viewport class.
Only the code related to texture and background image is developed.

Tags: 

Example 8: Selection (Christmas tree decoration)

Now we will see how to select object with GLC_Viewport class. In this example, we can change ball color by left click on it.
Only the code related to selection developed.

Tags: 

Example 9: Collada Star Ship

Now we will see how to load a Collada File with GLC_Factory class, how to create stars with GLC_PointSprite and how to turn around the star ship with GLC_Camera.
Only the code related to selection developed.

Tags: