[Papervision3D] Papervision3D Digest, Vol 26, Issue 48

Stephen Matthews steve at gingerman.co.uk
Fri Nov 7 04:52:40 PST 2008


Re: Re: [Papervision3D] Applying material "only" to Cylinder

Thanks that works perfectly.
I had looked through the classes and must have missed this.
I have found it in MaterialObject3D.as

Cheers

Steve



On 7 Nov 2008, at 12:26, papervision3d-request at osflash.org wrote:

> Try
>
> YourMaterial.doubleSided = false
> YourMaterial.opposite = true
>
>
>
> 2008/11/7 Stephen Matthews <steve at gingerman.co.uk>
>
>> Hi,
>> I need to apply a bitmap material to the inner surface of a  
>> Cylinder only.
>>
>> You can -
>> apply a material to the outside.
>> apply a material to the outside and inside ( using the doubleSided  
>> boolean
>> )
>>
>> You can not -
>> apply a material to the inside and not the outside.
>>
>> To get around this I have tried using two cylinders - one inside  
>> the other,
>> the inside cylinder set to double sided - the outside cylinder set  
>> to single
>> sided, but the two cylinders interact with each other causing  
>> artifacts (
>> triangles busting through ) even if they are different Radius sizes.
>>
>>
>> There must be a part of the Cylinder.as code which draws the inside  
>> and
>> outside material, but I can't get a grip on it. If you can point me  
>> in the
>> right direction that would be great.
>>
>> Maybe I am misunderstanding how Materials work?
>>
>> ( using Great White )_
>>
>> Cheers
>> Steve

Stephen Matthews

232 Manchester Road,
Broadheath
Manchester
WA14 5LZ

07779 613 740

http://www.gingerman.co.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20081107/f7b290cb/attachment.html>


More information about the Papervision3D mailing list