THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/11/2010 at 10:38, xxxxxxxx wrote:
Hi,
Don't know if this is the best place to post this on the forum, but here goes:
I've finished writing a script that exports Polygon meshes to mr.doob's three.js engine(http://github.com/mrdoob/three.js)
Three.js comes with 3 renderes: CanvasRenderer, SVG Renderer and WebGL renderer.
Obviously, the WebGL is the fastest, but not all browsers support WebGL at the moment.
UV Texturing works well with WebGL Renderer, but it's a bit slow with the Canvas renderer,
which is supported for most browsers. As an alternative for low poly models that work well
with colours as opposed to complicated textures, there's an option.
You could assign Materials to Selection tags and the colors will get exported.
You grab the script from my slightly outdate github branch(https://github.com/orgicus/three.js). There are more details on this on the disturb media blog(http://disturbmedia.com/blog/post/exploring-threejs-part-1-exporting-models-from-cinema-4d-to-javascript/ ) and the wiki(http://www.disturbmedia.com/wiki/index.php/C4D_to_three_js.html)
There are few Examples too (http://www.disturbmedia.com/wiki/index.php/C4D_to_three_js.html#Examples)
DeltaInc Designs:
Big thanks to Sebastian for explaining how to work with Materials and Selections (http://www.py4d.com/forum/?wpforumaction=viewtopic&t=223.0)