Hi everyone. I am currently looking for a couple of OSG samples. Maybe someone can offer a pointer or link to some existing code demonstrating the techniques.
1) one minimal code sample demonstrating the use of GLSL for vertex and fragment processing (e.g. render a triangle). This is because I would like to begin learning GLSL (so far I've done only ARB shaders) and base this on really simple code. The osgShaders sample is anything but minimal. 2) a sample demonstrating how to render the surroundings of an object into a cube map and to use that cube map to render reflections on the object. The cube map should not be static, but rather be updated dynamically (other objects, even animated ones would correctly show up in it). This is because I would like to display specific objects in a 3D scene which do require a bit of reflection and refraction to look believable (think of a glass filled with Whisky). I am not looking for raytracing quality. Is it even possible to design single OSG nodes (drawables) which add the required additional camera into the scene graph and manage the cube map rendering all by themselves? It would be very nice if this sort of feature encapsulation is possible. Because it allows that complex reflecting or refracting objects could be provided as a single OSG node without requiring much code changes to the existing main program. Christian _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

