Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Update WebGL Exporter to support current SceneJS version

#68

WebGL Exporter exports Geometry nodes for SceneJS V0.1.0 alpha, so it no longer works with current version since some of the Geometry config properties have changed.

Solution

Fix this file:

http://code.google.com/p/blender-webgl-exporter/source/browse/trunk...

1. Flatten the output arrays

Eg. change statements like this:

 if(exp_normals == 1):
                s += "normals : ["
                for v in mesh.verts: 
                        s += "[%.6f, %.6f, %.6f]," % (v.no.x, v.no.y, v.no.z)

to this:

 if(exp_normals == 1):
                s += "normals : ["
                for v in mesh.verts: 
                        s += "%.6f, %.6f, %.6f," % (v.no.x, v.no.y, v.no.z)

2. Change "vertices" to "positions"

3. Change "texCoords" to "uv"

Reported by lindsay.kay (at xeolabs) · May 12th, 2010 @ 06:40 AM

State: resolved
Milestone: none

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from new to resolved
    • Milestone order changed from 0 to 0

    Done by Rehno, ta muchly

    October 23rd, 2010 @ 02:26 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.