Planetside Software Forums

General => Terragen Discussion => Topic started by: Marcos Silveira on August 16, 2008, 11:01:03 AM

Title: Area Centre text file
Post by: Marcos Silveira on August 16, 2008, 11:01:03 AM
Does Anyone here know how to create a text file to be imported for the "area centre" inputs in the object distribution tab???
[attach=#]

What I mean is, what is the exact format of the parameters in the text file???
Ex: x=1.0; y=1.0; z=1.0 or  1.0, 1.0, 1.0  or  1;1;1

How do I set the parameters for the x, y and z coordinates in the text file???
What is the format of the text file?? Is It a txt file as used in the wordpad??
Title: Re: Area Centre text file
Post by: rcallicotte on August 16, 2008, 02:25:16 PM
Good question.  Sorry I don't know the answer.
Title: Re: Area Centre text file
Post by: cyphyr on August 17, 2008, 06:20:32 AM
If you open saved terragen file(where you have an imported population) in notepad you will be able to see the way terragen displays its coordinates. I'm using my partners lappy atm so I cant confirm specifics but terragen uses real world dimensions 1 terragen unit to 1m. I'm intregued as to why you should wish to use this method, is'nt it just easier to type in the area centre location?
Good luck
Richard
Title: Re: Area Centre text file
Post by: jo on August 17, 2008, 07:08:49 AM
Hi,

You need to have a text file something which looks like this:

1 1000 2000 3000
2 2000 3000 4000

Basically it's 4 numbers with spaces in between. The first number is the frame number, the next 3 are the x, y and z coordinates respectively. Each line above gives the coordinates for a different frame. You can have floating point/real numbers like so:

1 1000.5 2000 3000.0

Save the file with a .chan extension. You can use WordPad to create the file, but be sure to use the "Text Document" format/type when you save it.

Regards,

Jo
Title: Re: Area Centre text file
Post by: Marcos Silveira on August 27, 2008, 12:19:00 PM
Thanx Jo, you saved me a lot of work!!! ;)
Title: Re: Area Centre text file
Post by: Marcos Silveira on August 27, 2008, 12:29:33 PM
Quote from: cyphyr on August 17, 2008, 06:20:32 AM
If you open saved terragen file(where you have an imported population) in notepad you will be able to see the way terragen displays its coordinates. I'm using my partners lappy atm so I cant confirm specifics but terragen uses real world dimensions 1 terragen unit to 1m. I'm intregued as to why you should wish to use this method, is'nt it just easier to type in the area centre location?
Good luck
Richard

Cause it's for populations, it saves work when you don't need to type (or ctrl +c, ctrl+v) the same area centre for lots of populations. I always try different types of trees and plants in my projects and I assure you, it's very boring when you have to do "it" every time. With a file with such coordinates the work turns easy.