This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Skybox: Difference between revisions
 material name in 2 lines  | 
				 added categories  | 
				||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 13: | Line 13: | ||
Unless all six images load correctly, no skybox will be displayed. For this reason it is recommended to start with a working skybox, and change one texture at a time, testing each image one at a time. Colors are applied to this test world to assist in identifying left/right and front/back materials.  | Unless all six images load correctly, no skybox will be displayed. For this reason it is recommended to start with a working skybox, and change one texture at a time, testing each image one at a time. Colors are applied to this test world to assist in identifying left/right and front/back materials.  | ||
Image size will be automatically scaled to fit. Maximum default image size for clients is 1024 by 1024 pixels. Power-of-two pixel dimensions are recommended, but not required. You will notice a thin black line in the corners, this is a bug.  | Image size will be automatically scaled to fit. Maximum default image size for clients is 1024 by 1024 pixels. Power-of-two pixel dimensions are recommended, but not required. You will notice a thin black line in the corners, this is a bug. This thin black line is not seen on GNU/Linux. It may only be on Mac OSX.  | ||
It is important to have 6 _different_ materials. Even if they all should look the same make them differ using for example the ambient or shader properties.  | |||
==Code==  | ==Code==  | ||
| Line 33: | Line 34: | ||
  end  |   end  | ||
  # For reference, Include the other two "Magic" Material names.    |   # For reference, Include the other two "Magic" Material names.    | ||
  #   |   # TeleMaterial will be available in  BZFlag version 3.0  | ||
  # teleporter texture    |   # teleporter texture    | ||
  material  |   material  | ||
| Line 52: | Line 53: | ||
  name LeftSkyboxMaterial     |   name LeftSkyboxMaterial     | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox1.png  | ||
  diffuse red  |   diffuse red  | ||
  end  |   end  | ||
| Line 58: | Line 59: | ||
  name FrontSkyboxMaterial  |   name FrontSkyboxMaterial  | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox2.png  | ||
  diffuse yellow  |   diffuse yellow  | ||
  end  |   end  | ||
| Line 64: | Line 65: | ||
  name RightSkyboxMaterial  |   name RightSkyboxMaterial  | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox4.png  | ||
  diffuse green  |   diffuse green  | ||
  end  |   end  | ||
| Line 70: | Line 71: | ||
  name BackSkyboxMaterial  |   name BackSkyboxMaterial  | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox5.png  | ||
  diffuse blue  |   diffuse blue  | ||
  end  |   end  | ||
| Line 76: | Line 77: | ||
  name TopSkyboxMaterial  |   name TopSkyboxMaterial  | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox3.png  | ||
  diffuse purple  |   diffuse purple  | ||
  end  |   end  | ||
| Line 82: | Line 83: | ||
  name BottomSkyboxMaterial    |   name BottomSkyboxMaterial    | ||
  matref skyboxBase  |   matref skyboxBase  | ||
  texture http://  |   texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox6.png    | ||
  diffuse white  |   diffuse white  | ||
  end  |   end  | ||
| Line 88: | Line 89: | ||
|}  | |}  | ||
[[Category:Map Making]]  | |||
[[Category:Map Objects]]  | |||
Latest revision as of 19:59, 8 February 2017
Skyboxes replace the normal scenery of BZFlag.
The material names needed to create a skybox are:
- LeftSkyboxMaterial
 - RightSkyboxMaterial
 - TopSkyboxMaterial
 - BottomSkyboxMaterial
 - FrontSkyboxMaterial
 - BackSyboxMaterial
 
Working with Skyboxes.
Unless all six images load correctly, no skybox will be displayed. For this reason it is recommended to start with a working skybox, and change one texture at a time, testing each image one at a time. Colors are applied to this test world to assist in identifying left/right and front/back materials. Image size will be automatically scaled to fit. Maximum default image size for clients is 1024 by 1024 pixels. Power-of-two pixel dimensions are recommended, but not required. You will notice a thin black line in the corners, this is a bug. This thin black line is not seen on GNU/Linux. It may only be on Mac OSX.
It is important to have 6 _different_ materials. Even if they all should look the same make them differ using for example the ambient or shader properties.
Code
world name SkyboxMaterialTest size 230 end options -set _drawCelestial 0 -set _drawClouds 0 -set _drawGround 1 -set _drawGroundLights 0 -set _drawMountains 0 -set _wallHeight 0 end # For reference, Include the other two "Magic" Material names. # TeleMaterial will be available in BZFlag version 3.0 # teleporter texture material name LinkMaterial addtexture http://cbg.bzflag.org/images/Panzer/borg/blackholes/nebula4.PNG end # -set _drawGround 0 will disable the GroundMaterial material name GroundMaterial addtexture http://cbg.bzflag.org/images/Panzer/borg/blackholes/nebula4.PNG end #Space Skybox material name skyboxBase color 1 1 .99999999 end material name LeftSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox1.png diffuse red end material name FrontSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox2.png diffuse yellow end material name RightSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox4.png diffuse green end material name BackSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox5.png diffuse blue end material name TopSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox3.png diffuse purple end material name BottomSkyboxMaterial matref skyboxBase texture http://images.bzflag.org/llegendary/Optic%20Delusion_skybox6.png diffuse white end #End Space Skybox  |