création de mesh
Publié : jeu. 25/nov./2004 18:40
en cherchant sur le forum anglais, je suis tombé la dessus
ça peut aider ceux qui utilise la 3d
http://home.c2i.net/PreachersPlace/PureBasic/Libraries/
pat
ça peut aider ceux qui utilise la 3d
http://home.c2i.net/PreachersPlace/PureBasic/Libraries/
Code : Tout sélectionner
QMesh v1.0 by Preacher
----------------------
QVertex(x.f , y.f , z.f , texturex.f , texturey.f) - Add a vertex with texture coordinates to the internal list
QFace(vertex1, vertex2, vertex3,[vertex4]) - Define a triangle from prefeed vertices.
QDisk(n) - All these are quite self explaining...
QCone(n) - argument n is the number of points of the circle
QSphere(n) -
QCylinder(n) -
QCube() -
QObject(Mesh) - Create mesh from the inputed data.
These are especially usefull if you need to create object from code, not predefiened data in datasection or read from file.
If you wish to run the exe remeber to copy the "engine3d.dll" form Purebasic\compilers folder.
Enjoy, Erlend "Preacher" Rovik