|
|
in news:3be8c51f@news.povray.org Batronyx wrote:
> I can find no apparent way to get an interior_texture{} applied to
> a mesh in mesh2{} format.
No problem, see scene below. The material container isn't realy needed.
There is one minor "problem" though. The texture_list does not accept
interior_texture. Nor does it accept materials, so it is not possible
to use texture + interior_texture there.
---%<------%<---
#version 3.5;
global_settings {assumed_gamma 1.0}
light_source {<500,500,-500> rgb 1}
camera {location <0.5, 0.5, 1.5> look_at<0.5, 0.5, 0>}
#declare T1= texture{pigment{wood scale 0.3}}
mesh2 {
vertex_vectors {
9,
<0,0,0>,<0.5,0,0>,<0.5,0.5,0>,
<1,0,0>,<1,0.5,0>,<1,1,0>,
<0.5,1,0>,<0,1,0>,<0,0.5,0>
}
uv_vectors {
9
<-0.5,-0.5>,<0,-0.5>,<0,0>,
<0.5,-0.5>,<0.5,0>,<0.5,0.5>,
<0,0.5>,<-0.5,0.5>,<-0.5,0>,
}
texture_list {
3,
texture{pigment{wood scale 0.3}}
texture{pigment{rgb 1}}
texture{pigment{marble scale 0.2}}
}
face_indices {
8,
<0,1,2>,0,1,2 <1,3,2>/*,0*/
<3,4,2>,0,1,2 <4,5,2>/*,0*/
<5,6,2>/*,0,1,2*/ <6,7,2>/*,0*/
<7,8,2>/*,0,1,2*/ <8,0,2>/*,0*/
}
uv_indices {
8,
<0,1,2>, <0,1,2>,
<0,1,2>, <0,1,2>,
<0,1,2>, <0,1,2>,
<0,1,2>, <0,1,2>,
}
//uv_mapping
material {
texture{
pigment{rgb <1,0,0>}
}
interior_texture{
pigment{rgb 1}
}
}
}
---%<------%<---
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
|
|
On 7 Nov 2001 05:29:56 -0500, ingo <ing### [at] homenl> wrote:
> in news:Xns### [at] povrayorg ingo wrote:
>
> > There is one minor "problem" though. The texture_list does not
> > accept interior_texture. Nor does it accept materials, so it is not
> > possible to use texture + interior_texture there.
>
> ... and adding inverse to the mesh doesn't flip the textures as it does
> on a sphere. Not that I expected it to do so, but it would be very nice
> if inverse flipped the normals on a mesh.
from 6.5.9.4 "The appearance of the object is not changed, just the way that
POV-Ray perceives it." ;-)
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|