Update: Please update the plugin - version <font color="red">0.3</font>
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.
<font size="1">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 <img src="smileys/smiley2.gif" border="0" align="middle"> ). </font>
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".
<img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadObj3d/actions.png" border="0">
<img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadObj3d/properties.png" border="0">
How to load a obj-file:
specify the path at the properties:
<img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadObj3d/pathObj.png" border="0">
my obj-file is located next to my capx in a folder "obj":
<img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadObj3d/pathObj2.png" border="0">
After exporting you should get a file c2Jsc3d.js - this is for the loading - please don't delete it.
<img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_loadObj3d/path3.png" border="0">
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, <img src="smileys/smiley2.gif" border="0" align="middle">