www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: cyberkilla on December 16, 2006, 02:49:50 am

Title: Increasing Quality in Software Mode
Post by: cyberkilla on December 16, 2006, 02:49:50 am
Hey I know it might be because im rendering small,
but I seem to get a lot of diffusion.

Is there some way of making the shading a bit cleaner, without
having to resort to scaling a larger render?
Im really trying to keep my rendering costs down.

It looks beautiful if I render at 400px by 400px, then scale down to 200x200,
even at the lowest scaling quality(linear, i imagine).
However, i dont want to loose any speed.

Any ideas?
(http://rpwar.com/cyber3/LBA00000.jpg)
Title: Increasing Quality in Software Mode
Post by: EgonOlsen on December 17, 2006, 12:36:43 am
It's hard for me tell what's "wrong" here because of the small size of the image. Maybe disabling texel filtering with Object3D.setFiltering(<boolean>) helps?
Title: Increasing Quality in Software Mode
Post by: cyberkilla on December 17, 2006, 01:21:47 am
Ill check it out!:)

Thanks;) Also, im using a Magenta background color. Could this
have some influence? Maybe some strange environmental reflection?
Title: Increasing Quality in Software Mode
Post by: cyberkilla on December 17, 2006, 02:33:00 am
Im afraid it doesnt seem to make any difference:(.

I believe most of it is to do with zbuffer.
If i make it 400x400, as i explained, I get a perfect render,
but I drop from 120FPS to 43FPS, which I fear may not be an acceptable
speed, considering I am measuring this without drawing any maps, etc.

I wonder what I can do.
Title: Increasing Quality in Software Mode
Post by: EgonOlsen on December 17, 2006, 02:07:41 pm
I'm still not sure what the problem actually is. Maybe you can show two different images, one with a fine render and one with a bad one. I can't see anything bad on the one that you've posted without any comparision.
Title: Increasing Quality in Software Mode
Post by: cyberkilla on December 17, 2006, 04:44:36 pm
Feel free to hit me now.

I had the colour depth at 16bit!
Moving it up to 24, all the strange colours are gone.
All that remains are the bad z fighting on the eyes, but I will simply
change the way I model them:) thanks again
Title: Increasing Quality in Software Mode
Post by: EgonOlsen on December 17, 2006, 08:09:04 pm
No problem. I'm glad that you finally solved it.