Re: [Plib-users] Identifying objects after loading an AC3D- modell
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-03-18 20:17:56
|
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----- |