www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: entis on February 27, 2008, 09:38:38 am

Title: Texture ugly look
Post by: entis on February 27, 2008, 09:38:38 am
Hi,

I have noticed that the same texture (see a ladder on the picture) placed to the different parts of an object looks very different (depending on angle/distance??)... I saw such effect even in 3DS Max... How can I impove this?

(http://img186.imageshack.us/img186/5333/forforumid3.gif) (http://imageshack.us)

Thanks.
Title: Re: Texture ugly look
Post by: EgonOlsen on February 27, 2008, 10:30:41 am
I can't tell anything from a screen shot of that size. Isn't there a bigger version available?
Title: Re: Texture ugly look
Post by: entis on February 27, 2008, 10:46:38 am
Here it is (a bit bigger)...

(http://img149.imageshack.us/img149/1048/forforumxe4.th.gif) (http://img149.imageshack.us/my.php?image=forforumxe4.gif)
Title: Re: Texture ugly look
Post by: EgonOlsen on February 27, 2008, 06:04:19 pm
Looks like you are complaining about texture aliasing, which is an normal undersampling artifact. You are using the software renderer, which limits your options to handle this to two possible solutions:

a) Increase the number of samples by using a FSAA mode (http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html#SAMPLINGMODE_OGSS (http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html#SAMPLINGMODE_OGSS) or http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html#SAMPLINGMODE_OGSS_FAST (http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html#SAMPLINGMODE_OGSS_FAST)). This will improve image quality but will reduce performance

b) Try mip mapping by using the MipMapper-class that is available in the download section. You just add the objects to be mip mapped to it by calling addObject() and call mipMap() before rendering the scene. There is a performance drop but it shouldn't be too large.