[转载] opengl/java3d programming question# Java - 爪哇娇娃
c*t
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
I am trying to do the following in java3d. Performance is a big issue
here.
There is a surface (around 20,000 vertices) and I would like to pick
vertices. Basically, when a mouse click event occurs, I would like to
know the nearest vertex by the mouse pointer.
I tried to use PickTool, which requires a shooting ray (which can be
started from the eye position to the image plate location of the mouse
pointer, which has a z coordinate of 0.0). Then
【 原文由 coconut 所发表 】
I am trying to do the following in java3d. Performance is a big issue
here.
There is a surface (around 20,000 vertices) and I would like to pick
vertices. Basically, when a mouse click event occurs, I would like to
know the nearest vertex by the mouse pointer.
I tried to use PickTool, which requires a shooting ray (which can be
started from the eye position to the image plate location of the mouse
pointer, which has a z coordinate of 0.0). Then