Question (camera)

Blitz3D Forums/Blitz3D Programming/Question (camera)

Jeroen(Posted 2004) [#1]
Hi,

I have a problem with my camera. Based on the EntityX,Y and Z of 2 players, I zoom and place my camera (smoothly).

The problem I have is this:



What I am trying to accomplish is that the distance from player 1 and 2 has the same distance relativly to the camera viewport.

ps: In the picture I ofcourse ment "little distance" instead of "distance is low" :-D

What is the best way to accomplish this?

Thank you!


AntonyWells(Posted 2004) [#2]
You want to create a '3rd' point that sits in between them.

Then 'push' this out along the arc of the distance between the two entities...then just position the camera there. it'll always be evenly distanced from the two entities as long as you 'lock' the camera to the 'vector' that the mid point is pushed out into.


Jeroen(Posted 2004) [#3]
Thanks,

In the end it was quite simple.


Boiled Sweets(Posted 2004) [#4]
WOW! This looks amazing!

Any demo available?


IPete2(Posted 2004) [#5]
Jeroen,

Looking superb!

IPete2.