vujadin / BabylonHx

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

BabylonHx and Kha #43

Closed dresch86 closed 9 years ago

dresch86 commented 9 years ago

@vujadin I've been poking around in some of the BabylonHx code and noticed some compiler directives for Kha. Also, I found a thread from about a year ago where you had interest in integrating Kha into BabylonHx. What is the status of that? I am interested in the Kha framework and was curious what it could do for BabylonHx. I plan to make games for Android and iPhone so the more efficient the code, the better. Just curious what your thoughts were.

vujadin commented 9 years ago

That's the plan, to make BHx work with Kha. Just can't find time to do that yet ...

dresch86 commented 9 years ago

Hmm....well I have interest in helping out. Just curious....what does BHx work off of now? Looks like it works off of built in Haxe functionality, but have you extern'd BabylonJS in anyway? Also, what are your thoughts on haxebullet? I know BHx currently uses OimoHx, but Bullet has quite a community behind it.

vujadin commented 9 years ago

BHx is direct port of BJs to Haxe. It uses WebGL-like API provided by all three supported frameworks (Lime, NME, Snow) to access GL on various systems. Also, while with both Lime and Snow you can build for web, you can build BHx for the web without dependency on any of these libs - that way you will get BabylonJs equivalent which you can use in your web/javascript project the same way you would use BJs itself. Since BHx works with (Web)GL, its not very easy task to make it work with Kha. Kha API is a bit higher level then raw GL API... Not sure even how to approach this problem. One would have to know Kha API really well I guess. I would appreciate any help with this. About Bullet, I would love to see BHx working with it. OimoHx is very basic physics engine, its useful for demos but nothing beyond that.

dresch86 commented 9 years ago

OK, I'm going to play around with Kha and haxebullet. Someone has been working on a project called ZBlend which does put the two together so I'll have a starting point. Many of the ZBlend links are broken for some reason, but I think I can piece it together. The ZBlend designer had a nice idea to integrate with Blender. Very slick and useful.....minus the needing python to make the plugin :-/