[Question]Minimap
by Joshua david groves · in Torque 3D Beginner · 03/08/2014 (3:58 am) · 6 replies
Is there a free alternative to http://www.garagegames.com/community/blogs/view/22612
#2
03/08/2014 (9:22 pm)
$20 Is hard to come by if You're my age... Im not even 14
#3
03/08/2014 (9:47 pm)
If you just wanted an image with like player detection, but no rendering, you could do a torquescript based GUI one, that uses bitmap images and placement relative to the camera yaw. Just requires a little bit of math (dunno if you've learned trig yet)
#4
1. Create a new gui control in C++
2. Have the control render the image or whatever kind of map background you want on it.
3. Loop through all of the objects that need to be rendered and do so.
4. Perform any post render op's
5. ???
6. Profit :)
Jeff's absolutely right however, accomplishing a minimap can even be done in TorqueScript if you have the time to put towards it but you'll be looking at a little bit of a performance hit versus doing it the C++ route. As for the mathematics involved in doing a radar, at most you'll need to know some basic vectors (which is another term for 3-D position with a direction), and some basic trig. math which is used to determine angles between said vectors, and a simple google search will usually turn up many different and useful results to get the job done.
I'd be glad to get you moving in the right direction if you're going that route, and I'm sure everyone else here in the community would be glad to help out as well.
03/09/2014 (3:28 pm)
@Joshua: I can point you in the right direction if you're up for a nice C++ challenge.1. Create a new gui control in C++
2. Have the control render the image or whatever kind of map background you want on it.
3. Loop through all of the objects that need to be rendered and do so.
4. Perform any post render op's
5. ???
6. Profit :)
Jeff's absolutely right however, accomplishing a minimap can even be done in TorqueScript if you have the time to put towards it but you'll be looking at a little bit of a performance hit versus doing it the C++ route. As for the mathematics involved in doing a radar, at most you'll need to know some basic vectors (which is another term for 3-D position with a direction), and some basic trig. math which is used to determine angles between said vectors, and a simple google search will usually turn up many different and useful results to get the job done.
I'd be glad to get you moving in the right direction if you're going that route, and I'm sure everyone else here in the community would be glad to help out as well.
#5
%yaw is the camera yaw value, or the camera Z rotation.
03/09/2014 (3:34 pm)
Remember the rotation matrix algorithm:%xTheta = mCos(%yaw) - mSin(%yaw); %yTheta = mSin(%yaw) + mCos(%yaw);
%yaw is the camera yaw value, or the camera Z rotation.
#6
03/09/2014 (10:32 pm)
is there a way to Just use a camera like in unity
Community Manager Michael Perry
ZombieShortbus