Jump to content

cameraHelper type of thing?


babbleon
 Share

Recommended Posts

That's a great idea @babbleon! - I really cannot count know how many times I've had z-fighting issues where something is out of frustum near plane, so that near plane is really helpful (ie: move near/far plane or z-position/fov).  This is linked from the page that I used to learn all the math, but would be a cool documentation PG with GUI sliders to demonstrate the utility of the camera helper:
https://webglfundamentals.org/webgl/frustum-diagram.html main page(https://webglfundamentals.org/webgl/lessons/webgl-3d-perspective.html)

Link to comment
Share on other sites

Here is the code of the bounding box renderer: https://github.com/BabylonJS/Babylon.js/blob/master/src/Rendering/babylon.boundingBoxRenderer.ts

I was wondering if we should create a CameraFrustrumRenderer and a LightFrustrumRenderer looks like it would be consistent and pretty helpfull, we could also add them to the inspector like we do for the mesh and @Luaacro could do good use of it in the editor.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...