POV-Ray : Newsgroups : povray.general : interior_texture -- #declare problem : interior_texture -- #declare problem Server Time
21 Dec 2024 12:16:17 EST (-0500)
  interior_texture -- #declare problem  
From: Kenneth
Date: 4 Dec 2024 15:40:00
Message: <web.6750bd3c9b1bb2bde83955656e066e29@news.povray.org>
[Running Windows 10]

This might be old news, although I could not find a reference to it in a
newsgroup search.

An interior_texture cannot be pre-#declared in the usual way. The following
constructs do not parse in either 'official' v3.7.0 or 3.8 beta 1, fatal errors:

#declare INT_TEX_1A =
interior_texture{pigment{rgb <.2,.2,1>} finish{ambient .1 emission 0 diffuse
..8}}

or...

#declare TEX_2 =
texture{pigment{rgb <.2,.2,1>} finish{ambient .1 emission 0 diffuse .8}}
#declare INT_TEX_2 = interior_texture{TEX_2}

or as a #default...

#default{interior_texture{pigment{rgb <1,.4,.1>} finish{ambient .1 emission 0
diffuse .8}}}

However, it *can* be pre-#declared by using a 'material' wrapper, which is
undocumented:

#declare TEX_4 =
material{
interior_texture{
pigment{rgb <.2,.2,1>}finish{ambient .1 emission 0 diffuse .8}
}
}

I assumed that an interior_texture and a 'regular' texture were similar entities
under-the-hood, but apparently not(?)


Post a reply to this message

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