Stencyl 3.4.0 is now out. Get it now!

3D Library Adventure

LIBERADO

  • *
  • Posts: 2435
I am eager to use this great extension when it becomes available.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

fillergames

  • Posts: 732
I'd love to use this extension, too.

Maybe for better Blender support, SMDs could be added for animations and models? As there's a very nice SMD plugin for Blender that works nicely (I use it all the time)

mdotedot

  • *
  • Posts: 1260
Hey FillerGames,

Thanks for the interest!

Currently the Away3D engine supports these parsers:
  • AC3D
  • AWD1, AWD2, AWD
  • DAE
  • DXF
  • MD2
  • MD5
  • Max3DS
  • OBJ

Some of these parsers support animations. MD5 had an example and 3ds and collada might work but I've yet to find the method on how to do the import for these.

I'm currently not going to write my own parsers.

It might be possible to use converters : http://www.greentoken.de/onlineconv

I've tried to do a source-tool export to SMD from Blender but it trows 'scene unconfigured'.
I'm so new to Blender that I'm overloaded with all the options in the tool and have no clue as to where to look for scene properties :D :(

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

fillergames

  • Posts: 732
You have to use the scene data for SMD exports.

Either way, DAE could probably work, too. Though, DAE import/export is picky on Blender.

merrak

  • *
  • Posts: 1605
...
My personal preferences:
* Free to use : I have no problem paying for stuff but I should need that tool daily or really often to make it worth my money.
* Somewhat user-friendly. Although I do realise it is a new skill that needs to be learned.
* Preferably one tool

If anybody know of a good (free) 3D tool that can export OBJ and MD5(anim/mesh) please let me know!!

...

Have you looked at MakeHuman? I'm not sure what all it can export, but there are a lot of options.
Like Daz, it's emphasis is on humans. But the output is CC0 and the tool itself is free.

fillergames

  • Posts: 732
Also,  forgot. You can probably convert FBX (If this toolset supports FBX) to DAE and back. But those methods aren't perfect, and can get real messy.

mdotedot

  • *
  • Posts: 1260
Thanks for the feedback guys!

@Merrak: MakeHuman has emphasis on humans. Also I tried exporting to a format that Away3D supports and I needed to go through Blender.

@FillerGames : Yeah real messy is what I still end up with using Blender and other methods. I still don't have a steady work-flow.  I used a procedure to create a self-made animation but the same procedure doesn't work with previous animated files. A lot of .blend files animate just fine but can't export to MD5. (At least not with the current export steps)
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1260
With the new (private beta ) Stencyl  version the code breaks :(

I will need a bit of time to investigate how much the Away3D engine needs to be altered or that I can be better of using BabylonHX again, which also needed a lot of changes, but had more features.

Also, I will be spending some time with a new tool that SadiQ made for m.e.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Justin

  • *
  • Posts: 3815
My first guess is that you need to update some openfl.gl references to lime.graphics.opengl. Past that, if you share some errors, I might be able to help.

For Live Support: Join our discord channel and ping me @justin.

mdotedot

  • *
  • Posts: 1260
Thanks a lot Justin. That made a huge difference.

Here are the results:

Indeed lime.utils instead of openfl.utils solved the issue.
(import openfl.utils.UInt8Array into lime.utils.UInt8Array)

Confirmed:
  • Mac OSX
  • HTML5
  • Flash
  • iOS Simulator (iOS 10.2 iPhone 5s)


Windows never could complete (tried cppia as well) Linker took enormous amount of time. I killed it twice.

Android Error:
full-b9485/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/Scripthx.4058

plaf haxe extensions Purchases.hx (import openfl.utils.JNI)


I gave up on both Android and Windows for the time being.

I recon that I can figure out why windows is not working.
Does android work for anybody else?!?
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Justin

  • *
  • Posts: 3815
I fixed the android issue (another reference moved from openfl to lime) with b9486 this morning.

For Live Support: Join our discord channel and ping me @justin.

mdotedot

  • *
  • Posts: 1260
Hey Justin,

Confirmed the android publication. Thanks so much for fixing that pipe-line.

The problem with the Windows executable was that I used Visual Studio 2010 instead of 2015.

This previously worked for the 9480 build. For reference I had created a new game with just one actor in it using follow mouse + cannot leave scene behavior.



Visual Studio 2010 kept on LINKING

It didn't say much in the LogViewer :

[haxelib.exe] hxcpp.cpp

[haxelib.exe] - Precompile C:/Users/win7sten35/AppData/Roaming/Stencyl/stencylworks/.hxcpp_cache/haxe/pchad9bb66fa/hxcpp.pch

When looking at the task Manager it had a cl.exe that was piled up to 344 MB.

Once I made a Virtual Machine running Windows 8.1 and Visual Studio 2015 it worked just fine with a straight forward stencyl example file.

But...

ToolsetInterface.hx 98 ioErrorHandler: IOErrorEvent type=“ioError” …. text=“Connection failed”

Turn Firewall Off

Run As Administrator

Yeah :

It now also created a Windows Executable with the Away3D stuff in it.

So I'm back on track for the Away3D stuff. But I'm also going to work on the tool SadiQ made for m.e.


Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Justin

  • *
  • Posts: 3815
Did the firewall prevent the game from running at all? I put in some really simple safeguards in case the engine can't connect to the toolset, but I'll need to make sure they all actually work.

For Live Support: Join our discord channel and ping me @justin.

mdotedot

  • *
  • Posts: 1260
It did not create the executable.

But I tried to reproduce by turning Windows Firewall back on and also even removed the prefs file so that Stencyl complained that it needed Administrator privileges.

Now it still is able to generate the executable?!? The ioerror is still in the logs but it did actually run and even created the executable!!!

So I completely uninstalled Stencyl, Removed the %APPDATA%/Stencylworks stuff

Reinstalled Stencyl. Did not sign in and had only the option to run; as I would expect.

But it could run the 3D stuff without a problem so I don’t know what happened the first time….

So : all is good !!

Signed in and created executable : done!

Again: nice work on the tool and great support as always Justin!




Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

mdotedot

  • *
  • Posts: 1260
After some investigations how to incorporate the OBJ loading into Stencyl I once again modified the OBJParser to use Stencyl Game Attribute to get to a URL path where the OBJ file will be loaded.
When there are textures on PNG format the PNG file must be on the same path.
As well as the MTL file.

So when you want to test your OBJ files for use in Stencyl you can use this app:

OBJ Uploader + Viewer

You can click on the Viewer to get this:

You can rotate / tilt / pan using the mouse.

I included a Scale slider to make adjustments on the mesh to have it fit the screen when needed.

Have fun!
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/