Hello everybody!
I got a strange situation here.
I’m using Away3d V.4.
I’m loading two models with extension “.obj”: one is lowpoly and other one is highpoly. The problem is when I try to load the highpoly with a material and I attach light to this material.
This is the error being pointed:
TypeError: Error #2007: O parâmetro data não deve ser nulo.
at flash.display3D::VertexBuffer3D/uploadFromVector()
at away3d.core.base::SubGeometry/getVertexNormalBuffer()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorebaseSubGeometry.as:224]
at away3d.core.base::SubMesh/getVertexNormalBuffer()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorebaseSubMesh.as:199]
at away3d.materials.passes::DefaultScreenPass/render()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dmaterialspassesDefaultScreenPass.as:411]
at away3d.materials::MaterialBase/renderPass()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dmaterialsMaterialBase.as:348]
at away3d.core.render::DefaultRenderer/drawRenderables()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorerenderDefaultRenderer.as:104]
at away3d.core.render::DefaultRenderer/draw()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorerenderDefaultRenderer.as:48]
at away3d.core.render::RendererBase/executeRender()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorerenderRendererBase.as:253]
at away3d.core.render::RendererBase/render()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcorerenderRendererBase.as:226]
at away3d.containers::View3D/render()[C:ArcadeVilleFrameworksAway3D_FP11srcaway3dcontainersView3D.as:375]
at Teste_Trigger/onEnterFrame()[C:ArcadeVillebranchesHelderProjectsComet_ShotsrcTeste_Trigger.as:435]
I don’t know why it’s happening. Anyone got a idea?