View Full Version : Transparency Coloring & Concave Forms
03-14-2001, 11:28 PM
I am having problems coloring concave forms (a star for example) with transparent colors.
The regular color functions do not apply to concave forms when trying to use transparent colors.
Any suggestions ?
03-15-2001, 01:05 AM
Don't know if I understood your question, but OpenGL has no native support for concave primitives. Concave objects have to be assembled with multiple convex sub-primitves.
With that in mind, OpenGL does not know of concave objects and esp. glColor has absolutely no relation to the form of an object. (Though to the type of primitive with flat shading.)
Transparency on the other hand is controlled by blending and lots of constraints exist for the correct representation of transparent 3D objects. Do a search on the forum for blending and sorting.
03-15-2001, 05:14 AM
well, u probably gets artifacts, because you do not sort your polygons.
you have to render all transperent polygons from back to front. one way doing this is storing your star in a bsp tree.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.