Game Development Community

Doubling scale of geometry

by James · in Torque Game Engine Advanced · 05/28/2009 (7:31 am) · 4 replies

I just want to run this by a few people to ensure that what I am proposing will not cause any issues with the engine. Based on my searches on the site, it doesn't appear it will but I may have missed something.

I need to have finer detail in sculpting the terrain. There are two methods I know of:
1. decrease the squareSize of the terrain to 4 or 2
2. Double the size of the game geometry, including buildings and characters

I've tried the first method but the results were unworkable (deforming the terrain had erratic results at best)

The second method however appears to work without a problem and is the method I'm proposing to work with.
It requires that walk speed, step height, etc need to be adjusted but I'm wondering if there are any "hidden" caveats I should take into account.

On top of this, I also plan to increase the texelsPerMeter to 16 or 32 (depending on final requirement) so the terrain textures are not as blurry as well. Is there anything here I should be aware of?

I have tried the second method and like the results. If anyone has a comment, caveat or just "Sounds great. Good luck", I'd really appreciate hearing from you.

#1
05/28/2009 (8:13 am)
Scaling to the extremes in either direction I believe will eventually cause problems with collision, but for a 2x sizing I think you'll be alright. Are you doubling the size in-game or when you export your assets? The latter is probably the better option overall.
#2
05/28/2009 (12:44 pm)
If you're going to scale your geometry in game make sure you fix the eye position bug, you can find the fix in this thread.
#3
05/28/2009 (7:34 pm)
Thanks Gerald, I'll keep that in mind.

Michael, I'm actually at an early point in production so I'll be creating larger models. Scaling in game makes me a little nervous :)

Thanks for the response guys, much appreciate :)
#4
06/08/2009 (12:21 pm)
Just a note to finalize this thread:

The project I'm working on is using double size geometry using the default terrain block with great success.

I used script based doubling for testing but it caused a number of issues (collision detection, step height, etc).

All the geometry in the game is built and animated at double size then exported to the engine. This currently is working without any known issues.