Re: [Plib-users] How to load 3D model
Brought to you by:
sjbaker
From: <p.l...@ci...> - 2005-12-03 08:01:12
|
Scrive Hemalatha Sharma <hem...@re...>: > > Hi, > I am using Flightgear-0.9.4. > I want to load a 3D model(*.ac or *.3ds) permanently into the > screen during simulation . > Plz suggest u views regarding this. > > Thanks & Regards, > Deepha The Plib SSG function: ssgEntity *ssgLoad( const char *fname, const ssgLoaderOptions *options = NULL ) ; does load one of the supported 3D file formats choosing the actual loading function by filename extension (e.g. ssgload3DS) - you can add the resulting ssgEntity to some branch node of the scene graph (ssgRoot, ssgTransform, etc), e.g.: ssgRoot *scene = new ssgRoot(); scene->addKid( ssgLoad( "your3Dfilename.3ds" ) ); Hope this is an answer to your question. Greetings - Paolo |