![]() |
|
#2
|
|||
|
|||
|
Hi Buster,
If you attach an object to the HEAD then it will always be centered around the viewer. Let's say that your constellations are in a file called 'constellation.wrl', then you would simply do the following: stars = viz.add('constellation.wrl',viz.HEAD) Then when you rotate the model it will be rotating around the head, no matter where the viewer moves. Are you importing the constellations from a model or generating them on-the-fly? If you're generating them on-the-fly then you would simply do something like the following: viz.startlayer(viz.POINTS) viz.vertex(...) . . stars = viz.endlayer(viz.HEAD) Look at the file spindots.py in the Vizard20/tutorial/onthefly. It is a simple example of creating a sphere of points and rotating them. Good luck! |
|
|