www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: ErDetEnAnd? on December 30, 2008, 06:04:26 pm

Title: Texture not using UV map in software mode
Post by: ErDetEnAnd? on December 30, 2008, 06:04:26 pm
If the texture fits a 2^x size, say 1024x1024, it is not scaled according to the UV map - this behaviour only for the software render. If it doesn't fit a 2^x size it is scaled and UV assigned correctly.

I've only tried this for textures larger than the object its assigned to.
Title: Re: Texture not using UV map in software mode
Post by: EgonOlsen on December 30, 2008, 08:15:33 pm
Try to call build() after assigning the texture to the object (or at least Object3D.recreateTextureCoords()). The software renderer needs some additional processing if the texture isn't 256*256, which both methods will do.
Title: Re: Texture not using UV map in software mode
Post by: ErDetEnAnd? on December 30, 2008, 08:31:37 pm
Argh... thx