Hi Peter,

2011/9/30 PP CG <[email protected]>:
>
> How to add and use OpenGL code within OSG. Now and then there are some
> mails on the List, but they seem already quite advanced. Could you possibly
> add few examples about this topic ?
>

Don't worry about this. The title may not be able to tell the methods
used directly. In fact there are already several examples showing how
to integrate OSG and OpenGL in different ways:
[Ch2] Using draw callbacks to execute NVIDIA Cg functions: use camera
draw callbacks to call NVCG functions, can be easily extended to OGL
functions.
[Ch3] Drawing a NURBS surface: customize Drawable to execute GLU functions
[Ch6] Creating a piece of cloud: customize Drawable to render cloud particles
[Ch6] Customizing the state attribute: customize StateAttribute to call NVCG

I'm also thinking of implementing a recipe in the last chapter that
make use of OSG in a GLUT program. But it depends. :-)

Wang Rui
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to