Author Topic: Skybox good size?  (Read 1499 times)

Offline RhoX

  • byte
  • *
  • Posts: 29
    • View Profile
Skybox good size?
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Skybox good size?
« Reply #1 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.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Skybox good size?
« Reply #2 on: November 22, 2011, 01:31:40 pm »
Does not matter on size of skybox. Render skybox -> clear z-buffer -> render your models

Offline RhoX

  • byte
  • *
  • Posts: 29
    • View Profile
Re: Skybox good size?
« Reply #3 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!