coloring

How do I do coloring on some faces of an object?

for example: I have this object loaded from an object file. When this object is drawn, the entire object is in green.
After that I would like to have potion of it to turn say red? how do i do that?

Also what does it meant by id face render? :slight_smile:

Use vertex colors to color vertices and faces different colors. Another option is to use texturing, which gives you more flexibility as to what is colored, but it’s much more complicated.

ok but the problem is how to i select the faces i want?are there any sample codes? As I just started learning jogl…

What do you mean by select? To have a mouse click on a face to color it? or something else?

Yup, more of less is using the mouse for selection. but the actual thing is I will use the mouse to draw a stroke,
and first thing I would like to do is to select all the visible faces that are under this stroke and color it first.
How do I go about doing that?