Jean-Sébastien Guay wrote:
Hello Frank,

However, I haven't the faintest idea of what I'm doing and why I'm doing the things I'm doing. I can copy code, change a few file/path strings, even add some drawables to a scene and view the new scene in the basic viewer (following the tutorials) and it all looks really pretty. But, I feel at a loss when I try to use the osgviewerWX example in my own project because it doesn't work as I expect it to and haven't got a clue why. It's probably because I forget something very basic, but I don't know that the basic thing needs to be done.

Well, if you have all that information I can't see why you would be struggling with basic concepts...

I think that it's probably due to the fact that I'm fairly new at this whole game. I simply can't read code and understand why the code is there. Why, for instance, is there a GraphicsWindow and a GraphicsContext? What does the Viewer do and why do I need to call setGraphicsContext? Ok, from the code it's apparent that I should, but I haven't the faintest idea why. Reading the wiki or the doxygen documentation just doesn't provide me with that information.

In short, again, I would like to know the theory, the design principles, etc. Is there such documentation available?

If you explain what your problems with osgviewerWX are, perhaps someone who knows it well on this list can help you. You assume it's something basic, but we can't know unless you give us more information. What are the symptoms you're seeing?

In the meanwhile I've been able to get things working. Not in the way I would like everything to work, but I at least have a working canvas for OSG to render on.

What went wrong was that the code which was generated by wxGlade, which I used for building a simple GUI, simply didn't cooperate with the example code provided with OSG. It's quite a long story, but all in all and for the moment I'm a happy camper. I expect things to break apart again rapidly though, as soon as I try and implement something else. ;) Partly because I still only have but a slight understanding of what's happening under the hood.

In any case, thanks for the pointers.

Frank

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

Reply via email to