Enrique Dumas wrote: > >Hello, >"I also tested the IntersectionUtils from org.j3d.geom. They seemed >faster, but instead I have problems getting them to work correctly." > >I used IntersectionUtils class sucessfully in my app, so perhaps I can help >you. > That would be appreciated :-)
I think my problem is that I don't understand the vworldTransform argument. I'm not sure which transform (from what to what) should be inserted here. It could also be because I'm going from mouse x, y coordinates, inserting origin and direction in the 'wrong' coordinate system. A simple example would be nice, NavigationHandler is to big to examplify the use of IntersectionUtils in a simple way. >What sort of geometry is used for your shape3D ? (trianglearray, >trianglestriparray, ...) > I was using a TriangleStripArray, but it seems like there is a bug in the offset calculation, so I have also tested using TriangleArray. >In my case, I added a method in IntersectionUtils class who computes >intersection with a triangle >and I make some tests with a subset of triangles containing the point of >intersection with the ray and the shape > OK, did you do this to speed up the calculation, or was there other reasons why you needed theese modifications? >________________________________________________________________________ > Roger Berggren <[EMAIL PROTECTED]> wrote: Hi, > >I'm trying to find the closest intersection point between the mouse >position and a huge (700, 000 vertices) Shape3D. > >What is the best approach to try to find the closest intersection >point as fast as possible. > >I have tried the com.sun.j3d.utils.picking classes, but for this size >they seem a bit slow, but they find the local coordinates correctly. > >I also tested the IntersectionUtils from org.j3d.geom. They seemed >faster, but instead I have problems getting them to work correctly. > >So I have one that's slow but correct and one that's fast but >not working :-) > >How do one best organize the scenegraph with such a large >Shape3D for best picking performance? > >Do you have 70 Shape3Ds with 10000 vertices or >1 Shape3D with 70 geometries or a single GeometryArray? > >Any ideas, thoughts or examples are greatly appricated. > >Best Regards, > >Roger Berggren > >=========================================================================== >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". > > >--------------------------------- >Do You Yahoo!? >Sign-up for Video Highlights of 2002 FIFA World Cup > - att-1.htm > =========================================================================== 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".
