How to draw wireFrame objects.

I have to draw wireFrame models of Geometric objects like Cube ,Triangles .But right now default color is coming as white and its painting them as solid object .How to fix this ,should i change Apperance ??

you said you’ll look into it.

yaa but problem is my deadlines are very tough and so not getting enough time to read anything.I know i should go through that …but right now i have to make a presentation about Jogl and got to give it early.

Then Google that website for it:

“site:<the url, or the domain> wireframe”

We’re not going to spoon-feed you after we told you where the spoon is. (err?? :))

Thats very well said …i’ll try to solve things ;D…can i know more about you as in which kind of projects you are in and what you precieve about Java in Graphics.

there are loads of projects - you could look at java.net -> games (Ok there are also lwjgl, pure jogl and Java2d, Java3d ones, but also Xith3d ones - and ofcourse games middleware projects)

Or you could check out the Games Showcase section here at this forum.

You can turn wireframe rendering off/on for the entire scene with this code:


cp.getRenderOptions().setOption(Option.ENABLE_WIREFRAME_MODE, true);

Where cp is your CanvasPeer, and “true” turns it on (false to disable).

Or you can turn it off individually using Appearance I think (personally I use the global setting for debugging).

Will.

yaa thanks this has worked … :slight_smile: Option.ENABLE_WIREFRAME_MODE