FogMethod gives error: The native shader compilation failed.

Software: Away3D 4.x

zygn, Newbie
Posted: 18 July 2012 05:05 AM   Total Posts: 2

Hello, I am upgrading a client project from Away3D 4.0 Beta to Away3D 4.0 Gold and getting the following error when adding the standard FogMethod to a TextureMaterial:

[Fault] exception, information=Error: Error #3613: The native shader compilation failed.

If my setup is correct this error should be easy to replicate by adding the FogMethod to any material. Other Methods do not have this problem, (such as the ColorTransformMethod) Does anyone have any idea on why this might be?

Thanks, Matt

   

Richard Olsson, Administrator
Posted: 18 July 2012 09:10 AM   Total Posts: 1192   [ # 1 ]

Hi,

Can you provide the full call stack please?

Was the fog method in your case working before you upgraded to 4.0 gold?

   

zygn, Newbie
Posted: 23 July 2012 01:57 AM   Total Posts: 2   [ # 2 ]

Hi, yeah the fog method was working before hand. Here is the stack trace

ErrorError #3613: The native shader compilation failed.
 
at flash.display3D::Program3D/upload()
 
at away3d.core.managers::AGALProgram3DCache/setProgram3D()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\managers\AGALProgram3DCache.as:98]
 at away3d
.materials.passes::MaterialPassBase/updateProgram()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\materials\passes\MaterialPassBase.as:366]
 at away3d
.materials.passes::DefaultScreenPass/updateProgram()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\materials\passes\DefaultScreenPass.as:659]
 at away3d
.materials.passes::MaterialPassBase/activate()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\materials\passes\MaterialPassBase.as:261]
 at away3d
.materials.passes::DefaultScreenPass/activate()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\materials\passes\DefaultScreenPass.as:515]
 at away3d
.materials::MaterialBase/activatePass()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\materials\MaterialBase.as:350]
 at away3d
.core.render::DefaultRenderer/drawRenderables()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\render\DefaultRenderer.as:153]
 at away3d
.core.render::DefaultRenderer/draw()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\render\DefaultRenderer.as:102]
 at away3d
.core.render::RendererBase/executeRender()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\render\RendererBase.as:276]
 at away3d
.core.render::DefaultRenderer/executeRender()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\render\DefaultRenderer.as:62]
 at away3d
.core.render::RendererBase/render()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\core\render\RendererBase.as:240]
 at away3d
.containers::View3D/render()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\lib_3rd_party\away3d\containers\View3D.as:611]
 at nzta
.speedracer.game.view.game3d::Game3DView/update()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\src\nzta\speedracer\game\view\game3d\Game3DView.as:184]
 at nzta
.speedracer.game.view::GameView/update()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\src\nzta\speedracer\game\view\GameView.as:52]
 at nzta
.speedracer.game::GameMain/onEnterFrame()[C:\dev\workspace\NZTA_SpeedRacer_awayGold\build\flash\src\nzta\speedracer\game\GameMain.as:150] 

The following code causes the error in Away3D 4.0 Gold:

var testMaterial:TextureMaterial = new TextureMaterial(new BitmapTexture(new BitmapData(1616false0xff0000)));
testMaterial.addMethod(new FogMethod(0,500));
var 
testCube:Mesh = new Mesh(new CubeGeometry(111), testMaterial);
scene.addChild(testCube); 
   

Richard Olsson, Administrator
Posted: 23 July 2012 07:42 AM   Total Posts: 1192   [ # 3 ]

This definitely does sound like a bug. Do you mind filing it at http://github.com/away3d/away3d-core-fp11 ? Thanks!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X