Re: [Plib-users] Identifying objects after loading an AC3D- modell
Brought to you by:
sjbaker
From: Michael W. <mic...@ti...> - 2004-03-25 20:02:29
|
Hi Steve, in my '.ac' file I have the comment field "Tribune1". How can I tell the PLIB loaders to call a callback function in the application when they find this comment field ? Can you give me a strip of code-lines ? Best regards Michael ----- Original Message ----- From: "Steve Baker" <sjb...@ai...> To: <pli...@li...> Sent: Thursday, March 18, 2004 9:16 PM Subject: Re: [Plib-users] Identifying objects after loading an AC3D- modell > Michael Wessels wrote: > > Hi all, > > I am building my modells with AC3D. How can I identify in my c-code different objects of an AC3D-modell after loading it with ssgLoadAC ? > > I attach a comment to the model in AC3D. > > You can tell the PLIB loaders to call a callback function in the application when they find a comment field. > They then hand you the responsibility of allocating that node in the scene graph - so you can make it be > a ssgTransform node instead of a regular ssgBranch. > > In order to avoid actual comments in the '.ac' file triggering this, I put an unusual/distinctive > character or string at the beginning of the comment. > > Beware though - the AC3D modeller has a tendancy to rearrange your model tree - and in the process > it tends to delete the comments. > > Best advice is to build the model, get it looking completely right - and only add the magic comments > at the very end. > > ---------------------------- Steve Baker ------------------------- > HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> > HomePage : http://www.sjbaker.org > Projects : http://plib.sf.net http://tuxaqfh.sf.net > http://tuxkart.sf.net http://prettypoly.sf.net > -----BEGIN GEEK CODE BLOCK----- > GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- > V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ > -----END GEEK CODE BLOCK----- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users |