Using Color

View: New views
3 Messages — Rating Filter:   Alert me  

Using Color

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a 3D octagon that I created using the combination of a LineStripArray and a LineArray to fill in the missing line segments from the LineStripArray.  This makes a really nice wireframe image of a 3D octagon.  I can rotate it and animate a rotation and it looks great.

How can I add color (or texture) to the "faces" of the figure?  It seems like the easiest way to add color is when closed polygons are used to create the image.

My goal is to have a wireframe figure (say an octagon) with transparent color faces and be able to see the outline of the figure (i.e. the wireframe).

Any suggestions?

Thanks,
Mike
[Message sent by forum member 'mtarullo' (mtarullo463@...)]

http://forums.java.net/jive/thread.jspa?messageID=369681

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Using Color

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Get the Java3D tutorials at
http://wiki.java.net/bin/view/Javadesktop/Java3DBooks
It helps a lot ;)

To have both filled and wireframe view at same time  you must use two shapes : one for wireframe and other for filled.
Tip : scale up the wireframe a bit to avoid overlapping
[Message sent by forum member 'zesharp' (zando.silva@...)]

http://forums.java.net/jive/thread.jspa?messageID=369710

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Using Color

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the reply.

I've been following the tutorial, that's how I've progressed as far has I have.  The tutorial is very good, considering there are very few good books on the subject, and you can't beat the price!

I think I was heading toward the same conclusion myself (i.e. using one of the line array classes for the wireframe and a triangle strip for the filled polygons).  The positive reenforcement was good.  I was concerned about performance, that is having to use two sets of geometry objects to render a single figure, but I guess in a fairly simple 3D scene this is not that important when compared with all the drawing that goes on in something as complicated as a 3D computer game!

You mentioned something about scale in your reply, does the tutorial cover this in depth (I've only read through the Geometry chapter, which only briefly mentions scale and I need to reread about it.)?
[Message sent by forum member 'mtarullo' (mtarullo463@...)]

http://forums.java.net/jive/thread.jspa?messageID=369815

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...