Vehicle Decal
by Guimo · in Torque Game Engine · 08/12/2006 (10:22 am) · 3 replies
I'm here starting the 0.3 version of my game and for this part I require decals and some particular effects on them. I was hoping you would point me to the appropiate resources as I don't seem to find anything about it (or maybe I'm just bad using google).
The basic game idea is an asteroids game. You clear the most asteroids of each level without being destroyed by them. You see your ship as a godview (Diablo style view) and even when everything is 3D rendering, its basically a 2d game whith all action happening in a single plane. Here's a shot.
http://www.spritekin.com/asteroids.jpg
As you need to destroy the asteroids I would like to track where is the next asteroid location (which may be out of view). So I would like a decal around the ship with an arrow pointing the objective.
a. The decal should work with the FlyingVehicle. I found a decal in the playerData but not in the vehicles.
b. The decal should be visible to you but not to the opponent. That is if two ships are near only your decal should be visible.
c. The decal arrow direction should be updated each frame so it may track moving asteroids.
I was thinking to copy the decal code from the Player object. But then how do I manage the other two conditions? I don't know if someone more experienced may point me to an appropiate resource or give me some advice please.
Luck!
Guimo
The basic game idea is an asteroids game. You clear the most asteroids of each level without being destroyed by them. You see your ship as a godview (Diablo style view) and even when everything is 3D rendering, its basically a 2d game whith all action happening in a single plane. Here's a shot.
http://www.spritekin.com/asteroids.jpg
As you need to destroy the asteroids I would like to track where is the next asteroid location (which may be out of view). So I would like a decal around the ship with an arrow pointing the objective.
a. The decal should work with the FlyingVehicle. I found a decal in the playerData but not in the vehicles.
b. The decal should be visible to you but not to the opponent. That is if two ships are near only your decal should be visible.
c. The decal arrow direction should be updated each frame so it may track moving asteroids.
I was thinking to copy the decal code from the Player object. But then how do I manage the other two conditions? I don't know if someone more experienced may point me to an appropiate resource or give me some advice please.
Luck!
Guimo
About the author
#2
But the most important part would be to render an object only on one side of the sim. Like the Ghost unit of starcraft where you were able to see it on the owner came but not on the enemies.
Luck!
Guimo
08/12/2006 (2:07 pm)
My real requirement is one or more squares that fly with the ship and present a texture over it (an arrow). The square direction should get updated so it rotates and points the objective. more than one sqares will be required... maybe to show your shields or direction of incoming objects/missiles. I would like to use it instead of a GUI.But the most important part would be to render an object only on one side of the sim. Like the Ghost unit of starcraft where you were able to see it on the owner came but not on the enemies.
Luck!
Guimo
#3
08/12/2006 (3:07 pm)
This sounds like a GUI would work well. Look in the GUI source code for the engine. In particular the crosshair.
Torque Owner Tim Heldna
Sounds like you're going to need something a lot more dynamic than a decal. I imagine you would want to generate a 3d arrow around the ship and code in your required functionality.