Game Development Community

Adjusting Overall world scale

by James Brad Barnette · in Artist Corner · 01/29/2006 (2:10 pm) · 15 replies

Ok a bit new to mapping but bare with me a have searched for 3 hours and can find no answer to my question.

I have a heightmap that I imported it is 256x256 and I bring it in but my world is HUGE!!!!

I would say that the world is prolly about 100 times the size it should be. is there a way to adjust this?
I'm using the starter FPS in Torque 1.4

Thank you in advance,

James Brad Barnette

#1
01/29/2006 (2:22 pm)
I think you need to adjust the squaresize for the terrain.
#2
01/29/2006 (2:33 pm)
And how is that done?
#3
01/29/2006 (2:47 pm)
F11, F3, Under 'MissionGroup- SimGroup' select> 'Terrain- TerrainBlock' and under 'Misc' you will see 'SquareSize = 8'
#4
01/29/2006 (2:52 pm)
Yeah I feel like a tard I found it.

Thanx
#5
01/29/2006 (3:27 pm)
Be carefull, anything more/less than the "8" will make other things react badley, like waterblocks.
#6
01/30/2006 (1:49 pm)
Man this is rediculas. ..

What is the best solution here since changin to something other than 8 make EVERYTHING crazy.

Problems:

1: Need finer poly control over the surface.
2: Need smaller world it is way to big for my may and my character. "character is default Starter fps chracter at default size and scale"

Solution:
????

not sure here, should I just make all my object larger to accomadate this?
How will this affect things like physics?

Any imput would be great!
#7
01/30/2006 (1:59 pm)
Not many choices you have sir.

1. roll up your sleeves and dig into the source code to make changes.

2. dispense with terrain altogether and just use difs for your environment.

3. supplement terrain with dif objects for finer detail.
#8
01/30/2006 (2:01 pm)
I have used a squaresize of 2 for many terrains with no problems. Of course changiung the squaresize will change the locations (relative to the terrain) of any object already placed in the map, so you will have to move them.

The TGE terrain uses a grid of 256 x 256 points. The squaresize dictates how far apart the points are in meters (or torque units) So a squaresize of 1 will give you a terrain tile that is 256 meters squared, 2 will give one 512 meters squared, etc. I don't recommend using a squaresize of 1 or smaller, as that tends to put a large load on the engine.
#9
01/30/2006 (2:53 pm)
I tried 2 and it makes things crazy in the Mission editor. things start getting wiggy.

I will give it another shot but in all honnesty I think that 2 might still be too big.

I'm using a Terrain I orginally created in Battlecraft42. I think Battlfield 1942 is a 1:1 setup where 1 pixel in the bitmap is 1 vertex in the world
#10
01/30/2006 (3:30 pm)
I tried 2 and it makes things crazy in the Mission editor. things start getting wiggy.

I will give it another shot but in all honnesty I think that 2 might still be too big.

I'm using a Terrain I orginally created in Battlecraft42. I think Battlfield 1942 is a 1:1 setup where 1 pixel in the bitmap is 1 vertex in the world
#11
01/30/2006 (7:47 pm)
In Torque hieghtfield bitmaps, 1 pixel equals 1 vertex. Squaresize says how far apart the vertex's are. So a squaresize of 2 will put the vert's 2 meters apart, whereas squaresize 8 puts them 8 meters apart.

I've never noticed any "wiggy" behavior of the editor. Though I would suggest saving the squaresize as 2, then reloading the game (or alternately you can directly edit the .mis file before loading).
#12
01/31/2006 (1:00 pm)
Will give that a shot
#13
01/31/2006 (10:04 pm)
Ok I got my Terrain Perfect using 2 for the squaresize.

Now my Water is tripping is there anyway to resolve this

Here is a pic:
www.digipixelstudios.com/user/scissors/waterBlockBug.jpg
What is up with these large squares of missing water?
#14
02/01/2006 (2:06 pm)
We ran into that problem too, but right now the simple solution escapes me. If you haven't already, you might try deleting and recreating it. I think there is some little bug in the engine causing this, and I recall that someone had posted a fix, I'll look around and see if I can find it. (Has to do with the terrain squaresize being different then the waterblock size)
#15
02/01/2006 (3:04 pm)
Right but I can't find anywhere that you can change the squaresize for the waterblock