[Papervision3D] re placing a collada material by another material

Jeff W. info at jeffwinder.nl
Wed Dec 19 02:45:09 PST 2007


thanks, that works :-).

I thought I'd make an object in 3d max, wrap a bitmap on the object, using
uv mapping, and then replace that material by a MovieassetMaterial by making
the movieclip exactly the same size as the original bitmap. But what happens
is that I only see half of my movieassetmaterial on the object.

Or should I use uvw unwrapping, render to texture?

tanks,

Jeff.


Nathaniel Warner wrote:
> 
> Hi Jeff,
> 
> It is possible.
> 
> ///////////////////////////////////////
> var material:MovieAssetMaterial = new MovieAssetMaterial("clip");
> var materials:MaterialsList = new MaterialsList();
> materials.addMaterial(material, "name_of_texture
> _as_found_in_collada_file");
> 
> var daeFile:DAE = new DAE();
> daeFile.load("testtube06.dae", materials);
> //////////////////////////////////
> 
> That is how I did it.
> 
> 
> On 12/17/07, Jeff W. <info at jeffwinder.nl> wrote:
>>
>>
>> Hi,
>>
>> I made an object in 3dmax and I would like to put a MovieAssetMaterial on
>> it.
>>
>> For now  I have added a bitmap on the object within max.
>>
>> Can I replace the bitmap texture by a MovieAssetMaterial?
>>
>> I have a movieclip with limageID "clip"in the library.
>>
>> I tried:
>>
>> var material:MovieAssetMaterial = new MovieAssetMaterial("clip", true,
>> true);
>>
>> var materials:MaterialsList = new MaterialsList({clip:material});
>>
>> var daeFile:DAE = new DAE();
>>
>> daeFile.load("testtube06.dae", new MaterialsList(materials));
>>
>> I also tried to change the link in the init node within  'library_images'
>> in the DAE file to 'clip'.
>>
>> Thanks,
>>
>> Jeff.
>> --
>> View this message in context:
>> http://www.nabble.com/replacing-a-collada-material-by-another-material-tp14372557p14372557.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/replacing-a-collada-material-by-another-material-tp14372557p14414810.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list