|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
FOR TIM KNIP: Suggestion for Material handling in Collada and Max3DSHey,
This is a suggestion for Tim, because I know he created and maintains the Max3DS, Collada and DAE parser classes in PV3d. I was working with the Max3DS.as class the other day and noticed that if I didn't send it a materialsList in the constructor, it would create wireframe materials for the model, But then throw away the references to those wireframe materials. So, I couldn't do a replaceMaterialByName after the model had loaded because the model's materialsList was empty. I dug into the parser and found the problem - I tweaked the code so that the Max3DS parser would add the new wireframe materials to the model's materialsList. This allowed me to replace them later. The side benefit of this is that I can load a model and not know anything about it's materials, but retrieve a complete materialsList after it has finished loading and replace the materials as needed. Now, I am noticing that the Collada.as class has the same issue. If it can't find the materials in the collada file, it creates wireframe materials and then throws away the reference to those materials! Anyway, I added an issue ticket on the papervision Google Code site about the Max3DS parser, but I guess I would like to see this change made to all of the model parsers. Unless, there is a reason why this change would be a problem. Tim, can you shed any light on this? -Andy ===============================================
Check out my blog for Flash, AS3, and web development stuff: http://www.wastedpotential.com |
|
|
Applying a texture to a ConeAnyone know how a texture is mapped onto a cone?
Clearly if one is to use a square texture, that texture will be stretched/scaled in some way to properly fit on a cone which is not square. I have tried all sorts of textures and can't quite figure out how to make them so that when they are applied to the cone they look the way they should. Surely this is trivial and someone knows this off the top of their head? Thanks, mark _______________________________________________ Papervision3D mailing list Papervision3D@... http://osflash.org/mailman/listinfo/papervision3d_osflash.org |
|
|
Re: Applying a texture to a Conei bet it has something to do with the polar coordinates filter in
photoshop. On Jul 8, 2009, at 10:44 AM, nospam@... wrote: > Anyone know how a texture is mapped onto a cone? > > Clearly if one is to use a square texture, that texture will be > stretched/scaled in some way to properly fit on a cone which is not > square. > > I have tried all sorts of textures and can't quite figure out how to > make > them so that when they are applied to the cone they look the way they > should. > > Surely this is trivial and someone knows this off the top of their > head? > > Thanks, > mark > > > _______________________________________________ > 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: Applying a texture to a ConeI'm not so sure that it does, or if it does, maybe I just have no idea how to use that filter in photoshop. Anyone else? Thanks, mark > i bet it has something to do with the polar coordinates filter in > photoshop. > On Jul 8, 2009, at 10:44 AM, nospam@... wrote: > >> Anyone know how a texture is mapped onto a cone? >> >> Clearly if one is to use a square texture, that texture will be >> stretched/scaled in some way to properly fit on a cone which is not >> square. >> >> I have tried all sorts of textures and can't quite figure out how to >> make >> them so that when they are applied to the cone they look the way they >> should. >> >> Surely this is trivial and someone knows this off the top of their >> head? >> >> Thanks, >> mark >> >> >> _______________________________________________ >> 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 |
| Free embeddable forum powered by Nabble | Forum Help |