Isometric camera
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
Isometric camera
I followed the Custom chase cam tutorials. They are great and all, And I am trying to go for the isometric look. However, when I add chase_back, The camera doesn't do what I am looking for. All I want to do is an Isometric camera. Any ideas?
I'm assuming you mean with the camera at a fixed distance and angle behind the player looking slightly down that rotates with the view and doesn't do any traceline checking for a collision point.
There is enough infos in this thread to do that, I believe:
http://forums.inside3d.com/viewtopic.php?t=1158
Now this will probably be slightly wrong since I don't have time to test this nor a way to conveniently test this, but my initial thoughts ...
Here is the code from frag.machine for where the chase_active = 2 scenario ...
Now you want static pitch (never changes), static position relative to player (never changes) and .... ergh ... I'm thinking you want static roll.
So you only want yaw to change.
So ...
The above should do the trick, giving you a camera at a fixed position specified by chase_up/_right/_back/_roll/_pitch but flexible yaw that will NOT clip against walls or ceilings.
So put the camera some arbitrary distance above the player like 150 and make sure that no map objects are above that in your maps otherwise the camera will be in the ceiling/wall/whatever. Also make sure that your chase_back has clearance in your map design.
And of course use cvar settings like:
There is enough infos in this thread to do that, I believe:
http://forums.inside3d.com/viewtopic.php?t=1158
Now this will probably be slightly wrong since I don't have time to test this nor a way to conveniently test this, but my initial thoughts ...
Here is the code from frag.machine for where the chase_active = 2 scenario ...
Code: Select all
{
chase_dest[0] = r_refdef.vieworg[0] + chase_back.value;
chase_dest[1] = r_refdef.vieworg[1] + chase_right.value;
chase_dest[2] = r_refdef.vieworg[2] + chase_up.value;
// this is from the chasecam fix - start
TraceLine (r_refdef.vieworg, chase_dest, stop);
if (Length (stop) != 0)
{
VectorCopy (stop, chase_dest);
}
// this is from the chasecam fix - end
VectorCopy (chase_dest, r_refdef.vieworg);
r_refdef.viewangles[ROLL] = chase_roll.value;
r_refdef.viewangles[YAW] = chase_yaw.value;
r_refdef.viewangles[PITCH] = chase_pitch.value;
}
So you only want yaw to change.
So ...
Code: Select all
{
chase_dest[0] = r_refdef.vieworg[0] + chase_back.value;
chase_dest[1] = r_refdef.vieworg[1] + chase_right.value;
chase_dest[2] = r_refdef.vieworg[2] + chase_up.value;
// Baker says no ...
// Cause you don't want the traceline to check for walls and alter the chase camera position based on the collision, as isometric should be an equivalent distance at all times
#if 0
// this is from the chasecam fix - start
TraceLine (r_refdef.vieworg, chase_dest, stop);
if (Length (stop) != 0)
{
VectorCopy (stop, chase_dest);
}
// this is from the chasecam fix - end
#endif
// End Baker says no
VectorCopy (chase_dest, r_refdef.vieworg);
r_refdef.viewangles[ROLL] = chase_roll.value;
// Baker says no start
// We want the camera to be in sync with overhead angle the player is facing
#if 0
r_refdef.viewangles[YAW] = chase_yaw.value;
#endif
// Baker says no end
r_refdef.viewangles[PITCH] = chase_pitch.value;
}
So put the camera some arbitrary distance above the player like 150 and make sure that no map objects are above that in your maps otherwise the camera will be in the ceiling/wall/whatever. Also make sure that your chase_back has clearance in your map design.
And of course use cvar settings like:
Isn't that tutorial frag.machine pure awesomeness? Hehechase_right -160
chase_back -160
chase_up 200
chase_roll 0
chase_pitch 45
The night is young. How else can I annoy the world before sunsrise? Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
Level design.Mexicouger wrote:It is great! I just wish there was a patch to guard against clipping objects. Any work arounds for that?
The night is young. How else can I annoy the world before sunsrise? Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
Just make your map like this:
http://www.youtube.com/watch?v=4FTQ4I5FRys
If you want an isometric camera, make the map in a way that supports the camera. Don't make the walls higher than 64 units high, place the camera 128 units above the player. It is not hard. I mean if you don't want the camera to poke into stuff for a map designed for such a camera, make the map specifically for the camera.
If you are making a mod with an isometric camera in mind and the map you made is causing the camera to poke into the walls then ...
On anohter note, the mod Error mentioned by Krimzon ...
http://qexpo2005.quakedev.com/booths.php?id=31
http://www.youtube.com/watch?v=4FTQ4I5FRys
If you want an isometric camera, make the map in a way that supports the camera. Don't make the walls higher than 64 units high, place the camera 128 units above the player. It is not hard. I mean if you don't want the camera to poke into stuff for a map designed for such a camera, make the map specifically for the camera.
If you are making a mod with an isometric camera in mind and the map you made is causing the camera to poke into the walls then ...
On anohter note, the mod Error mentioned by Krimzon ...
http://qexpo2005.quakedev.com/booths.php?id=31
The night is young. How else can I annoy the world before sunsrise? Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
Well I decided to make my mod Top-Down after all. We thought it all out, and the possibilities are very good.
Just out of curiosity, are any of you guys interested in Top-Down style games anymore? Or are those out of style now. I keep getting people saying that Top-Down style games suck, and it is really discouraging. I want to show the PSP community another aspect of Quake mods, and maybe others in this genre will open up, Knowing what is possible.
Just out of curiosity, are any of you guys interested in Top-Down style games anymore? Or are those out of style now. I keep getting people saying that Top-Down style games suck, and it is really discouraging. I want to show the PSP community another aspect of Quake mods, and maybe others in this genre will open up, Knowing what is possible.
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
well it is a Halo Top-Down mod. And Everone but a few seemed to complain about the Idea. All I can tell them is, sit back and enjoy the ride. I just imagine that the mod will look pretty, but Let's see.ceriux wrote:depends whats your mod all about see some work and gameplay. thats all that matters. id play a top down.
I'm rather skeptical of your claim and think it is more likely you not understanding what I am suggesting above or how it relates to frag.machine's chase_active 2 tutorial.Mexicouger wrote:And by the way Baker, This tut didn't do anything :/
The code basically made me in fps view
I'm just saying ...
The night is young. How else can I annoy the world before sunsrise? Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-
- Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
- Contact:
Well, we are going Top-Down, Not Isometric. We can save alot more memory if we go Top-down(Deleting unseen Triangles). We have big shoes to fill, and do have several plans for game modes. I don't want to tell the public something that I doubt I can do. We have a Basic Firefight coded now, and Next is Survival. And, Depening on how our 3rd person weapon system goes, we may allow the player to choose between a spartan or elite for Slayer(Only).ceriux wrote:hmm if your going halo do your best to do that isometric thing in my oppinion. also go single player / coop or something...
Plans for Campaign/coop are happening. It should be simpler to make the maps. Chances are, we are going to have a little spartan team that you will fight along, and in Firefight, get Marine allies.
May seem like a fantasy to some, But I feel that I can do it all.
And Baker, I get what you were trying to say now, after I overlooked the code. I viewed this as a quick tut. My bad. :?
And here is the Camera I used. This is my own little Kurok engine that I work on. I created a Slider to adjust the camera Height.
http://www.moddb.com/games/halo-revampe ... own-camera