|
|
|
|
|
|
| |
| |
|
|
From: Andreas Kreisig
Subject: How to add attributes to pre-defined textures?
Date: 23 Jan 2003 10:06:16
Message: <3e3004e8@news.povray.org>
|
|
|
| |
| |
|
|
Hi all!
This may be a stupid question, but I didn't know how to add some attributes
to pre-defined textures. An expample:
I defined something like this:
#declare ma_bottle_fsh=material { M_Glass2 }
and want to add some bumpiness to the bottle, or I defined this:
#declare ma_chair_fsh=texture { T_Wood15 }
and want to add a shiny surface.
How can I do that?
Thanks & Regards,
Andreas
--
http://www.render-zone.com
Post a reply to this message
|
|
| |
| |
|
|
From: Bonsai
Subject: Re: How to add attributes to pre-defined textures?
Date: 23 Jan 2003 10:50:46
Message: <3e300f56@news.povray.org>
|
|
|
| |
| |
|
|
Andreas Kreisig wrote:
> I didn't know how to add some attributes
> to pre-defined textures.
>
> I defined something like this:
> #declare ma_bottle_fsh=material { M_Glass2 }
> and want to add some bumpiness to the bottle,
Just add the attributes you want to the definition:
#declare ma_bottle_fsh =
material {
texture {
M_Glass2
normal {
dents
}
}
}
> or I defined this:
> #declare ma_chair_fsh=texture { T_Wood15 }
> and want to add a shiny surface.
#declare ma_chair_fsh =
texture {
T_Wood15
finish {
reflection 0.2
}
}
Hope that helps.
Bonsai
--
<--------------------------->
___ __ __ _ ___ ___ _
| _ ) \ \( ) _) _ )( )
| _ \() |\ \ |\ \/ _ \| |
|___/__/_)\__)___)/ \_)_)
www.b0n541.net
<--------------------------->
Post a reply to this message
|
|
| |
| |
|
|
From: Andreas Kreisig
Subject: Re: How to add attributes to pre-defined textures?
Date: 24 Jan 2003 09:36:38
Message: <3e314f75@news.povray.org>
|
|
|
| |
| |
|
|
Bonsai wrote:
> Andreas Kreisig wrote:
>> I didn't know how to add some attributes
>> to pre-defined textures.
>>
>> I defined something like this:
>> #declare ma_bottle_fsh=material { M_Glass2 }
>> and want to add some bumpiness to the bottle,
>
> Just add the attributes you want to the definition:
>
> #declare ma_bottle_fsh =
> material {
> texture {
> M_Glass2
>
> normal {
> dents
> }
> }
> }
>
>> or I defined this:
>> #declare ma_chair_fsh=texture { T_Wood15 }
>> and want to add a shiny surface.
>
> #declare ma_chair_fsh =
> texture {
> T_Wood15
>
> finish {
> reflection 0.2
> }
> }
>
> Hope that helps.
>
> Bonsai
Yes, thanks!
--
http://www.render-zone.com
Post a reply to this message
|
|
| |
| |
|
|
From: Andreas Kreisig
Subject: Re: How to add attributes to pre-defined textures?
Date: 24 Jan 2003 11:28:27
Message: <3e3169ab@news.povray.org>
|
|
|
| |
| |
|
|
Andreas Kreisig wrote:
> Bonsai wrote:
> Yes, thanks!
Damned! No, it doesn't work and I don't know why. When I try to render this,
I get this error:
Attempt to free NULL pointer C:\...\texture.cpp line 1261
I'm not able to add normals or something else to a pre-defined texture.
Any ideas?
Regards,
Andreas
--
http://www.render-zone.com
Post a reply to this message
|
|
| |
| |
|
|
From: Gilles Tran
Subject: Re: How to add attributes to pre-defined textures?
Date: 24 Jan 2003 12:22:44
Message: <3e317664$1@news.povray.org>
|
|
|
| |
| |
|
|
3e3169ab@news.povray.org...
>
> Attempt to free NULL pointer C:\...\texture.cpp line 1261
If you're using MLPov, make sure that there isn't a simple syntax error
somewhere (like a missing brace). I had a similar problem with it IIRC.
G.
--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters
Post a reply to this message
|
|
| |
| |
|
|
From: Andreas Kreisig
Subject: Re: How to add attributes to pre-defined textures?
Date: 24 Jan 2003 14:19:14
Message: <3e3191b2@news.povray.org>
|
|
|
| |
| |
|
|
Gilles Tran wrote:
> 3e3169ab@news.povray.org...
>>
>> Attempt to free NULL pointer C:\...\texture.cpp line 1261
>
> If you're using MLPov, make sure that there isn't a simple syntax error
> somewhere (like a missing brace). I had a similar problem with it IIRC.
Thanks guys, it's working now :-)
--
http://www.render-zone.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |