SceneJS.loadCollada not parsing positions/uv's as floats
Reported by lindsay.kay (at xeolabs) | April 19th, 2010 @ 09:42 AM | in V0.7.3
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)
{
}
ymin never makes it below zero even though positions have negative y-coordinates!
Solution is to use parseFloat to convert all coords and indices.
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) April 19th, 2010 @ 09:56 AM
- State changed from open to resolved
-
lindsay.kay (at xeolabs) April 19th, 2010 @ 12:19 PM
- State changed from resolved to open
Need to ensure that all numbers are parsed OK - faces, transforms, lights etc. - before closing this one.
-
lindsay.kay (at xeolabs) April 20th, 2010 @ 02:04 AM
- State changed from open to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.