Planetside Software Forums

General => Terragen Discussion => Topic started by: Ashley on January 14, 2015, 04:52:40 PM

Title: Co-Ordinate system
Post by: Ashley on January 14, 2015, 04:52:40 PM
Hi people,
I'm trying to line up height fields taken from geometry.
What i'm finding is that within Terragen I am able to match the dimensions of the original geometry via resising the height fields and setting the vertical limit.

The issue I run into is with the X and Z co-ordinates. When I use the same co-ordinates from an external app (Maya) I find within Terragen it doesn't line up.
I am suspecting it may be due to the fact Terragen is based on an actual globe and Maya is an infinite plane.

Any advise on the math of Terragen co-ordinate system, or how to resolve this would be rewarded with lollies :-)

Cheers
Title: Re: Co-Ordinate system
Post by: Matt on January 14, 2015, 10:07:47 PM
If the curvature of the planet is affecting the Y coordinate, go to the Displacement tab of the Heightfield Shader. Make sure that "Flattens surface first" is checked. Then to the right of "flatten surface first" there's a dropdown which defaults to "to Undisplaced Surface". Change this to "to Y = 0".

This shouldn't affect X and Z coordinates though. If it is, I will need to see more to know what's going on.

Matt
Title: Re: Co-Ordinate system
Post by: Ashley on January 15, 2015, 07:39:34 AM
The solution that has worked for me is to flip the X axis.
A negative X value in Maya translates to a positive X in Terragen.

Curious to know if this is how Terragen works by default?
Title: Re: Co-Ordinate system
Post by: Matt on January 15, 2015, 05:28:23 PM
X should be the same, but Z usually needs to be reversed.