I’ve added all of the files, so you’re able to check it out for yourself.
I made a topic earlier that is some what related to this, but I don’t think I explained it very well while trying to explain multiple problems I’m experiencing (and I’ve kinda found out something else).
The first topic was about how I couldn’t load a .3ds model.
Some new bug I’m assuming.
Along with that problem…
I got a .obj file to load, and I could apply a bitmapMaterial with it working properly.
When I tried to add a light to the material the models weren’t visible, and then…
The memory just keeps going up!
Take a look for yourself, it’s only 106 lines of code.
Either comment out
mesh.material=defaultMaterial;
at line 95, or
defaultMaterial.lights = [directionalLight];
at line 81.
I’m just going to use an older version of Away3D until some stuff is fixed I guess.
Here are some errors I get.
TypeError: Error #2007: Parameter data must be non-null.
at flash.display3D::VertexBuffer3D/uploadFromVector()
at away3d.core.base::SubGeometry/getVertexNormalBuffer()
at away3d.core.base::SubMesh/getVertexNormalBuffer()
at away3d.materials.passes::DefaultScreenPass/render()
at away3d.materials::MaterialBase/renderPass()
at away3d.core.render::DefaultRenderer/drawRenderables()
at away3d.core.render::DefaultRenderer/draw()
at away3d.core.render::RendererBase/executeRender()
at away3d.core.render::RendererBase/render()
at away3d.containers::View3D/render()
at levelViewer/update()
Error: Error #3608: Stream 2 is invalid.
at flash.display3D::Context3D/drawTriangles()
at away3d.materials.passes::MaterialPassBase/render()
at away3d.materials.passes::DefaultScreenPass/render()
at away3d.materials::MaterialBase/renderPass()
at away3d.core.render::DefaultRenderer/drawRenderables()
at away3d.core.render::DefaultRenderer/draw()
at away3d.core.render::RendererBase/executeRender()
at away3d.core.render::RendererBase/render()
at away3d.containers::View3D/render()
at levelViewer/update()
These only appear when I use a material with a light applied to it.
EDIT: Just tried it with Alternativa 8 and it worked perfectly. They’ve got some good parsers. XD