Game Development Community

How to make camera like Diablo2(iso)

by Paulo Coutinho · in Torque Developer Network · 12/12/2009 (3:22 pm) · 4 replies

Hi ppl,

How i can change the camera to view like Diablo2(isometric)?

Like this:
http://www.creiij.com/wp-content/uploads/2009/01/diablo-isometric.jpg

Now im using the code:

%client.camera.setOrbitPoint("0 -15 25" @ " " @ mDegToRad(45) @ " 0 -" @ mDegToRad(25) @ "", 0, 30, 30);
%client.camera.controlMode = "Overhead";
%client.setControlObject(%client.camera);

But the visualization is too bad and dont is the same at diablo2.

The camera i move with WASD and dont is player controlled(for now).

#1
12/12/2009 (3:54 pm)
It is something that really you'd need to code in C++ to get to work correctly. There are a lot of resources for it, including this one (http://www.torquepowered.com/products/3d-iso-kit) and the RTS Kit

Additionally, you should set your FOV to 45 degrees for a better iso effect.
#2
12/12/2009 (4:32 pm)
But im using Torque3D and these kit i think that dont have compatibility.

So i have to make something by the script.

How to set the FOV to 45 with the code that i use (that is on 'gameCore.cs').
#3
12/13/2009 (7:18 am)
setFOV(45);

Just because those kits were not made or Torque3D does not mean they cannot be ported with some ease. Most Torque resources are very easily ported.

#4
12/13/2009 (1:09 pm)
Man, on client console, setFOV is OK, but i want set FROM SERVER.

How i can set the FOV from SERVER do the client.

Yesterday i make a client command and when the client connect i call this client command frm server...but i want know if have other native method to set it from server when client connect.