www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: madhava.s on January 22, 2013, 07:43:34 am

Title: setTexture on Object3D with a texture name that doesn't exist in Texturemanager
Post by: madhava.s on January 22, 2013, 07:43:34 am
setTexture on Object3D with a texture name that doesn't exist in Texturemanager logs an error and object doesn't showup is it expected behaviour.
Title: Re: setTexture on Object3D with a texture name that doesn't exist in Texturemanager
Post by: EgonOlsen on January 22, 2013, 07:52:04 am
Yes. What did you expect to happen instead? Depending on the configuration of Logger, it will either just log the error or raise an exception. If you just log it, the object will have the dummy texture assigned to it, which is all black. It actually should show up, just in black.
Title: Re: setTexture on Object3D with a texture name that doesn't exist in Texturemanager
Post by: madhava.s on January 22, 2013, 01:00:22 pm
Thanks Egon,
  I'm new JCPt, I was trying to set a texture if not available i want switch to another one. hence was expecting the exception. Thanks for pointing towards config.