Author Topic: Texture problem with software renderer  (Read 2323 times)

Offline nuvolanotturna

  • byte
  • *
  • Posts: 6
    • View Profile
Texture problem with software renderer
« 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:


While this is the result with software renderer:


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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Texture problem with software renderer
« Reply #1 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.

Offline nuvolanotturna

  • byte
  • *
  • Posts: 6
    • View Profile
Re: Texture problem with software renderer
« Reply #2 on: December 20, 2010, 11:58:42 pm »
Yes! It works! :)

Really thank you for being so helpful! :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Texture problem with software renderer
« Reply #3 on: December 21, 2010, 07:01:02 am »
BTW: Multi-texturing means multiple texture layers per polygon.