Sign in to follow this  
Dad72

Create viewport in round shaped ?

Recommended Posts

Hi  @Dad72 and @adam ,

I face the same problem as @Dad72 had, Above information is very useful for me.

But i face one issue , how can i set the position of layer to sets the layer or roundmask image around my some predefined round shape area ?
can i change the position of layer ?? 

Share this post


Link to post
Share on other sites

Hiya B!  https://www.babylonjs-playground.com/#UCFKM#96

The first 2 numbers in line 12... allow you to adjust the X/Y of the lower left corner of the viewport position.

Viewports are like textures... 0,0 in lower left corner.  (thx Dad72)  :)

I did a little animating in lines 44-48.

Should do the trick for ya.  Party on!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.