3D-Wind-Field icon indicating copy to clipboard operation
3D-Wind-Field copied to clipboard

I have a question about the ScreenSpaceEventHandler

Open GIS-Sumail opened this issue 4 years ago • 8 comments

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. image

GIS-Sumail avatar Sep 25 '20 07:09 GIS-Sumail

Could you elaborate your issue? What behavior do you expect and what is the actual behavior?

RaymanNg avatar Sep 25 '20 14:09 RaymanNg

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.

GIS-Sumail avatar Sep 28 '20 01:09 GIS-Sumail

您能详细说明您的问题吗? 您期望什么行为,实际行为是什么?

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.

GIS-Sumail avatar Sep 28 '20 01:09 GIS-Sumail

The pick function also calls WebGL APIs, I doubt that the endFrame function call within the pick function interferes the wind field WebGL program.

RaymanNg avatar Sep 28 '20 14:09 RaymanNg

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.

GIS-Sumail avatar Sep 29 '20 01:09 GIS-Sumail

How about using the preRender or postRender event here?

I think it should be safe to call pick function before/after the render.

RaymanNg avatar Sep 29 '20 13:09 RaymanNg

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

GIS-Sumail avatar Oct 28 '20 12:10 GIS-Sumail

I think I have already answered your question, try to make use of preRender or postRender event.

RaymanNg avatar Oct 28 '20 14:10 RaymanNg