HI Marcus.... Sorry for the top post. But yahoo mail works like that....
Anyway.. attached is the test code. My original code is much bigger. But I have trimmed it to avoid confusion, I have checked this code also. And getting the same Blank Window. Basically there are three layers. Main -------- FltkGUI ------------ FltkWindow where FltkWindow is derived from glWindow , where we are supposed to draw objects, and where I have used Passive Window. Tell me if there is any confusion. -------Jaideep Marcus Lindblom <[EMAIL PROTECTED]> wrote: (P.S. Please don't top-post. http://catb.org/jargon/html/T/top-post.html) Jaideep Khadilkar wrote: >> >> Marcus Lindblom wrote: >> >> Jaideep Khadilkar wrote: >> > Hi..... >> > >> > I want to use Fltk as GUI with OpenSG. I am new to OpenSG and don't >> > know how to proceed. Is it the case that only Glut , Qt can be >> used??? >> > In my Fltk code I have created a class called FltkWindow derived >> from >> > GlWindow(which is a special class in Fltk) , where I put my >> OpenGL calls >> > to draw in the window. >> > But how to use that with OpenSG?? Do I have to use PassiveWindow??? >> > All the examples with OpenSG are in GLUT or QT, so not being able to >> > figure out. It will be really helpful if u can give an example. >> >> PassiveWindow is waht you want to use. It's quite simple, just call >> render on it where you'd put your glClear()/glDraw() calls. >> >> There might be an example or test in the Source/System/Window directory. >> > I went thru some test examples in System/Window folder. > I tried calling window->render(renderAction) in my code, but it drew > only black in my window. That's something. A crash would've been worse. > what i want to know is, with fltk do we have > to manually > draw our scenegraph thru traversing it and calling openGL commands as > appropriate to my object types, or OpenSG does it for us??? Yes. You need to link your nodes and set the root-node in the SSM, then just call redraw(). > In other examples, they have used simplemanager and just assigning it > the GlutWindow and calling redraw on simplemanager does the work. > Can we do something like that with fltk or I have to code it without > simplemanager???? The SSM should work. By using PassiveWindow you let Fltk handle the GL context setup (instead of Glut). Could you post your setup & rendering code? (The OpenSG calls.) Cheers, /Marcus ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users --------------------------------- Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
Code.tar.gz
Description: 1948330263-Code.tar.gz
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
