EZSkybox Script for Terragen
by Eric Forhan · 09/20/2002 (9:42 am) · 8 comments
Download Code File
It is pretty simple to use. Place this in your Terragen directory and make sure your directory path is correct in the script. Create (or load) your sky. Run the script from the "Terragen-->Excute Script" menu. Go watch Jeopardy.
It will build five parts of the sky, one blank (down), and one wide angle for the emap. It numbers them 01-07, and your *.dml should be in that same order.
It should run quite nicely, though there are many things that the terragen scripting engine can't access, yet, so you might glance over your settings before doing this. Make sure you have the resolution correct (512x512).
I wrote this after I'd already had most of my skies created (the old way..much props to Desmond), so some tweaking may be needed. I hope that future releases of Terragen will have everything scriptable.
If you find something that needs tweaking, or settings that must be made before the script is run, please post them here.
Eric
EDIT: 03/19/04 -- finally uploaded Beffy's improvements
It is pretty simple to use. Place this in your Terragen directory and make sure your directory path is correct in the script. Create (or load) your sky. Run the script from the "Terragen-->Excute Script" menu. Go watch Jeopardy.
It will build five parts of the sky, one blank (down), and one wide angle for the emap. It numbers them 01-07, and your *.dml should be in that same order.
It should run quite nicely, though there are many things that the terragen scripting engine can't access, yet, so you might glance over your settings before doing this. Make sure you have the resolution correct (512x512).
I wrote this after I'd already had most of my skies created (the old way..much props to Desmond), so some tweaking may be needed. I hope that future releases of Terragen will have everything scriptable.
If you find something that needs tweaking, or settings that must be made before the script is run, please post them here.
Eric
EDIT: 03/19/04 -- finally uploaded Beffy's improvements
About the author
#2
InitAnim C:\Documents and Settings\Robert Brower\My Documents\My Terragen Files\NewSky,1
There are no sky images in that location when the script completes. For some reason it doesn't seem to save the images or do anything for that matter.
10/01/2002 (9:37 am)
I am having a problem. Even tho I set the following setting:InitAnim C:\Documents and Settings\Robert Brower\My Documents\My Terragen Files\NewSky,1
There are no sky images in that location when the script completes. For some reason it doesn't seem to save the images or do anything for that matter.
#3
What this script does is automates some of the basic functions of creating a skybox. Following Desmond's tutorial on the subject is highly recommended--only no need to adjust the camera and target positions. Zoom is also controled via the script.
What this script doesn't do is create random skies.
Does that help?
Eric
10/01/2002 (10:02 am)
You have to create a sky, set it to render 512x512 full resolution and then run the script. You'll see it render each screen.What this script does is automates some of the basic functions of creating a skybox. Following Desmond's tutorial on the subject is highly recommended--only no need to adjust the camera and target positions. Zoom is also controled via the script.
What this script doesn't do is create random skies.
Does that help?
Eric
#4
10/05/2002 (8:24 am)
Great! I was just about to try to write something to do this, but hey look at this, there already is one! Good work. :)
#5
10/05/2002 (8:52 am)
@Robert: It seems not to like spaces in the directory name. Try saving to someplace like C:\testskydir\.
#6
using "TarPos" to set the camera positions produces seams between the images for me, so you were able to see the edges of the skybox...
I changed the script to follow the exact procedure posted on Desmond's website and am now setting the camera values like this:
Works perfectly now for me, thx a lot for the initial version! :)
03/13/2003 (10:59 pm)
Hi there,using "TarPos" to set the camera positions produces seams between the images for me, so you were able to see the edges of the skybox...
I changed the script to follow the exact procedure posted on Desmond's website and am now setting the camera values like this:
CamH 90 CamP 0 CamB 0I've posted the updated script here...
Works perfectly now for me, thx a lot for the initial version! :)
#7
-Eric F
03/19/2004 (12:01 am)
I just finally updated the resource to Beffy's new-and-improved version (for continuity, and possible link down?). I've been using the new one ever since you posted it, Beffy...thanks. :)-Eric F
#8
10/21/2004 (3:03 am)
Found this one today and I really love it :) Thanks alot guys. 
Torque Owner Desmond Fletcher
fletcher