Ankit Kothari

I need to create the 2D background stag of 720*480 and with responsive as per aspect ration of screen

Recommended Posts

 
wn voFolks, I am currently using phaser js but now i am try to implement babylonjs,

I need to create stage 720*480 static stage that will not transferred into 3D.

Stage should be STILL.

An it is responsive based on the aspect ratio of the browser or the screen.

I tried various option but i didnt get any success.

Thank in ADVANCED

Share this post


Link to post
Share on other sites

Hi, Welcome to the forum!!

Sorry, I don't know what a stage is.  I realise these issues don't normally work on a BabylonJS playground (there is a playground site used here for issues/demos).

Did you follow the "resize" info from here?
https://doc.babylonjs.com/babylon101/first
If your canvas has a height/width (attributes on canvas HTML element) set then that is always used - so, may need to use CSS on canvas as per link.

Let us know what you have tried.

Share this post


Link to post
Share on other sites
6 hours ago, Ankit Kothari said:
 
wn voFolks, I am currently using phaser js but now i am try to implement babylonjs,

I need to create stage 720*480 static stage that will not transferred into 3D.

Stage should be STILL.

An it is responsive based on the aspect ratio of the browser or the screen.

I tried various option but i didnt get any success.

Thank in ADVANCED

what options...?

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

  • Recently Browsing   0 members

    No registered users viewing this page.