From: Bruce S. <Bru...@nc...> - 2007-12-26 05:19:47
|
Study the program "movecamera.py" in the contributed section of vpython.org. I think it will answer your question. Bruce Sherwood Frédéric Mantegazza wrote: > Hello, > > I have a question related to the vpython camera usage. > > I simulate a photo panohead, where a DSLR is fixed. I would like to > simulate the view I have from that DSLR. So, I need to set the vpython > camera position, and update the direction it is point at. > > But I don't know how to do that. Using the center attribute only sets the > point the camera *looks*. > > Is there a way to set the camera position, say to (0, 0, 0), and only use > the forward attribute to rotate it? A 'from' camera attribute could be > usefull... > > Thanks, > > |