Game Development Community

Rel: Control terrain repeating from script

by John Vanderbeck · in Torque Game Engine · 04/17/2004 (6:48 am) · 27 replies

I've just finished coding and testing an enchancement to the Terrain engine that allows you to set whether or not the terrain endlessley repeats via the scrpit side of the house. The World Editor to be exact. You simple bring up the editor, select the terrain block, and toggle the repateTerrain option. Effects take place immediately upon hitting APPLY.

It seems to be working nice and solid so i'm going to release it as a resource here in about 10 minutes. In the menatime, here's a short video clip to wet your appetite.

MPEG Video (13.72mb)
Note: About 5 minutes to upload that file so if it isn't a valid link when you click, wait a few minutes and try again.
Page«First 1 2 Next»
#21
04/25/2004 (11:20 am)
Well the only thing i've done different from the last build is using the HEAD release instead of the 1.2 release, so it could be something in the head about collision has changed or is broken, and has nothing to do with your code at all, in that case it doesn't belong in this thread.

Hopefully this image will explain what I mean about the water. As you can see on the image, the water doesn't fill the space where the terrain would have been if repeat was on.

www.magikastudios.com/bug.jpg

Lars
#22
04/25/2004 (3:41 pm)
Fixed the collision, had nothing to do with this, sorry :-)

Water issue is related to the terrain patch tho!

Lars
#23
04/25/2004 (3:43 pm)
I'm afraid i'm still not understanding what you mean with the water, and the above screenshot isn't very clear either :p
#24
04/25/2004 (4:57 pm)
I updated the above screenshot with some arrows and text.

What the screenshot clearly shows is that water is missing from the area where the terrain would have been if the "Repeat Terrain" was turned "On".

The water block doesn't fill the area where the terrain is removed from.

I don't know how to make it any clearer than that sorry :-)

Lars
#25
04/25/2004 (5:16 pm)
Strange. In all the levels i've made, wherever the terrain WOULD have beem repeated but wasn't, the water block was there. To infinity.
#26
04/25/2004 (5:36 pm)
Hmm. I'll try messing with the waterblock and see if it helps.

Not a big issue tho as you won't be able to leave our island and venture into the big blue, so you won't actually see it unless you get abit out there...


Lars
#27
05/21/2004 (7:47 am)
This is a kind of old post, but I thought I would put this in as a possible answer to the hole in the water issue.

There is a known issue with waterblocks if the terrain size is set to anything other than 8. It is probably that you haveyour terrain block set to a different value and you are getting holes in the waterblocks as a result.
Page«First 1 2 Next»