No. But I solved the problem by passing Primitive.ENABLED_GEOMETRY_PICKING
and Primitive.GENERATE_NORMALS. I got this by checking the Sun's source
code of Cone.java. I don't know how Primitive.ENABLED_GEOMETRY_PICKING is
used in Sun's Cone.java, however I found that Primitive.GENERATE_NORMALS is
a must.
Qiuli Sun
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of pierre abel
Sent: Tuesday, December 12, 2000 6:26 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] What's wrong with Cone(1.8f,
10.0f,Primitive.ENABLED_GEOMETRY_PICKING, appearance) ?
Qiuli Sun wrote:
> Hi,
>
> I tried to create a cone which is pickable.
>
> If I use Cone(1.8f, 10.0f) and setAppearance(appearance). The color of
cone
> is correct. But I was not able to set Primitive.ENABLED_GEOMETRY_PICKING
> since setPrimitiveFlags() is depreciated.
>
> If I use Cone(1.8f, 10.0f, Primitive.ENABLED_GEOMETRY_PICKING,
appearance),
> the color of cone is not correct since I got a white cone. The document
says
> that if appearance is null, the color of cone is white. I am sure that my
> appearance is not null. What happens to this cone constructor?
>
> When I use Cylinder(1.8f, 10.0f, Primitive.ENABLED_GEOMETRY_PICKING,
> appearance), the same thing happens.
>
> My question is how to make a cone and cylinder pickable?
>
> Any idea on this?
>
> Thank you very much.
>
> Qiuli Sun
>
Just a thought
have you tried to use the setPickable(boolean) method on your cone ?
pierre
>
>
===========================================================================
> 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".
--
------------------------------------------------------
Pierre Abel | mailto:[EMAIL PROTECTED]
Institut Eurecom | http://www.eurecom.fr/~abel/
===========================================================================
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".
===========================================================================
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".