POV-Ray : Newsgroups : povray.beta-test : no default material Server Time
29 Jul 2024 06:16:35 EDT (-0400)
  no default material (Message 1 to 4 of 4)  
From: Rafal 'Raf256' Maj
Subject: no default material
Date: 24 Apr 2004 23:09:30
Message: <Xns94D6345C352BEraf256com@203.29.75.35>
a very little problem, just btw.

statement 

default { material { ... } } is invalid, while 
default { texture { ... } } is o.k.

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: no default material
Date: 25 Apr 2004 05:15:49
Message: <408b81c5@news.povray.org>
In article <Xns94D6345C352BEraf256com@203.29.75.35>, "Rafal 'Raf256' Maj" 
<spa### [at] raf256com> wrote:

> a very little problem, just btw.
>
> statement
>
> default { material { ... } } is invalid, while
> default { texture { ... } } is o.k.

Of course, there is nothing wrong here.  It makes no sense to have an empty
material.  It is just a container, not a property by itself.

See "6.5.9.3 Material" <http://www.povray.org/documentation/view/174/> for
details.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: no default material
Date: 25 Apr 2004 07:30:09
Message: <Xns94D6893D3B4E7raf256com@203.29.75.35>
tho### [at] trfde news:408b81c5@news.povray.org

> Of course, there is nothing wrong here.  It makes no sense to have an
> empty material.  It is just a container, not a property by itself.

I ment - I can not use:

#declare myMaterial = { texture { pigmemt { bozo } finish { phong .5 }
normal {crackle } interior {ior 1.5 } }

default { material { myMaterial } }

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: ABX
Subject: Re: no default material
Date: 26 Apr 2004 02:00:26
Message: <299p80532kiu1niu591n9kpe1et7hlnpo4@4ax.com>
On 25 Apr 2004 07:30:09 -0400, "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:
> I ment - I can not use:
>
> #declare myMaterial = { texture { pigmemt { bozo } finish { phong .5 }
> normal {crackle } interior {ior 1.5 } }
>
> default { material { myMaterial } }

That would be new feature, wouldn't it?

10.1.4.4 Default Texture
Specify a default texture, pigment, normal or finish: 
DEFAULT_DIRECTIVE: 
    #default { DEFAULT_ITEM } 
DEFAULT_ITEM: 
    PLAIN_TEXTURE | PIGMENT | NORMAL | FINISH 

http://www.povray.org/documentation/view/148/

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.