Author Topic: adding surrounding image  (Read 872 times)

Offline bili

  • byte
  • *
  • Posts: 39
    • View Profile
adding surrounding image
« on: March 04, 2012, 02:58:39 am »
I seen two example project using an object on a plane look very nice but the surrounding still uses the background colour. If I want to add in a new background, does it meant I need to add in something like a cube or sphere so that the model is contained within it? Is there easier way to do this?

Cheers.

Edit: I see, I need to use a skybox. Any tutorial on how to use a sky box? I see none on wiki.
« Last Edit: March 04, 2012, 01:39:23 pm by bili »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: adding surrounding image
« Reply #1 on: March 04, 2012, 08:30:13 pm »
Yes, you can use the SkyBox for this. Usage is pretty simple:

  • Pick the six textures that you want to use for the skybox (https://www.google.com/search?q=sky+box+textures).
  • Create the skybox using these textures and a reasonable size (that depends on your scene. Try 10000 as a start, i've no idea which value to use).
  • After rendering your scene, call render(...) on the skybox in addition

Offline bili

  • byte
  • *
  • Posts: 39
    • View Profile
Re: adding surrounding image
« Reply #2 on: March 04, 2012, 09:26:57 pm »
I got it. Thanks!