Advertisement

Donut Shape Model

Started by October 16, 2000 10:13 AM
2 comments, last by bumbu 24 years, 1 month ago
Anyone who knows how to create a donut-shaped model in my program? I.e. how to calculate vertexes, normals and texture coordinates. /* Johan Lindqvist */
well, u might consider using quadrics, and discs, or a few cylinders. or import the torus(donut) from an ase/asc/3ds.
i choos ase file.
Advertisement
Try This:

#include [glut.h]
.
.
.
glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);


Edited by - oglman on October 21, 2000 1:29:29 PM
oglman: Is the torus edges rounded or flat? Don''t have time to check thee code now. =/

/* Johan Lindqvist */

This topic is closed to new replies.

Advertisement