3

I am having trouble to get Rectangle position of current Camera view.

I want to create a Rectangle or Wall on the same position as current Camera view (red rectangle). Is there any way to do this?

enter image description here

Thank you

1
  • What distance from the camera should this be? Is it aligned with the first near plane?
    – emackey
    Jan 18, 2016 at 22:48

1 Answer 1

2

I am not sure I understand you problem, but I think you may have luck using the the Cesium camera's computeViewRectangle function to get the approximate rectangle the camera can see.

Here is the documentation: https://cesiumjs.org/Cesium/Build/Documentation/Camera.html#computeViewRectangle

1
  • Yes, That's corrent solution. They added it few days after asking this question but thanks :).
    – camabeh
    Mar 25, 2016 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.