You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The terrain currently centers region (0, 0) at the world origin. While this might make sense when there is one region, it doesn't make any sense when you have a much larger world as the whole world is shifted by half a region.
This is a bit awkward. Two 8ks imported at -8192, -8192 and 0, 0. Yet the origin is positioned in the center of 0,0, when it should be on the edge since we're doing 16x16 regions.
The world boundaries are not -8 to +8 regions but rather -8.5 to +7.5.
In the commit that closes this, we will move the terrain (512, 0, 512) so it is aligned on the world origin. Users will also need to move their objects in game, which is easy to do.
How To Adjust Your Scene
Here's how to easily adjust your scene for this change:
Select all of your Node3D derived objects. Don't select Terrain3D. There are multiple ways to do this:
Multi-select them in the scene tree by clicking and SHIFT+clicking, or CTRL+clicking individual nodes.
In the Scene tree Filter box at the top, type type:Node3D then select all of the nodes.
In the viewport, pull the camera back, then draw a large box around all nodes. You may need to set View/Settings/View Z-Far to 16384 or higher.
In the viewport menu, select Transform/Transform Dialog.... Change the first row to: 512 0 512 and click OK.
If you're using a custom shader, you may need to modify it. See the changes made to main.glsl.
After this your objects should line up with the terrain again.
Alternatively you can parent all of your movable objects under a Node3D, then move that one node, then unparent those nodes. Or leave it as is. Then do step 3.
The text was updated successfully, but these errors were encountered:
TokisanGames
changed the title
Move position of data from centered (-512,-512) to Zero Aligned (0, 0)
Move region data from centered (-512,-512) to zero aligned (0, 0)
Aug 28, 2023
The terrain currently centers region (0, 0) at the world origin. While this might make sense when there is one region, it doesn't make any sense when you have a much larger world as the whole world is shifted by half a region.
This is a bit awkward. Two 8ks imported at -8192, -8192 and 0, 0. Yet the origin is positioned in the center of 0,0, when it should be on the edge since we're doing 16x16 regions.
The world boundaries are not -8 to +8 regions but rather -8.5 to +7.5.
Also see #183 for a problem this created.
In the commit that closes this, we will move the terrain (512, 0, 512) so it is aligned on the world origin. Users will also need to move their objects in game, which is easy to do.
How To Adjust Your Scene
Here's how to easily adjust your scene for this change:
type:Node3D
then select all of the nodes.View/Settings/View Z-Far
to 16384 or higher.Transform/Transform Dialog...
. Change the first row to:512 0 512
and click OK.After this your objects should line up with the terrain again.
Alternatively you can parent all of your movable objects under a Node3D, then move that one node, then unparent those nodes. Or leave it as is. Then do step 3.
The text was updated successfully, but these errors were encountered: