I tried to send this mail from my other mailadress but it didn't seem to work so I'm trying again now!
Hello, I have been looking at openSG for a while now and I have some questions. I am using windows 2000 with visual studio .net 2002 First I think the documentation available for download http://www.opensg.org/downloads/OpenSG-1.2.0-srcdoc.tgz is corrupt. Can someone verify if this is so? When I try to compile openSG from the OpenSG-1.2.0-src.tgz file (from VSbuild\VS7) first I get some out of heap space errors, then I get an error that I need a file called freetype.h so I download something called freetype. But then I get a bunch of other error messages. Is there a list of what is needed? Or is it supposed to work? Maybe I got the wrong version of freetype? Since I only need to modify a few files maybe I don't need to compile the whole OpenSG. How can I use modified files without compiling OpenSG? I've tried to make my own version of SimpleSceneManager (just putting it in my project directory) but I get the error: "error C2491: 'osg::SimpleSceneManager::_highlightMaterial' : definition of dllimport static data member not allowed" Now to what I'm actually trying to do: I need to use vertex and pixel shaders. Is there any support for Cg? That would help me a lot. I've tried to take a look at the test program for the vertexProgram but I can't figure out how the parameters are passed to the program. It seems like the material properties are passed directly to the vertex program. Is there a way to manually say what is passed to the program or is it explained somewhere how it works? I'm trying to add glow to emissive materials in my models. This I plan to do by first drawing the scene with only the emissive parts to a secondery buffer then copying the buffer to a texture and then blurring the texture by running it through a vertex and fragment program a few times. When I finally have the blurred texture I want to apply it to the original scene using blend filter. (Just drawing a texture on top of the scene) Can StereoBufferViewport be used for the extra buffer I need? And can I get the scene from the second buffer as a texture by using GrabForeground? I realize I get an osg::Image from the grabforground, can this Image be used as a texture in the sense that it can be passed to the vertex program as a parameter? Is there any problems regarding the rendering of multiple passes or is it just to do each step, one at a time? One last thing I need is to be able to draw a texture to the foreground. For this I would also like to use a vertex program. I need the vertexprogram to rotate and resize the polygon that the texture is rendered on. This is the same as I mentioned before except that the texture doesn't cover the the whole viewport this time. I would need something that works like gluOrtho2D. Is there anything like this in openSG or what should I do? I hope somebody can help me with atleast some of my questions. Thanks in advance! Regards, Johan ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
