To display many spheres,as suggested(thanks Dave), I'm creating one
QuadArray with thousands of rectangles and putting a sphere image as texture
on all these rectangles. When I rotate the view I calculate the vertices of
all the rectangles such that they always face the camera.

The problem now is the 'transparency'. We are using BLENDED transparency
attribute,so that the corner of the rectangle(outside the sphere) are not
visible. As I rotate the view some of the sphere go behind the others, the
problem is that the images are shown overlapping each other, ie. the sphere
which have gone behind are also visible.
If I use transparency attribute NONE then this problem does not come but the
corners of the rectangle are appearing as black.

If somebody wants I can send the image in a private email, which should
explain the situation better.

thanks in advance,
nitin

-----Original Message-----
From: David Yazel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 8:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Sphere rendering problem


You can use a shared group and a link node to solve this problem.  The other
solution is to use a "fake" sphere by using alpha blended textures (with a
picture of a sphere on it) and using a single geometry array with one quad
per sphere.  Each frame adjust the coords of each quad to point at the
camera.

Dave Yazel

----- Original Message -----
From: Nitin.Jain <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 21, 2002 10:08 AM
Subject: [JAVA3D] Sphere rendering problem


Hi,

We have an application in which we need to display thousands of sphere(upto
50k) at a time. The standard java3D Sphere class takes lot of memory and
gives an OutOfMemory error. I tried sharing the Appearance object (as
suggested in the archives) but it hardly improves the condition. It only
displays maximum 3k spheres at a time.

We need to find a way where we can SAVE on the memory usage. Is there a way
where we can share the Sphere object also. We have only 4-5 different
colours-radii combination. Is there a way to create these 4-5 unique sphere
object and render them at different position.

Another option comes to my mind is to develop our own sphere class, in which
we only display the hemi-sphere which is visible. But, how do we handle the
rotation, because as we rotate the view, the other side of hemi-sphere(which
is not drawn) starts appearing on the screen.

OR
suggest, if there are any algorithms which can be used in such scenarios.

Thanks in advance,

Regards,

Nitin Jain
ingenovis,
A division of i-Labs Ltd.
Hyderabad, India
Phone : 91-40-3352900/2 Ext.2016
Fax     : 91-40-3351522
Email  : [EMAIL PROTECTED]
http://www.ingenovis.com

===========================================================================
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".

===========================================================================
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