I have problem. I try to load lz.osg file but display white terrain . this is my code. very simple but i dont understand problem
#include <osg/MatrixTransform> #include <osg/LightSource> #include <osgDB/ReadFile> #include <osgViewer/Viewer> int main( int argc, char** argv ) { osg::ref_ptr<osg::Node> model = osgDB::readNodeFile( "C:\\osg\\lz.osg" ); model->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON); osgViewer::Viewer viewer; viewer.setSceneData( model.get() ); return viewer.run(); } On 3/25/08, osg-users-requ...@lists.openscenegraph.org <osg-users-requ...@lists.openscenegraph.org> wrote: > Send osg-users mailing list submissions to > osg-users@lists.openscenegraph.org > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > or, via email, send a message with subject or body 'help' to > osg-users-requ...@lists.openscenegraph.org > > You can reach the person managing the list at > osg-users-ow...@lists.openscenegraph.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of osg-users digest..." > > > Today's Topics: > > 1. Re: Appeal for use of human names ( nicolas pe?a ) > 2. Re: Settings for the GPU Challenged? (Jean-Sebastien Guay) > 3. Re: A simple osgActiveX (Embed OSG viewer into HTML & VB.NET) > example (Wang Rui) > 4. Re: A simple osgActiveX (Embed OSG viewer into HTML & VB.NET) > example (Wang Rui) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 25 Mar 2008 01:06:40 +0100 > From: " nicolas pe?a " <mr.anot...@gmail.com> > Subject: Re: [osg-users] Appeal for use of human names > To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org> > Message-ID: > <490a7d2b0803241706rc7292a5t99dd7acbd007c...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi All, > I have been reading this conversation and others mails and I think that > the "cool names" are not the real problem but is easy to see that the > users who are rude and write in a very impolite way usually hide behind > "cool names". So after a long day of work when you have to answer a > couple of insulting "I FOUND A BUG!" mails from someone called > IceShark, is easy to put the blame on the "cool names" and write a > mail as the one that started this thread.I think it is not too much to ask > people to sing with a "normal" name or in the case you prefer a cool > one, being extra polite. > I am a 2 meters tall, 115 kilos, ex rugby player. In real life I always > have to be extra polite, smiling to every stranger I came across with > because experience have told me that I need to compensate for my > frightening look. I think that a "cool name" in a mailing list is an > equivalent to my look in real life as its use is very frequent among > those who just want to disturb. > > That said call me Nicolas or Mr.another, as you wish ;) > > Cheers, > > Nicolas > > 2008/3/25, Somerville, Andrew <andy.somervi...@appliedperception.com>: >> >> Colman, >> >> >> "Having said all of this, I meant no disrespect to anyone." >> >> >> I have to say that your email has to have been the most insulting thing >> posted to this list. It certainly seems that you did mean disrespect. >> >> Anyone can disagree civilly, but to start throwing what amount to insults >> around is a bit much. Why don't we take this back down a notch? >> >> Andy >> >> >> P.s. Robert can be cranky when he is busy, but I have yet to see anyone >> turn down his help. >> >> >> >> -----Original Message----- >> From: osg-users-boun...@lists.openscenegraph.org on behalf of Night Hawk >> >> Sent: Mon 3/24/2008 5:52 PM >> To: OpenSceneGraph Users >> Subject: Re: [osg-users] Appeal for use of human names >> >> >> Well Robert, >> >> Why don't you make it straight - " This is My list and things should >> go My way". >> >> At least thats the feeling you seem to be having when you said this: >> "....Otherwise I will just start ignoring posts. Then you don't get >> the >> support your want...." >> >> Thats either a broad assumption or miscalculation or at least >> disrespect for others who might be willing to help. >> >> What ever it is, you are making this a very bad experience for users >> by stipulating "if you want help, you have to do this". >> >> It reminds me only one word, "Monopoly". >> >> As for others like Andy and Gordon who are thinking "lets trade our >> personality to Robert because he is helping us" - I have only this to >> say - Save your self-respect guys. If he doesn't help - there would be >> no one for him to help to. You need to understand this. >> >> As for the cheques - let them ASK it, if they want. Robert, are you >> doing all this for those big cheques that Gordon is talking about ? I >> don't think so. Come on Gordon, Grow up. >> >> Having said all of this, I meant no disrespect to anyone. >> >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080325/00eae9f2/attachment.html > > ------------------------------ > > Message: 2 > Date: Mon, 24 Mar 2008 20:25:48 -0400 > From: Jean-Sebastien Guay <jean-sebastien.g...@cm-labs.com> > Subject: Re: [osg-users] Settings for the GPU Challenged? > To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org> > Message-ID: <1206404748.1206.16.camel@skywalker> > Content-Type: text/plain; charset=UTF-8 > > Hi Rick, > > Err, I said on the topic of changing resolutions: >> OSG itself does not do this, [...] > > Seems I was wrong from the other replies on this topic. I hadn't noticed > the new viewer allowed this... I was under the impression it only > allowed an undecorated window of the given size, without actually > changing the screen's resolution from what you've set your desktop to. > It seems I was mistaken, sorry about that... > > J-S > -- > ______________________________________________________ > Jean-S?bastien Guay jean-sebastien.g...@cm-labs.com > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > > > > ------------------------------ > > Message: 3 > Date: Tue, 25 Mar 2008 08:26:15 +0800 > From: "Wang Rui" <wangra...@gmail.com> > Subject: Re: [osg-users] A simple osgActiveX (Embed OSG viewer into > HTML & VB.NET) example > To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org> > Message-ID: > <7b5bbab40803241726i7d78fb73s94fac00dc8c7b...@mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > It's OK to handle URLs because osgDB::readNodeFile() accept URLs as well. :) > > ?08-3-25?Brian <osgsc...@gmail.com> ??? >> >> Hi Wang Rui, >> Thanks for sharing your code. I have been writing a plugin for Firefox >> using OSG. >> Does your current version handle URLs or just local files? >> >> Brian >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080325/c35d7138/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Tue, 25 Mar 2008 08:28:10 +0800 > From: "Wang Rui" <wangra...@gmail.com> > Subject: Re: [osg-users] A simple osgActiveX (Embed OSG viewer into > HTML & VB.NET) example > To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org> > Message-ID: > <7b5bbab40803241728h7c28372axba9082e138c9e...@mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > Only tested on Visual Studio 2005 SP1 and OSG 2.3.4 at present. > > ?08-3-24?xyc...@163.com <xyc...@163.com> ??? >> >> Hi, >> >> What's the version of OSG and Virual Studio you are running of osgActiveX? >> I meet more error while rebuild the project and regsvr32.exe the >> osgMFCAx.ocx. >> could give some help.Thank you. >> >> >> DonZin 2006.3.24 >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080325/a396b668/attachment.htm > > ------------------------------ > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > End of osg-users Digest, Vol 9, Issue 70 > **************************************** > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org