From: Bruce S. <Bru...@nc...> - 2011-07-26 15:35:10
|
In the VPython documentation, under "Work with objects", see "Materials/Textures", where you'll find detailed information on applying textures. As for creating or importing arbitrary models, the key element is the VPython "faces" object. An example of import can be found in the contributed section of vpython.org: "Convert STL 3D graphics files (Derek Lura and Bruce Sherwood)". I'll also point you to the extrusion object, which makes it particularly easy to extrude an arbitrary 2D surface along an arbitrary 3D curve. Bruce Sherwood On Tue, Jul 26, 2011 at 8:30 AM, Anton Hvornum <ant...@gm...> wrote: > Hi. > Information appears to be thin on this project even tho it's up to date. > If there any documentation what so ever on how to add textures to objects > and/or how to import external models into vPython (if that's supported). > I've tried a few different 3D libs for Python such as Panda3D, Pyglet, > Pygame and PyOpenGL but from what i can tell vPython is the most up-to-date > while still being the smallest of them, and vPython supports 3D object right > off the bat without having to implement to much mathematical stuff yourself. > But as mentioned, is it possible to apply textures to objects and create > your own objects either from within vPython or import external models? > Best regards: > Anton > IT Tech and Developer > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |