Jump to content

How to set a selected area as the frustum plane


Recommended Posts

Hi everyone,

I need to select an area in the scene, and then enlarge it as frustum plane.


Select an area by mouse:



Enlarge the selected area as frustum plane:



It seems babylon can not set a frustum plane directly, any idea to implement it?

Link to comment
Share on other sites

hi @fdeng


i made this for ArcRotateCamera

but some bug i have 

1. i make select on div top of canvas 

2. that close object use by scale arcrotatecamera radius parameter

3. just one direction   selected

** use click ight for back

** after any change you most reload full html and see correct result




Link to comment
Share on other sites


I don't want to chip anything, I just want to select a rectangle area, and then scale up it to fill the render canvas size.



Thanks for your PG demo,  it can zoom in the selected area, but the scale is a little different than what I want.

Your method is also a good choice if I can't find a better way to implement it 

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.

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.


  • Recently Browsing   0 members

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