|
View:
New views
18 Messages
—
Rating Filter:
Alert me
|
|
|
Problems applying MovieMaterial + Shader combos to .daeHi all,
I'm running into puzzling problems when loading a .dae, and trying to replace its single placeholder material with my own MovieMaterial + Shader combination. The basic setup looks something like this: -------- myMatList = new MaterialsList(); myMat = new MovieMaterial (texture, false, false); cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); shadedMat = new ShadedMaterial (myMat, cellShader); -------- If I do this: ----- myMatList.addMaterial(myMat, "blinn1SG"); object = new Collada ("et.dae", myMatList); ----- ..., everything works fine, and the .dae's material is replaced by myMat, which of course points to a MovieClip in the library. However, if I try to do this to apply the MovieMaterial + Shader combo to the object: ----- myMatList.addMaterial(shadedMat, "blinn1SG"); object = new Collada ("et.dae", myMatList); ----- ...the the renderer.renderScene (scene3d, camera, viewport); line throws the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() at org.papervision3d.core.render.command::RenderTriangle/render() at org.papervision3d.render::BasicRenderEngine/doRender() at org.papervision3d.render::BasicRenderEngine/renderScene() I'm usually pretty good at tracking down and fixing issues, but I'm clueless at this point. I tried to experiment with the .dae export settings, tried .dae objects of different complexity, tried different MovieMaterial + shader combinations, tried to apply straight FlatShadeMaterials / CellMaterials instead of combos, all to no avail. To make matters worse, if I use the DAE parser instead of the Collada one, the object does not show up at all (not even with only the MovieMaterial applied). But this is a separate issue for later... :) Thanks in advance for any insight into this. -E- |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeI continued experimenting with this... tried it with a BitmapMaterial + Shader combo instead of using a MovieMaterial. No luck, the same error remains: TypeError: Error #1009: Cannot access a property or method of a null object reference. 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() This is highly annoying. I don't know if I'm missing something here, but I'm wondering if anyone has successfully managed to replace a material on a .dae with a material + shader combo... any ideas would be greatly appreciated.
|
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeHappy New Year everyone,
Well, I think I figured this one out, and I thought I'd share it for the benefit of future generations. :) I had complete success with using something like this: ------ objectName.replaceMaterialByName (newShadedMaterialName, "originalMaterialName"); ------ or in case of my particular example: ------ object.replaceMaterialByName (shadedMat, "blinn1SG"); ------ This works beautifully, even multiple material+shader combos or shaded materials can be applied per loaded .dae object. That's about it. Enjoy.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeHey E,
Are you using the Great White branch? Take a look at this, it should help you do exactly what you need: http://www.rockonflash.com/blog/?p=92 |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeI have the exact same problem, but it doesn't get solved this way :(.
If I build the Sphere with shaders, it works just fine, but if I load a .dae object by daeFile = new DAE(); daeFile.load("collada.DAE",myMatList); where myMatList has a shaded material defined exactly as the Sphere one. Neither of the approaches seems to work, the daeFile.replaceMaterialByName and the myMatList.addMaterial ones. I get the same #1009 error and the part doesn't display. If I use a movieAssetMaterial instead... no problem, all works fine. Any clues? Thanks.
|
|
|
Re: Problems applying MovieMaterial + Shader combos to .daecan it be related to the same issue as on the cube with shaders?
could you try to call .registerObject( daeFile ) on all your materials in the materials list? On Jan 15, 2008 2:29 PM, vrabete <vrabete@...> wrote: > > I have the exact same problem, but it doesn't get solved this way :(. > If I build the Sphere with shaders, it works just fine, but if I load a .dae > object by > > daeFile = new DAE(); > daeFile.load("collada.DAE",myMatList); > > where myMatList has a shaded material defined exactly as the Sphere one. > Neither of the approaches seems to work, the daeFile.replaceMaterialByName > and the myMatList.addMaterial ones. I get the same #1009 error and the part > doesn't display. > > If I use a movieAssetMaterial instead... no problem, all works fine. > > Any clues? > Thanks. > > > EToth wrote: > > > > Happy New Year everyone, > > > > Well, I think I figured this one out, and I thought I'd share it for the > > benefit of future generations. :) > > > > I had complete success with using something like this: > > > > ------ > > objectName.replaceMaterialByName (newShadedMaterialName, > > "originalMaterialName"); > > ------ > > > > or in case of my particular example: > > > > ------ > > object.replaceMaterialByName (shadedMat, "blinn1SG"); > > ------ > > > > This works beautifully, even multiple material+shader combos or shaded > > materials can be applied per loaded .dae object. > > > > That's about it. > > Enjoy. > > > > > > > > > > EToth wrote: > >> > >> > >> I continued experimenting with this... tried it with a BitmapMaterial + > >> Shader combo instead of using a MovieMaterial. No luck, the same error > >> remains: > >> > >> > >> TypeError: Error #1009: Cannot access a property or method of a null > >> object reference. > >> 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() > >> > >> > >> This is highly annoying. I don't know if I'm missing something here, but > >> I'm wondering if anyone has successfully managed to replace a material on > >> a .dae with a material + shader combo... any ideas would be greatly > >> appreciated. > >> > >> > >> > >> > >> > >> EToth wrote: > >>> > >>> Hi all, > >>> > >>> I'm running into puzzling problems when loading a .dae, and trying to > >>> replace its single placeholder material with my own MovieMaterial + > >>> Shader combination. > >>> > >>> The basic setup looks something like this: > >>> > >>> -------- > >>> myMatList = new MaterialsList(); > >>> myMat = new MovieMaterial (texture, false, false); > >>> cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); > >>> shadedMat = new ShadedMaterial (myMat, cellShader); > >>> -------- > >>> > >>> > >>> If I do this: > >>> ----- > >>> myMatList.addMaterial(myMat, "blinn1SG"); > >>> object = new Collada ("et.dae", myMatList); > >>> ----- > >>> ..., everything works fine, and the .dae's material is replaced by > >>> myMat, which of course points to a MovieClip in the library. > >>> > >>> > >>> However, if I try to do this to apply the MovieMaterial + Shader combo > >>> to the object: > >>> ----- > >>> myMatList.addMaterial(shadedMat, "blinn1SG"); > >>> object = new Collada ("et.dae", myMatList); > >>> ----- > >>> ...the the renderer.renderScene (scene3d, camera, viewport); line throws > >>> the following error: > >>> > >>> TypeError: Error #1009: Cannot access a property or method of a null > >>> object reference. > >>> at org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() > >>> at org.papervision3d.core.render.command::RenderTriangle/render() > >>> at org.papervision3d.render::BasicRenderEngine/doRender() > >>> at org.papervision3d.render::BasicRenderEngine/renderScene() > >>> > >>> I'm usually pretty good at tracking down and fixing issues, but I'm > >>> clueless at this point. I tried to experiment with the .dae export > >>> settings, tried .dae objects of different complexity, tried different > >>> MovieMaterial + shader combinations, tried to apply straight > >>> FlatShadeMaterials / CellMaterials instead of combos, all to no avail. > >>> To make matters worse, if I use the DAE parser instead of the Collada > >>> one, the object does not show up at all (not even with only the > >>> MovieMaterial applied). But this is a separate issue for later... :) > >>> > >>> Thanks in advance for any insight into this. > >>> > >>> -E- > >>> > >>> > >> > >> > > =)=)=)=)=)=)=)=)=)=)=)=)=)=) > > > > -- > View this message in context: http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14806630.html > Sent from the Papervision3D mailing list archive at Nabble.com. > > > _______________________________________________ > Papervision3D mailing list > Papervision3D@... > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeit doesn't seem to work... thanks for the response though...
these are the files, please see the lines commented with "vrabete" at the end, they're the troublemakers... any hint is highly appreciated... thank you ;) dae.zip
|
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeThe reason it doesnt work is that the DAE has child objects that will
use the ShadedMaterials, some of the child objects are the ones that should be registered with the material. A complete hack: not sure if this is a bug in the ShadedMaterial behaviour or what, but in your ShadedMaterial.as file (papervision3d/materials/shaders/) in the drawTriangle function. After this existing line: var sod:ShaderObjectData = shaderObjectData[face3D.instance]; add this line: if( sod == null ) { this.registerObject( face3D.instance ); sod = shaderObjectData[face3D.instance]; } your DAE with shadedmaterial then renders for me here. On Jan 15, 2008 5:57 PM, vrabete <vrabete@...> wrote: > > it doesn't seem to work... thanks for the response though... > these are the files, please see the lines commented with "vrabete" at the > end, they're the troublemakers... > any hint is highly appreciated... > thank you ;) > http://www.nabble.com/file/p14841705/dae.zip dae.zip > > > > Kim Daniel Arthur wrote: > > > > can it be related to the same issue as on the cube with shaders? > > > > could you try to call .registerObject( daeFile ) on all your materials > > in the materials list? > > > > > > > > On Jan 15, 2008 2:29 PM, vrabete <vrabete@...> wrote: > >> > >> I have the exact same problem, but it doesn't get solved this way :(. > >> If I build the Sphere with shaders, it works just fine, but if I load a > >> .dae > >> object by > >> > >> daeFile = new DAE(); > >> daeFile.load("collada.DAE",myMatList); > >> > >> where myMatList has a shaded material defined exactly as the Sphere one. > >> Neither of the approaches seems to work, the > >> daeFile.replaceMaterialByName > >> and the myMatList.addMaterial ones. I get the same #1009 error and the > >> part > >> doesn't display. > >> > >> If I use a movieAssetMaterial instead... no problem, all works fine. > >> > >> Any clues? > >> Thanks. > >> > >> > >> EToth wrote: > >> > > >> > Happy New Year everyone, > >> > > >> > Well, I think I figured this one out, and I thought I'd share it for > >> the > >> > benefit of future generations. :) > >> > > >> > I had complete success with using something like this: > >> > > >> > ------ > >> > objectName.replaceMaterialByName (newShadedMaterialName, > >> > "originalMaterialName"); > >> > ------ > >> > > >> > or in case of my particular example: > >> > > >> > ------ > >> > object.replaceMaterialByName (shadedMat, "blinn1SG"); > >> > ------ > >> > > >> > This works beautifully, even multiple material+shader combos or shaded > >> > materials can be applied per loaded .dae object. > >> > > >> > That's about it. > >> > Enjoy. > >> > > >> > > >> > > >> > > >> > EToth wrote: > >> >> > >> >> > >> >> I continued experimenting with this... tried it with a BitmapMaterial > >> + > >> >> Shader combo instead of using a MovieMaterial. No luck, the same error > >> >> remains: > >> >> > >> >> > >> >> TypeError: Error #1009: Cannot access a property or method of a null > >> >> object reference. > >> >> 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() > >> >> > >> >> > >> >> This is highly annoying. I don't know if I'm missing something here, > >> but > >> >> I'm wondering if anyone has successfully managed to replace a material > >> on > >> >> a .dae with a material + shader combo... any ideas would be greatly > >> >> appreciated. > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> EToth wrote: > >> >>> > >> >>> Hi all, > >> >>> > >> >>> I'm running into puzzling problems when loading a .dae, and trying to > >> >>> replace its single placeholder material with my own MovieMaterial + > >> >>> Shader combination. > >> >>> > >> >>> The basic setup looks something like this: > >> >>> > >> >>> -------- > >> >>> myMatList = new MaterialsList(); > >> >>> myMat = new MovieMaterial (texture, false, false); > >> >>> cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); > >> >>> shadedMat = new ShadedMaterial (myMat, cellShader); > >> >>> -------- > >> >>> > >> >>> > >> >>> If I do this: > >> >>> ----- > >> >>> myMatList.addMaterial(myMat, "blinn1SG"); > >> >>> object = new Collada ("et.dae", myMatList); > >> >>> ----- > >> >>> ..., everything works fine, and the .dae's material is replaced by > >> >>> myMat, which of course points to a MovieClip in the library. > >> >>> > >> >>> > >> >>> However, if I try to do this to apply the MovieMaterial + Shader > >> combo > >> >>> to the object: > >> >>> ----- > >> >>> myMatList.addMaterial(shadedMat, "blinn1SG"); > >> >>> object = new Collada ("et.dae", myMatList); > >> >>> ----- > >> >>> ...the the renderer.renderScene (scene3d, camera, viewport); line > >> throws > >> >>> the following error: > >> >>> > >> >>> TypeError: Error #1009: Cannot access a property or method of a null > >> >>> object reference. > >> >>> at > >> org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() > >> >>> at org.papervision3d.core.render.command::RenderTriangle/render() > >> >>> at org.papervision3d.render::BasicRenderEngine/doRender() > >> >>> at org.papervision3d.render::BasicRenderEngine/renderScene() > >> >>> > >> >>> I'm usually pretty good at tracking down and fixing issues, but I'm > >> >>> clueless at this point. I tried to experiment with the .dae export > >> >>> settings, tried .dae objects of different complexity, tried different > >> >>> MovieMaterial + shader combinations, tried to apply straight > >> >>> FlatShadeMaterials / CellMaterials instead of combos, all to no > >> avail. > >> >>> To make matters worse, if I use the DAE parser instead of the Collada > >> >>> one, the object does not show up at all (not even with only the > >> >>> MovieMaterial applied). But this is a separate issue for later... :) > >> >>> > >> >>> Thanks in advance for any insight into this. > >> >>> > >> >>> -E- > >> >>> > >> >>> > >> >> > >> >> > >> > =)=)=)=)=)=)=)=)=)=)=)=)=)=) > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14806630.html > >> Sent from the Papervision3D mailing list archive at Nabble.com. > >> > >> > >> _______________________________________________ > >> Papervision3D mailing list > >> Papervision3D@... > >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org > >> > > > > _______________________________________________ > > Papervision3D mailing list > > Papervision3D@... > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > > > > -- > View this message in context: http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14841705.html > > Sent from the Papervision3D mailing list archive at Nabble.com. > > > _______________________________________________ > Papervision3D mailing list > Papervision3D@... > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeI tryed to compile your .fla, and it says
1172: Definition org.papervision3d.view:Viewport3D could not be found. Then, i searched my repository and the view.Viewport3d file is not there. the view folder doesn't even exists. Same thing to ADE and shaders variables. Where can I get those? thanks On Jan 15, 2008 2:15 PM, Kim Daniel Arthur <kim@...> wrote: The reason it doesnt work is that the DAE has child objects that will _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeDo you have the latest Papervision 2.0 - Great White checked out?
http://pv3d.org/2007/12/12/1-downloading-papervision3d-20-alpha-great-white/ On Jan 15, 2008 6:32 PM, Martin Fabichak <mfabichak@...> wrote: > I tryed to compile your .fla, and it says > 1172: Definition org.papervision3d.view:Viewport3D could not be found. > > Then, i searched my repository and the view.Viewport3d file is not there. > the view folder doesn't even exists. > > Same thing to ADE and shaders variables. > > Where can I get those? > > thanks > > > > > > On Jan 15, 2008 2:15 PM, Kim Daniel Arthur < kim@...> wrote: > > The reason it doesnt work is that the DAE has child objects that will > > use the ShadedMaterials, some of the child objects are the ones that > > should be registered with the material. > > > > A complete hack: not sure if this is a bug in the ShadedMaterial > > behaviour or what, but in your ShadedMaterial.as file > > (papervision3d/materials/shaders/) in the drawTriangle function. > > > > After this existing line: > > var sod:ShaderObjectData = shaderObjectData[face3D.instance]; > > > > add this line: > > if( sod == null ) > > { > > this.registerObject( face3D.instance ); > > sod = shaderObjectData[face3D.instance]; > > } > > > > your DAE with shadedmaterial then renders for me here. > > > > > > > > > > On Jan 15, 2008 5:57 PM, vrabete < vrabete@...> wrote: > > > > > > it doesn't seem to work... thanks for the response though... > > > these are the files, please see the lines commented with "vrabete" at > the > > > end, they're the troublemakers... > > > any hint is highly appreciated... > > > thank you ;) > > > http://www.nabble.com/file/p14841705/dae.zip dae.zip > > > > > > > > > > > > Kim Daniel Arthur wrote: > > > > > > > > can it be related to the same issue as on the cube with shaders? > > > > > > > > could you try to call .registerObject( daeFile ) on all your materials > > > > in the materials list? > > > > > > > > > > > > > > > > On Jan 15, 2008 2:29 PM, vrabete <vrabete@...> wrote: > > > >> > > > >> I have the exact same problem, but it doesn't get solved this way :(. > > > >> If I build the Sphere with shaders, it works just fine, but if I load > a > > > >> .dae > > > >> object by > > > >> > > > >> daeFile = new DAE(); > > > >> daeFile.load ("collada.DAE",myMatList); > > > >> > > > >> where myMatList has a shaded material defined exactly as the Sphere > one. > > > >> Neither of the approaches seems to work, the > > > >> daeFile.replaceMaterialByName > > > >> and the myMatList.addMaterial ones. I get the same #1009 error and > the > > > >> part > > > >> doesn't display. > > > >> > > > >> If I use a movieAssetMaterial instead... no problem, all works fine. > > > >> > > > >> Any clues? > > > >> Thanks. > > > >> > > > >> > > > >> EToth wrote: > > > >> > > > > >> > Happy New Year everyone, > > > >> > > > > >> > Well, I think I figured this one out, and I thought I'd share it > for > > > >> the > > > >> > benefit of future generations. :) > > > >> > > > > >> > I had complete success with using something like this: > > > >> > > > > >> > ------ > > > >> > objectName.replaceMaterialByName (newShadedMaterialName, > > > >> > "originalMaterialName"); > > > >> > ------ > > > >> > > > > >> > or in case of my particular example: > > > >> > > > > >> > ------ > > > >> > object.replaceMaterialByName (shadedMat, "blinn1SG"); > > > >> > ------ > > > >> > > > > >> > This works beautifully, even multiple material+shader combos or > shaded > > > >> > materials can be applied per loaded .dae object. > > > >> > > > > >> > That's about it. > > > >> > Enjoy. > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > EToth wrote: > > > >> >> > > > >> >> > > > >> >> I continued experimenting with this... tried it with a > BitmapMaterial > > > >> + > > > >> >> Shader combo instead of using a MovieMaterial. No luck, the same > error > > > >> >> remains: > > > >> >> > > > >> >> > > > >> >> TypeError: Error #1009: Cannot access a property or method of a > null > > > >> >> object reference. > > > >> >> 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 () > > > >> >> > > > >> >> > > > >> >> This is highly annoying. I don't know if I'm missing something > here, > > > >> but > > > >> >> I'm wondering if anyone has successfully managed to replace a > material > > > >> on > > > >> >> a .dae with a material + shader combo... any ideas would be > greatly > > > >> >> appreciated. > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> EToth wrote: > > > >> >>> > > > >> >>> Hi all, > > > >> >>> > > > >> >>> I'm running into puzzling problems when loading a .dae, and > trying to > > > >> >>> replace its single placeholder material with my own MovieMaterial > + > > > >> >>> Shader combination. > > > >> >>> > > > >> >>> The basic setup looks something like this: > > > >> >>> > > > >> >>> -------- > > > >> >>> myMatList = new MaterialsList(); > > > >> >>> myMat = new MovieMaterial (texture, false, false); > > > >> >>> cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); > > > >> >>> shadedMat = new ShadedMaterial (myMat, cellShader); > > > >> >>> -------- > > > >> >>> > > > >> >>> > > > >> >>> If I do this: > > > >> >>> ----- > > > >> >>> myMatList.addMaterial(myMat, "blinn1SG"); > > > >> >>> object = new Collada ("et.dae", myMatList); > > > >> >>> ----- > > > >> >>> ..., everything works fine, and the .dae's material is replaced > by > > > >> >>> myMat, which of course points to a MovieClip in the library. > > > >> >>> > > > >> >>> > > > >> >>> However, if I try to do this to apply the MovieMaterial + Shader > > > >> combo > > > >> >>> to the object: > > > >> >>> ----- > > > >> >>> myMatList.addMaterial(shadedMat, "blinn1SG"); > > > >> >>> object = new Collada ("et.dae", myMatList); > > > >> >>> ----- > > > >> >>> ...the the renderer.renderScene (scene3d, camera, viewport); line > > > >> throws > > > >> >>> the following error: > > > >> >>> > > > >> >>> TypeError: Error #1009: Cannot access a property or method of a > null > > > >> >>> object reference. > > > >> >>> at > > > >> org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() > > > >> >>> at > org.papervision3d.core.render.command::RenderTriangle/render () > > > >> >>> at org.papervision3d.render::BasicRenderEngine/doRender() > > > >> >>> at org.papervision3d.render::BasicRenderEngine/renderScene() > > > >> >>> > > > >> >>> I'm usually pretty good at tracking down and fixing issues, but > I'm > > > >> >>> clueless at this point. I tried to experiment with the .dae > export > > > >> >>> settings, tried .dae objects of different complexity, tried > different > > > >> >>> MovieMaterial + shader combinations, tried to apply straight > > > >> >>> FlatShadeMaterials / CellMaterials instead of combos, all to no > > > >> avail. > > > >> >>> To make matters worse, if I use the DAE parser instead of the > Collada > > > >> >>> one, the object does not show up at all (not even with only the > > > >> >>> MovieMaterial applied). But this is a separate issue for later... > :) > > > >> >>> > > > >> >>> Thanks in advance for any insight into this. > > > >> >>> > > > >> >>> -E- > > > >> >>> > > > >> >>> > > > >> >> > > > >> >> > > > >> > =)=)=)=)=)=)=)=)=)=)=)=)=)=) > > > >> > > > > >> > > > >> -- > > > >> View this message in context: > > > >> > http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14806630.html > > > >> Sent from the Papervision3D mailing list archive at Nabble.com. > > > >> > > > >> > > > >> _______________________________________________ > > > >> Papervision3D mailing list > > > >> Papervision3D@... > > > >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > >> > > > > > > > > _______________________________________________ > > > > Papervision3D mailing list > > > > Papervision3D@... > > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > > > > > > > > > > > > -- > > > View this message in context: > http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14841705.html > > > > > > Sent from the Papervision3D mailing list archive at Nabble.com. > > > > > > > > > _______________________________________________ > > > Papervision3D mailing list > > > Papervision3D@... > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > > > > > _______________________________________________ > > Papervision3D mailing list > > Papervision3D@... > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > > > _______________________________________________ > Papervision3D mailing list > Papervision3D@... > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeOh, thanks dude!
With this ADE engine it´s easier to load up and manipulate .ade models? There are some examples that i can see? Thanks! On Jan 15, 2008 2:45 PM, Kim Daniel Arthur <
kim@...> wrote: Do you have the latest Papervision 2.0 - Great White checked out? _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeKim, just a quick one: do you get an error in the EnvMapShader.as after that? 'cause I do...
wrote you a pm on that, guess you didn't receive it... I'm struggling with it for a while now... also got an working example on Nathaniel Warner's reflective skull, but on my .dae model still doesn't behave itself :( Am I reaching too far here or could I ask you to give me some suggestions on how to light and manipulate simple images on that model (not images with shading like now) so it looks realistic shadowed and perhaps see different types of textures? Thank you, Cristi
|
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeYes i do get the same error, i havent looked into why, it occurs once
but seems to continue working after so i silently ignored it for that case :) i think the best bet given the performance when using shaders is to try to get as much detail in the textures you use, pre-light the textures to give a more realistic effect without adding any overhead when rendering. On Jan 17, 2008 12:59 PM, vrabete <vrabete@...> wrote: > > Kim, just a quick one: do you get an error in the EnvMapShader.as after that? > 'cause I do... > wrote you a pm on that, guess you didn't receive it... > > I'm struggling with it for a while now... also got an working example on > Nathaniel Warner's reflective skull, but on my .dae model still doesn't > behave itself :( > > Am I reaching too far here or could I ask you to give me some suggestions on > how to light and manipulate simple images on that model (not images with > shading like now) so it looks realistic shadowed and perhaps see different > types of textures? > > Thank you, > Cristi > > > > Kim Daniel Arthur wrote: > > > > The reason it doesnt work is that the DAE has child objects that will > > use the ShadedMaterials, some of the child objects are the ones that > > should be registered with the material. > > > > A complete hack: not sure if this is a bug in the ShadedMaterial > > behaviour or what, but in your ShadedMaterial.as file > > (papervision3d/materials/shaders/) in the drawTriangle function. > > > > After this existing line: > > var sod:ShaderObjectData = shaderObjectData[face3D.instance]; > > > > add this line: > > if( sod == null ) > > { > > this.registerObject( face3D.instance ); > > sod = shaderObjectData[face3D.instance]; > > } > > > > your DAE with shadedmaterial then renders for me here. > > > > On Jan 15, 2008 5:57 PM, vrabete <vrabete@...> wrote: > >> > >> it doesn't seem to work... thanks for the response though... > >> these are the files, please see the lines commented with "vrabete" at the > >> end, they're the troublemakers... > >> any hint is highly appreciated... > >> thank you ;) > >> http://www.nabble.com/file/p14841705/dae.zip dae.zip > >> > >> > >> > >> Kim Daniel Arthur wrote: > >> > > >> > can it be related to the same issue as on the cube with shaders? > >> > > >> > could you try to call .registerObject( daeFile ) on all your materials > >> > in the materials list? > >> > > >> > > >> > > >> > On Jan 15, 2008 2:29 PM, vrabete <vrabete@...> wrote: > >> >> > >> >> I have the exact same problem, but it doesn't get solved this way :(. > >> >> If I build the Sphere with shaders, it works just fine, but if I load > >> a > >> >> .dae > >> >> object by > >> >> > >> >> daeFile = new DAE(); > >> >> daeFile.load("collada.DAE",myMatList); > >> >> > >> >> where myMatList has a shaded material defined exactly as the Sphere > >> one. > >> >> Neither of the approaches seems to work, the > >> >> daeFile.replaceMaterialByName > >> >> and the myMatList.addMaterial ones. I get the same #1009 error and the > >> >> part > >> >> doesn't display. > >> >> > >> >> If I use a movieAssetMaterial instead... no problem, all works fine. > >> >> > >> >> Any clues? > >> >> Thanks. > >> >> > >> >> > >> >> EToth wrote: > >> >> > > >> >> > Happy New Year everyone, > >> >> > > >> >> > Well, I think I figured this one out, and I thought I'd share it for > >> >> the > >> >> > benefit of future generations. :) > >> >> > > >> >> > I had complete success with using something like this: > >> >> > > >> >> > ------ > >> >> > objectName.replaceMaterialByName (newShadedMaterialName, > >> >> > "originalMaterialName"); > >> >> > ------ > >> >> > > >> >> > or in case of my particular example: > >> >> > > >> >> > ------ > >> >> > object.replaceMaterialByName (shadedMat, "blinn1SG"); > >> >> > ------ > >> >> > > >> >> > This works beautifully, even multiple material+shader combos or > >> shaded > >> >> > materials can be applied per loaded .dae object. > >> >> > > >> >> > That's about it. > >> >> > Enjoy. > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > EToth wrote: > >> >> >> > >> >> >> > >> >> >> I continued experimenting with this... tried it with a > >> BitmapMaterial > >> >> + > >> >> >> Shader combo instead of using a MovieMaterial. No luck, the same > >> error > >> >> >> remains: > >> >> >> > >> >> >> > >> >> >> TypeError: Error #1009: Cannot access a property or method of a > >> null > >> >> >> object reference. > >> >> >> 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() > >> >> >> > >> >> >> > >> >> >> This is highly annoying. I don't know if I'm missing something > >> here, > >> >> but > >> >> >> I'm wondering if anyone has successfully managed to replace a > >> material > >> >> on > >> >> >> a .dae with a material + shader combo... any ideas would be greatly > >> >> >> appreciated. > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> EToth wrote: > >> >> >>> > >> >> >>> Hi all, > >> >> >>> > >> >> >>> I'm running into puzzling problems when loading a .dae, and trying > >> to > >> >> >>> replace its single placeholder material with my own MovieMaterial > >> + > >> >> >>> Shader combination. > >> >> >>> > >> >> >>> The basic setup looks something like this: > >> >> >>> > >> >> >>> -------- > >> >> >>> myMatList = new MaterialsList(); > >> >> >>> myMat = new MovieMaterial (texture, false, false); > >> >> >>> cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); > >> >> >>> shadedMat = new ShadedMaterial (myMat, cellShader); > >> >> >>> -------- > >> >> >>> > >> >> >>> > >> >> >>> If I do this: > >> >> >>> ----- > >> >> >>> myMatList.addMaterial(myMat, "blinn1SG"); > >> >> >>> object = new Collada ("et.dae", myMatList); > >> >> >>> ----- > >> >> >>> ..., everything works fine, and the .dae's material is replaced by > >> >> >>> myMat, which of course points to a MovieClip in the library. > >> >> >>> > >> >> >>> > >> >> >>> However, if I try to do this to apply the MovieMaterial + Shader > >> >> combo > >> >> >>> to the object: > >> >> >>> ----- > >> >> >>> myMatList.addMaterial(shadedMat, "blinn1SG"); > >> >> >>> object = new Collada ("et.dae", myMatList); > >> >> >>> ----- > >> >> >>> ...the the renderer.renderScene (scene3d, camera, viewport); line > >> >> throws > >> >> >>> the following error: > >> >> >>> > >> >> >>> TypeError: Error #1009: Cannot access a property or method of a > >> null > >> >> >>> object reference. > >> >> >>> at > >> >> org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() > >> >> >>> at > >> org.papervision3d.core.render.command::RenderTriangle/render() > >> >> >>> at org.papervision3d.render::BasicRenderEngine/doRender() > >> >> >>> at org.papervision3d.render::BasicRenderEngine/renderScene() > >> >> >>> > >> >> >>> I'm usually pretty good at tracking down and fixing issues, but > >> I'm > >> >> >>> clueless at this point. I tried to experiment with the .dae export > >> >> >>> settings, tried .dae objects of different complexity, tried > >> different > >> >> >>> MovieMaterial + shader combinations, tried to apply straight > >> >> >>> FlatShadeMaterials / CellMaterials instead of combos, all to no > >> >> avail. > >> >> >>> To make matters worse, if I use the DAE parser instead of the > >> Collada > >> >> >>> one, the object does not show up at all (not even with only the > >> >> >>> MovieMaterial applied). But this is a separate issue for later... > >> :) > >> >> >>> > >> >> >>> Thanks in advance for any insight into this. > >> >> >>> > >> >> >>> -E- > >> >> >>> > >> >> >>> > >> >> >> > >> >> >> > >> >> > =)=)=)=)=)=)=)=)=)=)=)=)=)=) > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14806630.html > >> >> Sent from the Papervision3D mailing list archive at Nabble.com. > >> >> > >> >> > >> >> _______________________________________________ > >> >> Papervision3D mailing list > >> >> Papervision3D@... > >> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org > >> >> > >> > > >> > _______________________________________________ > >> > Papervision3D mailing list > >> > Papervision3D@... > >> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14841705.html > >> > >> Sent from the Papervision3D mailing list archive at Nabble.com. > >> > >> > >> _______________________________________________ > >> Papervision3D mailing list > >> Papervision3D@... > >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org > >> > > > > _______________________________________________ > > Papervision3D mailing list > > Papervision3D@... > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > > > > > -- > View this message in context: http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14917329.html > Sent from the Papervision3D mailing list archive at Nabble.com. > > > _______________________________________________ > Papervision3D mailing list > Papervision3D@... > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeactually they're 3 to 5 errors, but who's counting? :) i'll have to figure them out... it seems like the texture is applyed, but it doesn't get lighted, Kim Daniel Arthur wrote: > > Yes i do get the same error, i havent looked into why, it occurs once > but seems to continue working after so i silently ignored it for that > case :) > > However, to me it looks like the light only gets applied to the sphere and > not that other part of the shoe, although the material gets rendered. > > As for using prerendered+prelighted textures... I'd love to do that, but I > might have 100 objects*10 parts*20 materials=... 20.000 images? :) not > really an option :( > > Thanks for the help ;) > > > i think the best bet given the performance when using shaders is to > try to get as much detail in the textures you use, pre-light the > textures to give a more realistic effect without adding any overhead > when rendering. > > On Jan 17, 2008 12:59 PM, vrabete <vrabete@...> wrote: >> >> Kim, just a quick one: do you get an error in the EnvMapShader.as after >> that? >> 'cause I do... >> wrote you a pm on that, guess you didn't receive it... >> >> I'm struggling with it for a while now... also got an working example on >> Nathaniel Warner's reflective skull, but on my .dae model still doesn't >> behave itself :( >> >> Am I reaching too far here or could I ask you to give me some suggestions >> on >> how to light and manipulate simple images on that model (not images with >> shading like now) so it looks realistic shadowed and perhaps see >> different >> types of textures? >> >> Thank you, >> Cristi >> >> >> >> Kim Daniel Arthur wrote: >> > >> > The reason it doesnt work is that the DAE has child objects that will >> > use the ShadedMaterials, some of the child objects are the ones that >> > should be registered with the material. >> > >> > A complete hack: not sure if this is a bug in the ShadedMaterial >> > behaviour or what, but in your ShadedMaterial.as file >> > (papervision3d/materials/shaders/) in the drawTriangle function. >> > >> > After this existing line: >> > var sod:ShaderObjectData = shaderObjectData[face3D.instance]; >> > >> > add this line: >> > if( sod == null ) >> > { >> > this.registerObject( face3D.instance ); >> > sod = shaderObjectData[face3D.instance]; >> > } >> > >> > your DAE with shadedmaterial then renders for me here. >> > >> > On Jan 15, 2008 5:57 PM, vrabete <vrabete@...> wrote: >> >> >> >> it doesn't seem to work... thanks for the response though... >> >> these are the files, please see the lines commented with "vrabete" at >> the >> >> end, they're the troublemakers... >> >> any hint is highly appreciated... >> >> thank you ;) >> >> http://www.nabble.com/file/p14841705/dae.zip dae.zip >> >> >> >> >> >> >> >> Kim Daniel Arthur wrote: >> >> > >> >> > can it be related to the same issue as on the cube with shaders? >> >> > >> >> > could you try to call .registerObject( daeFile ) on all your >> materials >> >> > in the materials list? >> >> > >> >> > >> >> > >> >> > On Jan 15, 2008 2:29 PM, vrabete <vrabete@...> wrote: >> >> >> >> >> >> I have the exact same problem, but it doesn't get solved this way >> :(. >> >> >> If I build the Sphere with shaders, it works just fine, but if I >> load >> >> a >> >> >> .dae >> >> >> object by >> >> >> >> >> >> daeFile = new DAE(); >> >> >> daeFile.load("collada.DAE",myMatList); >> >> >> >> >> >> where myMatList has a shaded material defined exactly as the Sphere >> >> one. >> >> >> Neither of the approaches seems to work, the >> >> >> daeFile.replaceMaterialByName >> >> >> and the myMatList.addMaterial ones. I get the same #1009 error and >> the >> >> >> part >> >> >> doesn't display. >> >> >> >> >> >> If I use a movieAssetMaterial instead... no problem, all works >> fine. >> >> >> >> >> >> Any clues? >> >> >> Thanks. >> >> >> >> >> >> >> >> >> EToth wrote: >> >> >> > >> >> >> > Happy New Year everyone, >> >> >> > >> >> >> > Well, I think I figured this one out, and I thought I'd share it >> for >> >> >> the >> >> >> > benefit of future generations. :) >> >> >> > >> >> >> > I had complete success with using something like this: >> >> >> > >> >> >> > ------ >> >> >> > objectName.replaceMaterialByName (newShadedMaterialName, >> >> >> > "originalMaterialName"); >> >> >> > ------ >> >> >> > >> >> >> > or in case of my particular example: >> >> >> > >> >> >> > ------ >> >> >> > object.replaceMaterialByName (shadedMat, "blinn1SG"); >> >> >> > ------ >> >> >> > >> >> >> > This works beautifully, even multiple material+shader combos or >> >> shaded >> >> >> > materials can be applied per loaded .dae object. >> >> >> > >> >> >> > That's about it. >> >> >> > Enjoy. >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > EToth wrote: >> >> >> >> >> >> >> >> >> >> >> >> I continued experimenting with this... tried it with a >> >> BitmapMaterial >> >> >> + >> >> >> >> Shader combo instead of using a MovieMaterial. No luck, the same >> >> error >> >> >> >> remains: >> >> >> >> >> >> >> >> >> >> >> >> TypeError: Error #1009: Cannot access a property or method of a >> >> null >> >> >> >> object reference. >> >> >> >> 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() >> >> >> >> >> >> >> >> >> >> >> >> This is highly annoying. I don't know if I'm missing something >> >> here, >> >> >> but >> >> >> >> I'm wondering if anyone has successfully managed to replace a >> >> material >> >> >> on >> >> >> >> a .dae with a material + shader combo... any ideas would be >> greatly >> >> >> >> appreciated. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> EToth wrote: >> >> >> >>> >> >> >> >>> Hi all, >> >> >> >>> >> >> >> >>> I'm running into puzzling problems when loading a .dae, and >> trying >> >> to >> >> >> >>> replace its single placeholder material with my own >> MovieMaterial >> >> + >> >> >> >>> Shader combination. >> >> >> >>> >> >> >> >>> The basic setup looks something like this: >> >> >> >>> >> >> >> >>> -------- >> >> >> >>> myMatList = new MaterialsList(); >> >> >> >>> myMat = new MovieMaterial (texture, false, false); >> >> >> >>> cellShader = new CellShader (pointLight, 0x00ff00, 0x000000); >> >> >> >>> shadedMat = new ShadedMaterial (myMat, cellShader); >> >> >> >>> -------- >> >> >> >>> >> >> >> >>> >> >> >> >>> If I do this: >> >> >> >>> ----- >> >> >> >>> myMatList.addMaterial(myMat, "blinn1SG"); >> >> >> >>> object = new Collada ("et.dae", myMatList); >> >> >> >>> ----- >> >> >> >>> ..., everything works fine, and the .dae's material is replaced >> by >> >> >> >>> myMat, which of course points to a MovieClip in the library. >> >> >> >>> >> >> >> >>> >> >> >> >>> However, if I try to do this to apply the MovieMaterial + >> Shader >> >> >> combo >> >> >> >>> to the object: >> >> >> >>> ----- >> >> >> >>> myMatList.addMaterial(shadedMat, "blinn1SG"); >> >> >> >>> object = new Collada ("et.dae", myMatList); >> >> >> >>> ----- >> >> >> >>> ...the the renderer.renderScene (scene3d, camera, viewport); >> line >> >> >> throws >> >> >> >>> the following error: >> >> >> >>> >> >> >> >>> TypeError: Error #1009: Cannot access a property or method of a >> >> null >> >> >> >>> object reference. >> >> >> >>> at >> >> >> org.papervision3d.materials.shaders::ShadedMaterial/drawTriangle() >> >> >> >>> at >> >> org.papervision3d.core.render.command::RenderTriangle/render() >> >> >> >>> at org.papervision3d.render::BasicRenderEngine/doRender() >> >> >> >>> at >> org.papervision3d.render::BasicRenderEngine/renderScene() >> >> >> >>> >> >> >> >>> I'm usually pretty good at tracking down and fixing issues, but >> >> I'm >> >> >> >>> clueless at this point. I tried to experiment with the .dae >> export >> >> >> >>> settings, tried .dae objects of different complexity, tried >> >> different >> >> >> >>> MovieMaterial + shader combinations, tried to apply straight >> >> >> >>> FlatShadeMaterials / CellMaterials instead of combos, all to no >> >> >> avail. >> >> >> >>> To make matters worse, if I use the DAE parser instead of the >> >> Collada >> >> >> >>> one, the object does not show up at all (not even with only the >> >> >> >>> MovieMaterial applied). But this is a separate issue for >> later... >> >> :) >> >> >> >>> >> >> >> >>> Thanks in advance for any insight into this. >> >> >> >>> >> >> >> >>> -E- >> >> >> >>> >> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> > =)=)=)=)=)=)=)=)=)=)=)=)=)=) >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14806630.html >> >> >> Sent from the Papervision3D mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Papervision3D mailing list >> >> >> Papervision3D@... >> >> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org >> >> >> >> >> > >> >> > _______________________________________________ >> >> > Papervision3D mailing list >> >> > Papervision3D@... >> >> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14841705.html >> >> >> >> Sent from the Papervision3D mailing list archive at Nabble.com. >> >> >> >> >> >> _______________________________________________ >> >> Papervision3D mailing list >> >> Papervision3D@... >> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org >> >> >> > >> > _______________________________________________ >> > Papervision3D mailing list >> > Papervision3D@... >> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14917329.html >> Sent from the Papervision3D mailing list archive at Nabble.com. >> >> >> _______________________________________________ >> Papervision3D mailing list >> Papervision3D@... >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org >> > > _______________________________________________ > Papervision3D mailing list > Papervision3D@... > http://osflash.org/mailman/listinfo/papervision3d_osflash.org > > -- View this message in context: http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14918294.html Sent from the Papervision3D mailing list archive at Nabble.com. _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeactually they're 3 to 5 errors, but who's counting? :) i'll have to figure them out... it seems like the texture is applyed, but it doesn't get lighted, However, to me it looks like the light only gets applied to the sphere and not that other part of the shoe, although the material gets rendered. As for using prerendered+prelighted textures... I'd love to do that, but I might have 100 objects*10 parts*20 materials=... 20.000 images? :) not really an option :( Thanks for the help ;) -- View this message in context: http://www.nabble.com/Problems-applying-MovieMaterial-%2B-Shader-combos-to-.dae-tp14461186p14918296.html Sent from the Papervision3D mailing list archive at Nabble.com. _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeactually they're 3 to 5 errors, but who's counting? :) i'll have to figure them out...
it seems like the texture is applyed, but it doesn't get lighted, However, to me it looks like the light only gets applied to the sphere and not that other part of the shoe, although the material gets rendered. As for using prerendered+prelighted textures... I'd love to do that, but I might have 100 objects*10 parts*20 materials=... 20.000 images? :) not really an option :( Thanks for the help ;)
|
|
|
|
|
|
Re: Problems applying MovieMaterial + Shader combos to .daeAfter this existing line: var sod:ShaderObjectData = shaderObjectData[face3D.instance]; add this line: if( sod == null ) { this.registerObject( face3D.instance ); sod = shaderObjectData[face3D.instance]; } Cool. After applying this Hack i got that to work. See: http://nordostgold.com/pv3d/ But now i see the UV edges as black lines. Those Seems are the UV Sets i applied in Maya. Does anybody know how to get rid of that? Anyways, i suppose because of Speed one should stick with backed textures. |
| Free embeddable forum powered by Nabble | Forum Help |