[Papervision3D] ShadedMaterial error
col.cathcart at gmail.com
Sat May 10 10:24:23 PDT 2008
is it possible that problems are arising because the materials are being
added BEFORE the geometry has loaded?
> line 57 of materials/shaders/ShadedMaterial.as is giving me a "cannot
> access property/method of null object reference" error.
> from some trace statements, it seems like sod.shaderRenderer is null. sod
> is declared a few lines above but when I put a trace the constructor of
> ShaderRenderer.as, it's never called.
> any suggestions?
> the code I'm using is:
> newmaterial = new ShadedMaterial(bitmap,shader);
> rootNode.materials.addMaterial... etc
> I haven't seen anyone post the source for an example model loaded with a
> shader (not a simple cube primitive). does anyone have code that works?
View this message in context: http://www.nabble.com/ShadedMaterial-error-tp17165364p17165568.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D