[project1dev] Project1 - SVN Update 689

  • From: dhapache@xxxxxxxxxxxxxxxxxxx (Apache User)
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Sat, 17 Apr 2010 12:17:17 -0700 (PDT)

User:atrix256

Message: You can now set skyboxes for a map from the editor.

A skybox is an object or multiple objects that are drawn in the distance and 
you can never reach them (they are infinitely far away basically).

This is useful for putting a sun or a moon in the sky, or distant mountains.

The voidmap has a skybox for the nebula and stars.  It's set up the old way, 
but we'll be able to do things like that from the editor now instead of 
manually having to hack it together in script.

Here's how to do it:

1) Use the editor to make your skybox scene (mountains, sun, moon, whatever) 
like you normally would make a map by placing models, scaling and rotating 
them.  keep in mind that the origin (0,0,0) is where the camera will be viewing 
the scene from always, so make your scene look good when viewed from the 
origin.  When you are done save the map.

2) Load up the map you want to use this sky box in and under the file menu 
choose "Add Skybox".  Select the _geometry.lua file you created in step 1 and 
click ok.  Your map from step 1 will now be the skybox for this second map.  
Save the map to save your changes.

If you ever want to change a map's skybox here's how you do that...

1) Load up the map that has the skybox you want to change.  Under the file menu 
choose "Clear Skybox" and click OK.  this will remove all skybox models.

2) under the file menu choose "Add SkyBox" to set your new skybox

Note that you can add multiple skybox maps (as many as you want) to a map.

Also note that when you add a skybox to a map that it copies the geometry and 
stores it inside of that map file.  This means that if you edit the origional 
map file that you are using for a skybox, that the maps that use that skybox 
WONT be automatically updated.  You have to open up each map, clear the skybox 
data and re-add the file for them to be updated.

Any questions or problems let me know!

<Files Changed>
U   ARRelease.exe
U   AR_AnimModels.cpp
U   AR_AnimModels.h
U   AR_EditorUI.cpp
U   AR_EditorUI.h
U   AR_Map.cpp
U   AR_Map.h
U   WxIDs.h


==============================
Project 1 Dev mailing list
to unsubscribe, please send an email request to demofox@xxxxxxxxxxx
Project 1 website: http://project1.demofox.org
Project 1 SVN repository: http://pyotek.com/project1

Other related posts:

  • » [project1dev] Project1 - SVN Update 689 - Apache User