by yowlingcat · 9y ago · 0 comments
Very excited about this. I deeply want to use Py with BGE, but I had been worried about learning a soon to be deprecated game framework. There have been a couple tickets open on the main blender tracker about completely deprecating BGE and it seemed like a lot of core developers were in favor of doing that so as to not divert away valuable dev time from core development.
I feel like building the engine in to blender is not very viable because of the GPL license, but using Blender as a game editor is not a bad idea at all - so if you're going to do an OSS game engine I think the best solution would be to start with a more permissive license (eg. MIT or something like that) and not have any dependencies on blender in the actual engine, instead the blender integration code should be strictly separate, that part would be covered by GPL, but the engine core would still remain MIT as it's not derived from GPL code, so you could distribute your game without releasing the source.
According to the licensing page[1], you just need to distribute your executable and core .blend file separately. You would have a (GPL) small python script which loads your (commercial, closed source) blend file containing all of your artwork and Python code.
[1] https://www.blender.org/manual/game_engine/licensing.html#st...
Python would work well for this purpose, and I have been hearing about usage of Blender in with context of biology, and also things like GIS, and disaster recovery. (I've thrown in disaster recovery as I've at least seen once on TV that it was used modeling Fukushima power plant after the earthquake/tsunami.)
I want to create a model of some real world item (say a simple 2mx2m block for arguments sake) using the exact sizes of the object. Then I want to import it in Unity and have the size stay correct. Iirc one base unit in Unity is 1mx1m so if I make a 2mx2m block I'd like it to be imported and displayed as 2 unity units...for some reason the conversions lead to all sorts of bizzaro size adjustments. Must be a Unity thing but that was a rather frustrating experience.
I've written custom importers for Unity and it's a fairly straight forward process as long as the format you want to export to a format Unity likes from has an exporter you can call from the command line.
You just maintain some metadata on what hasn't been imported yet and use the asset import hooks to activate your conversion to a format that Unity already knows (usually FBX for 3D).
But honestly I wasn't aware that Unity doesn't already have reasonable Blender integration. I've been using Unity + Blender for years and never had too many issues.
It's been broken between Blender versions before because it does exactly what I describe (fires up instances of Blender with a python script that converts to FBX), but you can edit the script that Unity uses to convert and apply fixes which usually get shared pretty quickly.
There's also a little weirdness with the differences in coordinate space, but it just takes some mindfulness on the Blender side of things to deal with.
I don't know how much better the integration could get without going a step further and actually generating the FBX data from outside of Blender, but you can already do that with the same asset import hooks I mentioned before
I'm all for OSS just like the next guy, but saying it would be easier if unity weren't propriety is just FUD.
I use Jython with LibGDX and I wrote a class-loader that lets me run the code on Android too (interpreted so theoretically don't have to compile Dalvik)
I was doing some OpenGl testing here https://twitter.com/JadenHorst/status/787449615503196160
I'd like to see some modular pipeline that allows for quality rendering - Ambient Occlusion / Shadow Mapping without having to learn someone else's GUI.
Godot and some other engines have potential but there just seems to be too much learning curve and lack of "commercial - like" examples / community.
It'd be nice if there could be a "Blender" for Video Games given how many people probably want one.