Skip to main content

how to work cube's edges

2 replies [Last post]
hoyaab
Offline
Joined: 2004-06-23
Points: 0

hi all
first ... sorry about my poor English
Please tell me?
how to make out line on cube's outline
j3D example is have a Poligon_line and Polingon_fill
but I want fill face and have a line so it have not example.. do you have any Idea or example source?
if you have Idea or example file send message for me
e-mail :: hoyaab@hotmail.com

thank you read my poor English word...
~bye

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aces
Offline
Joined: 2003-07-17
Points: 0

As far as I know Java3D doesnot allow put poligon-line and polygon-fill
at same
time, but you can cheat.
* duplicate your shape3D and set the 1st (first) as polygon_fill, and
the 2nd
(second) one as polygon_line.
* put the second one slightly bigger the the first one - 1.02f Maybe is
enought
to avoid zbuffer fight.
* or use OrderedGroup, and RendererAttribute with Alpha set to draw pixels ALWAYS;

I use the above tips to put some color in my black&White DOT3 bumpMap
demo
http://planeta.terra.com.br/educacao/alessandroborges/java3d.html

I hope it helps you too.

Alessandro

hoyaab
Offline
Joined: 2004-06-23
Points: 0

thank you I will try it
thank you aces