www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: RhoX on November 18, 2011, 01:45:19 pm

Title: Skybox good size?
Post by: RhoX on November 18, 2011, 01:45:19 pm
Hello everyone,

I've been developing a Android game with jPCT-AE and now I have a problem with this skybox stuff. I read some older topics and I got that testing on emulator is not a good idea (I'm gonna find some Android phone to test). My question is: how do I determine a skybox size good enough for the application? Let me explain:

Ealier, I was setting
 
      sky = Skybox(80);

This made my screen black XD.

After I read some topics, I've set

     sky = Skybox(10000);

With this, I've got some very good results.

What about that? Any suggestions?

Thank you in advance,

RhoX
Title: Re: Skybox good size?
Post by: EgonOlsen on November 22, 2011, 01:01:17 pm
80 is bit a small. Whatever looks good is fine. Just don't use very high values, because you'll run into accuracy issues with the zbuffer then.
Title: Re: Skybox good size?
Post by: Thomas. on November 22, 2011, 01:31:40 pm
Does not matter on size of skybox. Render skybox -> clear z-buffer -> render your models
Title: Re: Skybox good size?
Post by: RhoX on November 26, 2011, 04:32:31 am
Hummm, I understand.

It is good to know that clearing the z-buffer makes the skybox render the objects anyway.

Thanks for the reply!