www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: hika00 on August 03, 2012, 10:11:01 am

Title: get TextureName from loaded 3ds
Post by: hika00 on August 03, 2012, 10:11:01 am
Object3D[] temp = Loader.load3DS( is , 1.0f );
for( int i = 0, j = temp.length ; i < j ; i++ ){
   log( temp.getName() + ":"+ _textureManager.getNameByID( temp.getPolygonManager().getPolygonTexture(0) ) );
}
--------------------------------------------------------
box1:--dummy--
box2:--dummy--
box3:--dummy--
....

How can I get the right Texture names?
Title: Re: get TextureName from loaded 3ds
Post by: hika00 on August 03, 2012, 10:27:01 am
and...

log( temp.getName() + ":"+ temp.getTranslation().toString() );
-----------------------------------------------------
box1:[0.0, 0.0, 0.0]
box2:[0.0, 0.0, 0.0]
box3:[0.0, 0.0, 0.0]
...

How can I get th right position?
Title: Re: get TextureName from loaded 3ds
Post by: hika00 on August 03, 2012, 10:37:52 am
log( temp.getName() + ":"+ temp.getTransformedCenter().toString() ); :)
Title: Re: get TextureName from loaded 3ds
Post by: EgonOlsen on August 03, 2012, 02:39:06 pm
log( temp.getName() + ":"+ _textureManager.getNameByID( temp.getPolygonManager().getPolygonTexture(0) ) );
Looks fine at first glance unless the object has no proper textures. Can you post the log output from loading the object?