-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors with Haxe 3.4.0-rc.2, Lime 3.5.2, hxcpp 3.4.2 #139
Comments
Thanks man, that was fast. It was indeed 2D stuff. |
I've updated lime template, they have changed lime api again... |
Too bad ... Haxe is really missing a good 3D engine ( for all possible backends ). |
Hey,
I'm trying out Babylon.hx but I got stuck when building the examples ( Lime build ).
First I got lots of missing assets errors but I managed to solve that by downloading them from Babylon.js web and put them into the assets directory.
I tried to build to HTML and Windows native, so here's what happened:
HTML ( Materials test scene )
Assets fail to load, 'engine' reference is undefinged( null )
Build passes fine, no error but when dev server is started, web page is cyan screen and there's lot's of errors in console.
First it says that it cannot read the __renderLoop() function ... it cannot read because at that time 'engine' reference is underfined and it's been called before assets are loaded. From that point assets will never get loaded/displayed.
The 'render' function has been called before assets are loaded and 'onPreloadComplete' callback's been called.
If I put check for engine null reference in ;render' function it works fine. :
override public function render(renderer:Renderer) {
if ( engine == null ) return;
engine._renderLoop();
}
So, this is just a minor issue.
https://www.dropbox.com/s/izjzaebtl3xgpzq/babylon_html_002.png?dl=0
WINDOWS target
Same issues, red semi-transparent sphere acts weirdly when moving around. So I guess same shader issues applies on hxcpp windows target.
Any thoughts how to deal with those issues?
BTW, Cheers from Croatia
The text was updated successfully, but these errors were encountered: