Hi Decker,

> Now then, are you creating a PointArray and making a Shape3D out of
>that? if so, are you also trying to use the appearance object?

> if so, are you also trying to use the appearance object?
Yes I am using appearance object as, by default the transparency enable
is set to be false. Unless i define an Transpaceny Attribute, a value in
my r,g,b,a has no effect what so ever.

I am using a PoinArray to make a Shape3d object. The appearence of this
shape 3d object is defined as:

        Appearance myCubeapp = new Appearance();
        myCubeapp.setPointAttributes(new PointAttributes(10.0f, false));
        TransparencyAttributes myTrans = new TransparencyAttributes();
        myTrans.setTransparencyMode(myTrans.NICEST);
        myCubeapp.setTransparencyAttributes(myTrans);

> results with just points
>try using blended

tried doing this. everything seems to tbe working fine so long as my
pointsize =1.0. As soon as I increase the point size >1.0, transparency in
my rgba stops having any effect till 0<a<128, and for 127<a<256, its
completely transparent.(i.e., i dont see the points at all)

> If none of this works, or does not help with your app, then show us
> the snippet of code where you do the shape creation and we can help

I have attached a test code which demonstrates this point. Compile
TestMain.java and TestCube.java. TestCube.java creates the shape3d object.
As it is set right now, it generates 4*4*4 points. Of these points z=0
haver rgba=(1,0,0,127) z=0.25 have (1,0,0,128), z=0.5 have
(0,1,0,127) and z=0.75 have (0,1,0,128). Im using an Sun Ultra 10,
with creator 3d.

> As for why should you learn opengl to know java3d. Well, that is kind of a bad
> statement. Learning OpenGL would help you understand all of the things about
> transparency, colors, arrays, etc. And since there are so many books on opengl
> and not java3d, it is easier to say, go learn OpenGL and apply what you learn
> from that to Java3d

Well i have refered books on graphics in general. For newbies to graphics,
learnign OpenGL to learn java3d seems like an overhead. Im all for learing
in details of how things are working behind the scene, but if we are to
make java3d truely the main graphics platform, then why do we want to
assume that the user is already an expert in OpenGL? I guess this issue
will get better address as more books are written. But shouldnt the API
specs/API reference be more informative? eg, coming back to the
transparency, i still havent an source which tell me that when using
Color4b objects, transperncy/rgb increases from 1-255 (It tells that for
Color4d objects, transparency increases from 0.0-1.0)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to