What if we were to extend this problem one step further, and say could we apply
a different texture to each polygon face if we were to pick it? Does that still
work? I would imagine that for most cases (for instance, building a terrain
*grid* with textures), there would very likely be a reason that every grid
square touching another would need a different texture. However, for even a
small grid (50*50), 2500 Shape3Ds do not render nicely at all.
>Date: Mon, 19 Jun 2000 12:26:36 -0400
>From: "Dvorak, Daniel J." <[EMAIL PROTECTED]>
>Subject: Re: many shape3d objects
>MIME-Version: 1.0
>Content-Transfer-Encoding: quoted-printable
>X-MIME-Autoconverted: from 8bit to quoted-printable by itd.nrl.navy.mil id
DAA14889
>
>So you can change the color of a polygon face by changing the color of the
>vertices? Do you still need a reference to an appearance so the face will
>be drawn? Did the memory requirement go down significantly when you put all
>the polygons into one Shape3D?
>Daniel
>
>-----Original Message-----
>From: Bruno Sousa Caiado [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 19, 2000 11:30 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] many shape3d objects
>
>
>Hello,
>I had a similar problem with my project and i solved it using the Indexed
>geometry classes provided by j3d. With this classes you put as many polygons
>as you want in one shape3D (check out the IndexedGeometryArray class in the
>API)
>
>As far as changing the appearance of the individual polygons, you can change
>their color if you�re able to know what are the vertices that belong to the
>polygon in question. All you have to do is use an array to map the color
>onto the vertices (as opposed to using the appearance to set the color...)
>and then change the color at the specified indices of the array...
>Hope it helps...
>Good luck and good work...
>
>Bruno Caiado
>
>----- Original Message -----
>From: Dvorak, Daniel J. <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, June 19, 2000 3:38 PM
>Subject: [JAVA3D] many shape3d objects
>
>
>> In my project, I need to draw about 30000 polygons, each individually
>> pickable. When a polygon is picked, I change the color by changing the
>> appearance reference. Currently I create a Shape3D for each polygon, and
>> this requires about 160Mb of RAM. I think the huge memory requirement is
>> due to the number of Shape3D objects. Is there a way to create all my
>> geometry using one Shape3D and still have the ability to change appearance
>> of individual polygons?
>>
>> Daniel
>>
>>
>===========================================================================
>> 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".
***************************************************************
* George Vilches *
* Computer Scientist, Intelligent Systems Section *
* Navy Center For Applied Research in Artificial Intelligence *
* Naval Research Laboratory (NRL), Code 5510 *
* 4555 Overlook Ave., S.W. *
* Washington, DC 20375-5337 *
* [EMAIL PROTECTED] *
***************************************************************
===========================================================================
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".