frykauf / o3d

Automatically exported from code.google.com/p/o3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read property 'length' of undefined

GoogleCodeExporter opened this issue · comments

I converted a .dae with the converter tool --no-archive and --base-path. When 
using the helloworld.html to load it however, i get an error: "could not load 
..../scene.json TypeError: Cannot read property 'length' of undefined.

What is undefined is the uri "index-buffers.bin" in archiveInfo.files, causing 
o3d.Buffer.prototype.set() getting undefined values (called by var rawData = 
deserializer.archiveInfo.getFileByURI(uri); in 
o3djs.serialization.Deserializer().

I've been trying to debug, but I don't see any place where it would be added, 
since "index-buffers.bin" isn't in the scene.json nor is it somewhere hardcoded 
in the scripts.

Original issue reported on code.google.com by Vlie...@gmail.com on 3 Apr 2011 at 2:35