Omega Posted October 10, 2018 Share Posted October 10, 2018 Hello everyone, I am new to babylonJS. I have integrated babylonJS in Angular 6 application. I am facing issue in rendering scene on page load. When I run application the scene is not appear until I inspect the browser or resize the window. I don't know why this is happening. any help is really appreciable. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Omega Posted October 10, 2018 Author Share Posted October 10, 2018 I have got solution for this issue just need to add window.dispatchEvent(new Event('resize')); in ngAfterViewInit() lifeCycle hook. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 10, 2018 Share Posted October 10, 2018 It might be related to the created canvas size before ot is rendered. I guess you could have called engine.resize() instead. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.