This is the code i added on the Basic_Shading example
planeMaterial = new TextureMaterial(Cast.bitmapTexture(resource.getBitmapData("FloorDiffuse")));
planeMaterial.specularMap = Cast.bitmapTexture(resource.getBitmapData("FloorSpecular"));
planeMaterial.normalMap = Cast.bitmapTexture(resource.getBitmapData("FloorNormals"));
planeMaterial.lightPicker = lightPicker;
planeMaterial.repeat = true;
planeMaterial.mipmap = false;
var proj = new TextureProjector(Cast.bitmapTexture(resource.getBitmapData("BeachBallSpecular")));
planeMaterial.addMethod(new ProjectiveTextureMethod(proj, BlendMode.ADD));
Is this related to renderToTexture issues? This time application throws an null object reference exception , instead of lack of display, here is the trace from XcodeProj (created with lime build ios)
Called from Away3DExample::initMaterials::Away3DExample.hx::155
Called from TextureProjector::new::libpacks/away3d/away3d-core-openfl/src/away3d/entities/TextureProjector.hx::43
Called from Object3D::set_rotationX::libpacks/away3d/away3d-core-openfl/src/away3d/core/base/Object3D.hx::256
Called from Object3D::invalidateRotation::libpacks/away3d/away3d-core-openfl/src/away3d/core/base/Object3D.hx::162
Called from ObjectContainer3D::invalidateTransform::libpacks/away3d/away3d-core-openfl/src/away3d/containers/ObjectContainer3D.hx::243
Called from ObjectContainer3D::notifySceneTransformChange::libpacks/away3d/away3d-core-openfl/src/away3d/containers/ObjectContainer3D.hx::185
Critical Error: Null Object Reference
(lldb)
I need to implement multiple bullethole-like decals (but they have skeletal animaiton), is there a way or suggestion to do the job if this issue is not in urgent-list ?
This is the code i added on the Basic_Shading example
Is this related to renderToTexture issues? This time application throws an null object reference exception , instead of lack of display, here is the trace from XcodeProj (created with lime build ios)
Called from Away3DExample::initMaterials::Away3DExample.hx::155 Called from TextureProjector::new::libpacks/away3d/away3d-core-openfl/src/away3d/entities/TextureProjector.hx::43 Called from Object3D::set_rotationX::libpacks/away3d/away3d-core-openfl/src/away3d/core/base/Object3D.hx::256 Called from Object3D::invalidateRotation::libpacks/away3d/away3d-core-openfl/src/away3d/core/base/Object3D.hx::162 Called from ObjectContainer3D::invalidateTransform::libpacks/away3d/away3d-core-openfl/src/away3d/containers/ObjectContainer3D.hx::243 Called from ObjectContainer3D::notifySceneTransformChange::libpacks/away3d/away3d-core-openfl/src/away3d/containers/ObjectContainer3D.hx::185 Critical Error: Null Object Reference (lldb)
I need to implement multiple bullethole-like decals (but they have skeletal animaiton), is there a way or suggestion to do the job if this issue is not in urgent-list ?