[Papervision3D] Bug in ShadedMaterial or Bug in me :D (With collada)
GerTzeN -
gertzen at hotmail.com
Wed Dec 12 12:33:39 PST 2007
Hey people,
first of all, PV3D gave me the chance to do much better develpments and much better knowledge of as3, so Thanks PV3D crew. Iv'been playing with ShadedMaterial and i've found a small issue (i think).I load a collada model, then find every triangle whose material's name is "body", then I change Triangle's material (face.material=myShadedMaterial) but when i tryied to render, throwed :TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo. at org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() at org.papervision3d.core.render.command::RenderTriangle/render() at org.papervision3d.render::BasicRenderEngine/org.papervision3d.render:BasicRenderEngine::doRender() at org.papervision3d.render::BasicRenderEngine/renderScene()So, after a while of looking at shadedMaterial Class, i''ve found that i needed to execute:myShadedMaterial.registerObject(b)After that, i was wonderfullIs this normal? or there's an issue?By the way, i've done an amusing job width 2.0 version. You deserve vacations in haway :D
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071212/7a07d072/attachment.html
More information about the Papervision3D
mailing list