Problem coloring a cylinder

Problems with Canvas, OpenGL, etc...

Problem coloring a cylinder

Postby KennetRose » Fri Apr 01, 2011 2:07 am

I am very new to OpenGL programming and I seek some help.

What I have done so far is a 3d cylinder object. Next I want to color it so that the top and bottom would be blue and the side would be red. I have no idea how to achieve that.

I know that there are two types (or maybe more) coloring techniques: flat coloring (with gl.glColor4f()) and smooth coloring (with gl.glColorPointer() using the colorBuffer).

I think what I want to use is flat coloring. I have done it so:__________________________
mother of the bride dress
mother of the groom dresses
flower girl dress
KennetRose
Developer
Developer
 
Posts: 29
Joined: Thu Dec 23, 2010 7:18 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 4 guests