From: Ting L. <dri...@gm...> - 2007-01-25 11:53:54
|
Hi, fans, I'm a newbie. VPython is really easy to use. But it looks too simple. I wonder if there is a parameter to customize the number of faces used to draw a sphere (or cylinder ...)? I cannot find it. By default, VPython draws a pretty smooth sphere, I guess the number of slice should be larger than 50. Sphere(pos=(*,*,*),color=color.red) However, low polygon objects are needed. This control is necessary to make smooth animation, especially when the number of objects is large. I know VPython gives a way to build object by user, face. But can the authors make life easier? Another question is also about the rendering efficiency. I don't know if VPython uses gllist internally. (sorry, haven't studied the source) ,and if VPython support object 'instance'? (A instance of an object doesn't need to rebuild the vertex array at a new position but just copy the vertex from the original object and perform translation, scale, or zoom. ) Ting |