Finding "good" camera position

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
speculatius
Posts: 15
Joined: Wed Nov 28, 2007 12:49 pm

Finding "good" camera position

Post by speculatius »

Hi

i visualize graphs (some nodes and edges between them) and i need to find cameras position, from which i can see all scenenodes. Is it possilble in some sophisticated way?

My only idea is to compute "center position" of all nodes and then move away to distance X. X will be computed using FOV and minimal/maximal screen positions of nodes. I cant say it better in my english, so i prepared beautiful image =o)

http://student.fiit.stuba.sk/~ludvik05/campos.jpg

Do you know some better solutions?

Thanks...[/img]
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

That's the only solution i can think of really, can't imagine how else you'd want to view it anyway....
Image Image Image
Post Reply