[Papervision3D] frustrated - can't find my model

dsdsdsdsd shannonhburnett at hotmail.com
Tue Jul 29 11:56:39 PDT 2008


eventlistener approach worked, thanks;

QUESTION, how do you get models into PV3D without collada???? do you only
use primitives??

QUESTION, why do you like the bytearray method???


thanks
dsdsdsdsd






xero wrote:
> 
>  hey,
> your problem is that your collada hasnt
> loaded yet. you have two options, embed
> your dae into your swf, or load it externally.
> 
> if you embed it
>  ======================================================
> private var myRealFile:DAE;
> 
> [Embed(source="assets/yourFile.dae", mimeType="application/octet-stream")]
> var yourEmbededFile:Class;
> 
> private function init() {
>    myRealFile = new DAE();
>    myRealFile.load(XML(new yourEmbededFile(), material);
> }
> 
> or you could use a bytearray (i use this method)
> ======================================================
> private var byteArray:ByteArray;
> private var thing:DAE;
> 
>  [Embed(source="assets/yourFile.dae",
> mimeType="application/octet-stream")]
> var yourEmbededFile:Class;
> 
> private function init() {
>   byteArray = new yourEmbededFile();
>   thing:DAE = new DAE();
>   myRealFile.load(byteArray, material);
>   scene.addChild(thing);
> }
> 
> or just wait for the file to completely load
>  ======================================================
> private var myRealFile:DAE;
> 
> private function init() {
>   myRealFile = new DAE();
>   myRealFile.load(XML("yourFile.DAE", material);
>   myRealFile.addEventListener(Event.COMPLETE, loaded);
> }
> private function loaded(e:Event) {
>   pvo_renderer.startRendering();
> }
> 
> 
> personally i dont use collada/dae very often.
> so i hope one of these techniques help!
> ps, these TONZ of great code on
> http://nabble.com/Papervision3D-f22855.html
> 
> 
> HTH!
> ____  ___
> \   \/  /___________  ____
> .\     // __ \_  __ \/ _  \
> ./     \  ___/ | | \( <_>  )
> /___/\  \___  >__|---\____/
> |     \_/   \/        |
> | xero harrison       |
> | xero.nu at gmail.com   |
> | http://xero.nu      |
> | http://fontvir.us   |
> | http://0x000000.nu  |
> | http://xero.owns.us |
> `---------------------'
> 
> 
> 
>>
>> ---------- Forwarded message ----------
>> From: dsdsdsdsd <shannonhburnett at hotmail.com>
>> To: papervision3D at osflash.org
>> Date: Tue, 29 Jul 2008 09:27:33 -0700 (PDT)
>> Subject: [Papervision3D] frustrated - can't find my model
>>
>> hello;
>>
>> forgive me for being so clueless ...
>>
>> I have a simple .dae: a cube with material created with blender; the cube
>> sits at blender ( 0 , 0 , 0 );
>>
>> I have a standard .as:
>> pvo_renderer        = new BasicRenderEngine( )                      ;
>> pvo_scene           = new Scene3D             ( )                      ;
>> pvo_camera          = new Camera3D           ( )                      ;
>> pvo_camera.target = null
>> ;
>> pvo_viewport        = new Viewport3D   ( 0 , 0 , true , false )   ;
>> addChild              ( pvo_viewport )
>> ;
>>
>> var lvo_collada : DAE  = new DAE(  )                  ;
>> lvo_collada.load         ( "assets/07_29_08.dae" )  ;
>> pvo_scene .addChild   ( lvo_collada )                  ;
>>
>> pvo_renderer.renderScene( pvo_scene , pvo_camera , pvo_viewport ) ; //
>> called in an enterframe
>>
>>
>>
>> I am using ...Papervision3D\branches\GreatWhite\src   as my classpath
>> which
>> I presume is the most recent version of PV3D;
>>
>>
>> when I run this I do not see anything; what am I missing?
>>
>>
>>
>> thanks;
>>
>> Shannon Burnett
>> Chicago
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/frustrated---can%27t-find-my-model-tp18716072p18716072.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/frustrated---can%27t-find-my-model-tp18716072p18718886.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list