Game Development Community

Two Questions

by Chris Sargent · in Torque 3D Professional · 06/26/2010 (8:21 pm) · 2 replies

I was watching the Torque 3D Scene Construction Series at http://torquebay.com/10090/

The first video creates a desert terrain which is flat and a size of 1024. They then go in to the terrain editor and use the set height tool set at 500 to create a bed for a lake / oasis. I tried following the video but whenever I set my set height to anything above 15 it just deletes the terrain and I am left with empty space. Is there a step missing? Why is my generated terrain so much thinner than what the video shows?

Second question deals with character datablocks. I have a dts character named arm1 I want to make this an ai player. So I want a separate datablock for this character but am not quite sure how to set it up.

I'm thinking this:

datablock ArmData(DefaultArmData)
          {
              shapeFile = "art/shapes/actors/arm1/arm1.dts";
          }

Is that sufficient to start with and then I can add more as needed?

Thanks in advance

#1
06/27/2010 (2:35 am)
1.
Quote:but whenever I set my set height to anything above 15 it just deletes the terrain and I am left with empty space.
Are you sure you're using the right tool? There is an set empty that creates a hole in the terrain. Make sure you're not using that one instead of the set height tool. Second thing to note is that the height of the terrain may varray from level to level, so your terrain height might be something differnt than in the video.

2.
Emmm..? Is ArmData a datablock? If you want this ai player to be based of the players datablock, you should use PlayerData, for example:
datablock PlayerData(DefaultArmData : DefaultPlayerData)
{
   shapeFile = "art/shapes/actors/arm1/arm1.dts";
};
If you want some sort of different ai, you might eighter want to edit the PlayerData's variables, or you might want to make your own Datablock in C++.
#2
06/27/2010 (4:02 am)
Yes I am using the set height tool that's why I wasn't understanding what was going on for me. If I keep it set to under 15 it acts the same as the video but it doesn't make it deep enough for the oasis. Anything above 15 and it just deletes the terrain.

Thanks for the point on the datablocks. I was thinking of my own datablock for this character since I didn't want to derive it from the default player with all the stuff in that.