Answered my own question, I think, I guess that is what the GeometryArray
setColor APIs do... but how does this colour information for each point
relate to the Shape3D ColoringAttributes and Material information? I am
going to try to create all of my points inside a single Shape3D object,
assign colours using the setColor APIs and selectively display them using
the Alpha value for the colour (could be slow...). I used to have a separate
Shape3D object for each point so that I could selectively display them using
a Switch node.

Any other ideas much appreciated as I have to go beyond our current 1,000
point limit, up to about 30,000 points.

Best,

Daniel Selman.
Tornado Labs Ltd.

Email:   [EMAIL PROTECTED]
Web:     www.tornadolabs.com
Phone:   +44 (0131) 343 2513
Fax:     +44 07070 800 483


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel
Selman
Sent: 18 February 1999 23:42
To: Java3D; Grant Jennings
Subject: RE: [java3d] Scaling J3D to large worlds


Grant,

Does anyone know of how I would be able to modify the colour and size of the
individual points within a PointArray if I were to create them within a
single Shape3D object?

Daniel Selman

-----Original Message-----
From: Grant Jennings [mailto:[EMAIL PROTECTED]]
Sent: 18 February 1999 22:50
To: [EMAIL PROTECTED]; Java3D
Subject: RE: [java3d] Scaling J3D to large worlds


Wouldn't each Shape3D node add extra work for the j3d runtime in calculating
bounding boxes etc?

I would think it would be wiser to find a way to merge your 'simple' nodes
into one (or a few) nodes. I think there is something in the j3d spec about
this.

I haven't played with j3d alot yet so this may be completely wrong but it
seems logical to me.

Grant.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel
> Selman
> Sent: Friday, 19 February 1999 8:34
> To: Java3D
> Subject: [java3d] Scaling J3D to large worlds
>
>
>
>
> Has anyone else had problems with creating scenegraphs with lots
> of objects.
> I'm trying to create a scenegraph with approx. 25,000 Shape3D objects
> (controlled with a Switch node). The objects themselves are very simple,
> just a single point in a PointArray, but I've seen that creating
> up to 1,000
> objects is fine, but after that point creating each object takes
> longer and
> longer (exponentially so).
>
> I'm interested to know if anyone else is using scengraphs with comparable
> numbers of objects, or if I'm on a hiding to nowhere here and should try
> something different (like immediate mode). Anyone have any suggestions for
> me, to get reasonable performance?
>
> A fuller description of my woes with Shape3D creation (as posted
> a couple of
> days ago), is available here:
> http://www.tornadolabs.com/java/java3ddocs.html
>
> Any help is appreciated, and I'd love to hear from the Sun engineers who
> have access to the Shape3D constructor source code, and might be able to
> tell me what code is being called that appears to be N squared in
> the number
> of Shape3D objects that have been created with non-default materials.
>
> Regards to all,
>
> Daniel Selman
>
> Tornado Labs Ltd.
>
> Email:   [EMAIL PROTECTED]
> Web:     www.tornadolabs.com
> Phone:   +44 (0131) 343 2513
> Fax:     +44 07070 800 483
>
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to