John Ratcliff has published an algorithm called sphere trees which would be perfect for you. I have started porting his C code into Java. We will be using it for particles and weeds and other things where we have many thousands of objects which we need to render differently on every frame. I don't have the port done yet, and it may be a few weeks until I finish it, but if you want I can send you the C source and the example app which demonstrates how it can be used.
Dave Yazel ----- Original Message ----- From: "Lan Wu-Cavener" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 2:15 PM Subject: Re: [JAVA3D] depth sorting Thanks, Nitin, From what I read, the only way to do the depth sorting is to use BSP or this sort octree . I have not started to implement it yet. I also hoping there is some easier way. cheers! At 09:44 PM 6/27/2002 +0530, you wrote: >Lan, > >No I didn't get any response to this query...probably it is something which >is very-very simple or the other way round :) >No I'm not doing any occlusion culing, I'm using immediate mode of rendering >because the number of geometries are huge in my view. The geometry is mainly >consisting spheres so I'll display a point for the farther component rather >than a sphere . > >regards, >nitin > > > -----Original Message----- > > From: Lan Wu-Cavener [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 27, 2002 8:24 PM > > To: Nitin.Jain > > Subject: Re: [JAVA3D] depth sorting > > > > > > Nittin, > > > > Have you got any responses directly to you? > > I am also interested in the answer to this question. Are you doing > > occlusion culling? > > > > > > At 01:40 PM 6/17/2002 +0530, you wrote: > > >Hi, > > > > > >I have thousands of geometries in my view and I know the > > center points, I > > >want to depth sort all of these. Can somebody suggest me > > what is the best > > >way to this. I also have the rotation behaviour so I have to > > do it at each > > >rotation of the model I carry out. Should I apply the > > rotation on all the > > >points and then calculate the distance of each point from > > the view point. Or > > >is there any readymade way available in Java3D to do this. > > > > > >Regards, > > >Nitin > > > > > >------------------------------------------------------------- > > --------------- > > >------------------------ > > >AS FAR AS THE LAWS OF MATHEMATICS REFER TO REALITY, THEY ARE > > NOT CERTAIN; > > >AND AS FAR AS THEY ARE CERTAIN, THEY DO NOT REFER TO > > REALITY. -- Albert > > >Einstein > > > > > >============================================================= > > ============== > > >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". > > > > Lan Wu-Cavener > > Dept. of Landscape Architecture > > > >=========================================================================== >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". Lan Wu-Cavener Dept. of Landscape Architecture =========================================================================== 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".