Re: [osg-users] Simple Loading Tutorial

2009-11-30 Thread Jean-Sébastien Guay
Hello Sam, When I run the code to load a simple object (that you supplied above) with a direct path, I get no errors but osgviewer seems to load nothing, just the default blue background with no model. Ive tried different .osg and .obj files but no luck. If you're on Windows, make sure you

Re: [osg-users] Simple Loading Tutorial

2009-11-28 Thread Sam Gidding
Hi, Thanks Paul, just a question - where you are loading cow.osg - how do i define where this is kept? Ive just got the pdf you linked so will have a read. ... Thank you! Cheers, Sam -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20514#20514

Re: [osg-users] Simple Loading Tutorial

2009-11-28 Thread Paul Martz
Sam Gidding wrote: Hi, Thanks Paul, just a question - where you are loading cow.osg - how do i define where this is kept? Ive just got the pdf you linked so will have a read. There is an OSG_FILE_PATH variable, but of course you can always just specify the full path. FYI, in addition to

Re: [osg-users] Simple Loading Tutorial

2009-11-28 Thread Sam Gidding
Thanks for that- I have tried to get the osg wiki FAQ/tutorials but the site has been down since Wednesday so having trouble getting to them at the moment. When I run the code to load a simple object (that you supplied above) with a direct path, I get no errors but osgviewer seems to load

[osg-users] Simple Loading Tutorial

2009-11-27 Thread Sam Gidding
Hi all, I've recently been trying to get my head around OSG, been trying the inbuilt examples and am not getting very far. I thought i'd check out the OSG tutorials but the site seems to have been down for the last few days now. Is there any specific example that I should be looking at just

Re: [osg-users] Simple Loading Tutorial

2009-11-27 Thread Paul Martz
Have you taken a look at the OSG Quick Start Guide and its examples? http://www.skew-matrix.com/OSGQSG/index.html Anyway, a bare-bones OSG example would be: #include osgDB/ReadFile #include osgViewer/Viewer int main() { osgViewer viewer; viewer.setSceneData( osgDB::ReadNodeFile( cow.osg )