Hi, > i have been messing for a while with OpenGL's vertex and fragment programs. > Very fun indeed, and very powerful. Now i saw that OpenSG has an interface > for loading and using ARB_program stuff. My question is: are there any > tutorials that can teach me how to use my own ARB_programs? I have built 2 > lil programs that in fact fully emulate the fixed OpenGL rendering pipeline, > and i made em work in pure OGL enviroment. Now it is time to get serious and > try to build up the same thing in OSG.
You are actually almost done. Probably the only thing you need to do is create a Vertex/FragmentProgram chunk for the material of your geometry and add your program to that chunk using the "setProgram" Method. You can also use the "read" method to read the program from a file. See "Source/System/State/testFragmentProgramRender.cpp" for an example. BTW. I consider it rather improbable that you implemented the *full* OpenGL pipeline in a *little* program. I've seen examples trying to do the same and they spread several pages of fragment program code. Manfred. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
