Yeah its something i really want to get sorted and im not continuing with the rest until i know it is working perfectly!Originally Posted by {MSX}
I also want to add different styles of camera, behind the actor, FPS style, Isometric style, and top view, maybe others if and when i work out how to do them :roll:
I managed to get the oval system via:
[pascal]
var
p,v,u,tmpP: TVertex3f;
begin
p := Player.Position;
tmpP := p;
p[1] := 4;
v := RotatePoint(Player.Position, Player.Rotation);
u := Vertex3f(0,4,0);
gluLookat(p, v, u);
end;
[/pascal]
Of course i know this is wrong..
From what im guessing id say that p should be the position of the camera, v of the target (Actor) and u is the tilt?
Im not too sure on what you mean, i came up with the following and of course it doesnt work lol (im no good at theory :rollOriginally Posted by {MSX}
[pascal]
var
p,Distance: Array [0..2] of Single;
begin
Distance := Vertex3f(0, 4, 6);
p := VertexAdd(Player.Position, Distance);
glLookat(p, Player.Position, Vertex3f(0,4,0));
end;
[/pascal]
Thanx, iv been working on it for ages and starting to get it going nicly, just need to put it all together :roll:Originally Posted by {MSX}
I have decided to use OpenGL mostly because i see it simpler to understand than DX, and i have majority of the engine designed for OpenGL. Amoungst that i thought it would be easier to use OpenGL for if i decide to make anything cross-platform in the future.
Bookmarks