PDA

View Full Version : coloring polygons



mithun_daa
10-30-2003, 06:18 AM
im tryin to color my polygons. when i zoom in into the polygon, only the walls are colored. i want the whole polygon (including the space inside the polygon to be filled with color. what do i do?

Mazy
10-30-2003, 07:45 AM
Polygons are infinity thin objects, what do you mean with inside?

mithun_daa
10-30-2003, 08:05 AM
what i mean by "inside the polygon" is the volume inside the polygon. say the interiors of a cube is filled with the same color as its walls.

Originally posted by Mazy:
Polygons are infinity thin objects, what do you mean with inside?

mikael_aronsson
10-30-2003, 09:09 AM
Hi !

You talk about volymetric attributes, this does not exist in OpenGL, OpenGL does not understand the concept of "inside" a closed shape, a box is just a bunch of triangles to OpenGL.

Mikael