www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: nuvolanotturna on December 20, 2010, 05:09:26 pm

Title: Texture problem with software renderer
Post by: nuvolanotturna on December 20, 2010, 05:09:26 pm
Hi I'm trying to use software renderer but I have some problem with textures.

Here is the result with with hardware renderer:
(http://elbuild.com/varie/testhard.png)

While this is the result with software renderer:
(http://elbuild.com/varie/testsoft.png)

I've read that multi-texturing isn't supported with software renderer and I don't know if my problem has something to do with that. Actually I'm adding just one texture but I'm not sure of the meaning of "multi texturing".

Here is the code I use to add the texture:
Quote
      o = loadModel("/Developer/ProgettiEL/VITA/modelli/kosciol/kosciol.3DS", 1);
      Texture skinTex = new Texture("/Developer/ProgettiEL/VITA/modelli/kosciol/kosciol.jpg");
      TextureManager.getInstance().addTexture("kosciol", skinTex);
      o.setTexture("kosciol");

Thanks for any help
Title: Re: Texture problem with software renderer
Post by: EgonOlsen on December 20, 2010, 11:24:15 pm
The software renderer might, other than the hardware one, need a call to recreateTextureCoords() ...or similar, i can't remember the exact name, after assigning the new texture.
Title: Re: Texture problem with software renderer
Post by: nuvolanotturna on December 20, 2010, 11:58:42 pm
Yes! It works! :)

Really thank you for being so helpful! :)
Title: Re: Texture problem with software renderer
Post by: EgonOlsen on December 21, 2010, 07:01:02 am
BTW: Multi-texturing means multiple texture layers per polygon.