Update: Please update the plugin - version 0.3
Updates in version 0.3:
-) Hopefully fixed the WebGL bug.
-) Changed actions: values for loading time and scaling/rotation- can get set - depending on the complexity of the object.
Sidenote: The object in the demo is very small - scale it do 100 (- realsize is scalefactor 1 -) to see it.
Woohoo - works even now on my old android 1.5 device (5 FPS) ( - the canvas is on the wrong position but for now it's ok ).
Demo + Plugin version 0.3
Update in version 0.2: Objects are now on their own canvases in C2 - seems it worked only with WebGL disabled.
Demo + Plugin version 0.2
(The button "reload" and the first loading doesn't work in the webdemo. It works locally - perhaps i've given to less loading/rendering time. Maybe the other buttons work fine in the webdemo.)
The plugin "Object 3d" can load and render an obj-file into the canvas of Construct2 and can do some simple transformations (rotate, move, scale) with that object. The plugin doesn't work with the "Preview".
How to load a obj-file:
specify the path at the properties:
my obj-file is located next to my capx in a folder "obj":
After exporting you should get a file c2Jsc3d.js - this is for the loading - please don't delete it.
How you can create obj-Files: Blender, Wings3D, Art of Illusion,..
1) Version 0.1 can load and render only one obj-file.
2) The plugin is in alpha at the moment. However it works sometimes.
@Development: >=0.2: The rendering is done in an offscreen-canvas because I suppose the c2-runtime doesn't like a direct rendering-repaint-thread. The "estimated time" is the time that this rendering/repainting thread should take until it gets killed. If anybody knows a better way - let me know.
All suggestions are welcome,