vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
187 stars 43 forks source link

OpenFL demo problems #57

Closed xerosugar closed 9 years ago

xerosugar commented 9 years ago
  1. PlayState does not exist.
  2. Created a new PlayState to work with. Screen was all black, so I made the bgColor on the FlxCamera transparent, now it looks like this:

flixel_babylon

(Black boxes behind otherwise transparent areas).

  1. Cannot compile from FlashDevelop (I get 'Type not found : JoystickEvent'); only from cmd. Seems to have something to do with OpenFL next/legacy settings, not sure what I'm doing wrong... I've tried using both '' and '' in my project.xml, but still won't work :(
  2. Not sure about this, but since you're using a FreeCamera in the BasicExample I figured it should be possible to use the mouse to rotate the camera - but that doesn't work.
  3. "Image 'assets/img/graygrad.jpg' doesn't exist!"
anber500 commented 9 years ago

I can confirm this. I'm having the same issues as @xerosugar.

vujadin commented 9 years ago

Ok, sorry about that, wrong code pushed to repo. I've fixed that now. I've also fixed openfl template so now it renders without black boxes, this is how it looks now:

bhx_flixel

I was able to build from FD by editing FlxGamepadManager.hx class. I've commented out lines from 282-286 and in event handlers used Dynamic instead of JoystickEvent (this will obviously kill gamepad in your project ...). But mouse/keyboard doesn't work for me also, I guess its Flixel stealing input events. I guess you'll have to find a way to sand those events down to BHx somehow, not sure about that I'm not flixel user...

I removed 'assets/img/graygrad.jpg', it was used for building demo for babylonhx.com site so not really needed.

anber500 commented 9 years ago

Thanks @vujadin , it's rendering as per your screenshot and I can confirm that the mouse doesn't work. Why are you using flixel for the openFL example though? Just asking.

vujadin commented 9 years ago

Because so many people want BHx to work with flixel (???), that is the most problematic thing if you check all the issues :) But yeah, its a bit misleading, I'll create separate examples for pure openfl and flixel.

On Mon, Oct 5, 2015 at 5:02 AM, Anber notifications@github.com wrote:

Thanks @vujadin https://github.com/vujadin , it's rendering as per your screenshot and I can confirm that the mouse doesn't work. Why are you using flixel for the openFL example though? Just asking.

— Reply to this email directly or view it on GitHub https://github.com/vujadin/BabylonHx/issues/57#issuecomment-145418521.