Author Topic: how to make a Sky Dome  (Read 1061 times)

Offline Charles

  • byte
  • *
  • Posts: 7
    • View Profile
how to make a Sky Dome
« on: May 31, 2013, 03:52:56 pm »
I am wondering how make a sky dome.I tried to make a sphere or box to surround the whole scene.But the textured can't be seen from inside the surrounding ball or box.How to resolve it?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12081
    • View Profile
    • http://www.jpct.net
Re: how to make a Sky Dome
« Reply #1 on: May 31, 2013, 05:13:47 pm »
That's caused by the backface culling. Either do setCulling(false); or call invert() on the object before calling build(), if you need proper normals.
« Last Edit: June 02, 2013, 09:22:23 am by EgonOlsen »

Offline Charles

  • byte
  • *
  • Posts: 7
    • View Profile
Re: how to make a Sky Dome
« Reply #2 on: June 02, 2013, 02:25:59 am »
That's it! Thx!