Inside3D!
     

Top-Down View

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Thu Oct 20, 2005 10:40 pm    Post subject: Top-Down View Reply with quote

Hi All,

Just trying to setup a camera to view the player from a top down view. Just a quick question.

If I set up a camera entity to update its origin to be 50 units above the player with an angle of '0 90 0' is it possible to update the players view every frame using .fixangle = TRUE ??

Sorry if that seems like a really basic thing.. I am still learning the way the quake engine works.

Where would be the best place to put the UpdateCamera() function? I was thinking of putting it at the very end of PlayerPostThink().... would that work?

I tried a couple of things. One thing I couldn't get to work was making the player the camera and setting up a dummy player model. I could get them to both spawn into the world but I had no way of passing the movement controls to the dummy model.

Hmmm.. perhaps my logic is just broken Razz

Thanks for any help you can give, it is most appreciated.

-Timbobsteve
Back to top
View user's profile Send private message
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Fri Oct 21, 2005 8:29 pm    Post subject: Reply with quote

Does anyone have any ideas? Sorry for the Bump... I am just really stuck.

Perhaps I can ask a bunch of simpler questions:

1. What does "self" refer to when PlayerPostThink() is running. Is it the player entity or the world?

2. If I assign the player a new view portal (which I can do) if I then proceed to set the angles of the player through a network msg, will that override the players actual direction or just the POV's direction:

Code:

msg_entity = self                                     // Player
WriteByte(MSG_ONE,5);
WriteEntity(MSG_ONE,my_camera);        // Assign new viewport

WriteAngle(MSG_ONE,my_camera.angle_x);    // ?????
WriteAngle(MSG_ONE,my_camera.angle_y);   // ?????
WriteAngle(MSG_ONE,my_camera.angle_z);  // ?????


Will that code, namely WriteAngle(), always make the player model face in the same direction, or will it only affect the viewport?

I can set an external camera, but I cannot make the camera stay still when moving, e.g. when the player turns left the camera + model both turn left.

Anyways... thanks again if you can help.

-Timbobsteve
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group