StaticLightPicker. I need to add many DirLights (I want 6)

Software: Away3D 4.x

Avatar
Baks, Newbie
Posted: 21 February 2014 08:07 PM   Total Posts: 22

Hi, All

In away3d 4.0.9 Gold I used 5 DirLights in StaticLightPicker

updated to 4.1.6. and it seems i can use just 2 DirLights ...

I received error when added many DirLights
Please help. Maybe this is not an error ..
——————-


Error: Error #3629: AGAL validation failed: Too many tokens (201) for fragment program.
at flash.display3D::Program3D/upload()
at away3d.core.managers::AGALProgram3DCache/setProgram3D()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcoremanagersAGALProgram3DCache.as:101]
at away3d.materials.passes::MaterialPassBase/updateProgram()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialspassesMaterialPassBase.as:492]
at away3d.materials.passes::CompiledPass/updateProgram()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialspassesCompiledPass.as:154]
at away3d.materials.passes::MaterialPassBase/activate()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialspassesMaterialPassBase.as:386]
at away3d.materials.passes::CompiledPass/activate()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialspassesCompiledPass.as:576]
at away3d.materials.passes::SuperShaderPass/activate()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialspassesSuperShaderPass.as:190]
at away3d.materials::MaterialBase/activatePass()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dmaterialsMaterialBase.as:408]
at away3d.core.render::DefaultRenderer/drawRenderables()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcorerenderDefaultRenderer.as:189]
at away3d.core.render::DefaultRenderer/draw()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcorerenderDefaultRenderer.as:113]
at away3d.core.render::RendererBase/executeRender()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcorerenderRendererBase.as:281]
at away3d.core.render::DefaultRenderer/executeRender()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcorerenderDefaultRenderer.as:66]
at away3d.core.render::RendererBase/render()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcorerenderRendererBase.as:245]
at away3d.containers::View3D/render()[E:WorkspaceFDevelopDEVlibaway3d-core-fp11-mastersrcaway3dcontainersView3D.as:689]
at net.DE.controllers::FloorController/redraw()[E:WorkspaceFDevelopDEVsrcnetDEcontrollersFloorController.as:180]

   

Avatar
Baks, Newbie
Posted: 25 February 2014 10:23 AM   Total Posts: 22   [ # 1 ]

i see that this is very hard question for away3d community.
nobody don’t want just to say “yes. it is possible” or “no. this is away3d limitation”

really last several months i asked several questions. and I can’t receive answers..
of course this is my problem that i have no solution.

but i see that away3d not so popular already. maybe this is why i just wasting time for questions here

   

John Brookes, Moderator
Posted: 25 February 2014 04:00 PM   Total Posts: 732   [ # 2 ]

Instead of moaning. try helping yourself a little.
Create a little test and add 6 lights to a light picker and add that light picker to a material.
Because here is the thing. Ive just done that and I know the answer.

Did that work?
Yes
Answered your own question.

No?
So. Same answer as Ive posted to you before.

To get any help. You would need to post
a SIMPLE, CODE and ASSETS example project that shows the issue.
Then some nice (UNPAID) people may run the test and help. Or spot your error.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X