isometric like view with Torque 3D
by Roger D Vargas · in Torque 3D Beginner · 11/14/2013 (10:09 am) · 8 replies
Is there any updated info about this topic? I have googled but al lI find are 2 old threads from 2009 and before.
About the author
Game developer and writer
#2
The %obj variable should be the ID or Name of the object which you want to base the camera on; eg: the player.
As Andy points out, reading the RTS Prototype tutorial is a great idea. It's in the online documentation under Scripts -> Advanced.
11/14/2013 (12:06 pm)
According to wikipedia, isometric is 35.264 degrees. To manipulate the camera mode you need to call a server command.commandToServer('IsometricCam', %obj);The %obj variable should be the ID or Name of the object which you want to base the camera on; eg: the player.
function serverCmdIsometricCam(%client, %obj)
{
//%pi = 3.14159;
//mDegToRad(10) = 0.174533
//mDegToRad(20) = 0.349066
//mDegToRad(30) = 0.523599
//mDegToRad(35.264) = 0.615472907
%client.camera.setOrbitObject(%obj, "0.615472907 0 0" , 0, 20.0, 20.0, 0, "0 0 0", 0);//true isometric
}As Andy points out, reading the RTS Prototype tutorial is a great idea. It's in the online documentation under Scripts -> Advanced.
#3
11/14/2013 (12:36 pm)
Just for curiosity, where should I put that line? Im very newbie with this. Also, I want a free camera, not attached to the player, like in Fallout 2 or Baldurs Gate.
#4
As for an isometric free-cam, do what Andy suggests and modify the overhead cam to work as as isometric.
11/14/2013 (2:46 pm)
serverCommands go in scripts/server/commands.cs.As for an isometric free-cam, do what Andy suggests and modify the overhead cam to work as as isometric.
#5
These should help answer the questions on "where to put what"....
11/15/2013 (6:32 am)
To reiterate: You should probably look in the documentation under Scripting->Advanced for the RTS Prototype, then follow that up with the Adventure Prototype just for added thoroughness....These should help answer the questions on "where to put what"....
#6
the only limitation I see is that the camera angle is not locked, I can freely look with the mouse.
11/15/2013 (9:09 am)
Ok, I have followed the tutorial step by step, now I know a bit more about the engine, but still a few things doesnt works (specifically the ones related to clicking to spawn stuff). the only limitation I see is that the camera angle is not locked, I can freely look with the mouse.
#7
If you can't spawn things by clicking you might want to review that section again - and check your console.log file for errors....
11/15/2013 (5:49 pm)
Just remove the option to do that - you had to add it in the first place.If you can't spawn things by clicking you might want to review that section again - and check your console.log file for errors....
#8
11/18/2013 (7:41 am)
My mistake, everything is working perfectly. Now i just have to underestand what does each part and figure out what to modify to make it work as I want.
Torque Owner Andy S.
Default Studio Name