Page 1 of 1

Finding "good" camera position

Posted: Mon Mar 10, 2008 11:21 am
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]

Posted: Mon Mar 10, 2008 12:15 pm
by JP
That's the only solution i can think of really, can't imagine how else you'd want to view it anyway....