setTexture on Object3D with a texture name that doesn't exist in Texturemanager

Started by madhava.s, January 22, 2013, 07:43:34 AM

Previous topic - Next topic

madhava.s

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.

EgonOlsen

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.

madhava.s

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.