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.

SceneJS.loadCollada not parsing positions/uv's as floats

#25

COLLADA parsing seems to have been falling back on some kind of JavaScript implicit string->float conversion while parsing positions, UV coordinates and indices.

Symptoms: when attempting to create bounding volumes around geometry, ie. something like this:


xmin = -999999; for (var i = 0; i < positions.length - 2; i+=3) {

{mkd-extraction-d5a07919af0198908f40140c0809e279}

}

ymin never makes it below zero even though positions have negative y-coordinates!

Solution is to use parseFloat to convert all coords and indices.

Reported by lindsay.kay (at xeolabs) · April 19th, 2010 @ 09:42 AM

State: resolved
Milestone: V0.7.3

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from open to resolved

    April 19th, 2010 @ 09:56 AM

  2. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from resolved to open

    Need to ensure that all numbers are parsed OK - faces, transforms, lights etc. - before closing this one.

    April 19th, 2010 @ 12:19 PM

  3. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from open to resolved

    April 20th, 2010 @ 02:04 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.