3D-Wind-Field
3D-Wind-Field copied to clipboard
I have a question about the ScreenSpaceEventHandler
hello, in the project,if i activate the MOUSE_MOVE handler,like this:
var handler = new Cesium.ScreenSpaceEventHandler(this.viewer.scene.canvas); handler.setInputAction(function (movement) { var pick =this.viewer.scene.pick(movement.endPosition); },Cesium.ScreenSpaceEventType.MOUSE_MOVE);
when the mousemove quickly,the particles will have bug.
Could you elaborate your issue? What behavior do you expect and what is the actual behavior?
when the MOUSE_MOVE event is activated,the rapid movement of the mouse will cause texture exchange errors.I hope the mouse movement has no effect on the particles,you can activate the MOUSE_MOVE event test.
您能详细说明您的问题吗? 您期望什么行为,实际行为是什么?
Could you elaborate your issue? What behavior do you expect and what is the actual behavior?
when the MOUSE_MOVE event is activated,the rapid movement of the mouse will cause texture exchange errors.I hope the mouse movement has no effect on the particles,you can activate the MOUSE_MOVE event test.
The pick function also calls WebGL APIs, I doubt that the endFrame function call within the pick function interferes the wind field WebGL program.
The pick function also calls WebGL APIs, I doubt that the endFrame function call within the pick function interferes the wind field WebGL program.
dear author, how to solve this problem and Can you give me some ideas.
How about using the preRender or postRender event here?
I think it should be safe to call pick function before/after the render.
How about using the preRender or postRender event here?
I think it should be safe to call pick function before/after the render.
emmmm....how to solve this problem
I think I have already answered your question, try to make use of preRender or postRender event.