|
![](/i/fill.gif) |
"Chris B" <nom### [at] nomail com> wrote:
> "Micheus" <nomail@nomail> wrote in message
> news:web.4a36c43a438fc1fb194bff60@news.povray.org...
> >
> > ...
> I suspect that it's therefore mostly useless for what you want to do.
________________________
Thanks Chris.
Really I can't make this work with may structure (Wings3D exported structure).
I have tried Your definition with a simple cube made with Wings3D. It's center
at <0,0,0>:
:
:
#declare wm_default = texture{
pigment{
color rgbf <1.000000, 1.000000, 1.000000, 0.000000>
}
finish {
ambient rgb <0.000000, 0.000000, 0.000000>
diffuse 0.700000
brilliance 1.000000
metallic 0.000000
specular 1.000000
roughness 0.010000
}
}
#declare wo_0_cube1 = mesh2{
vertex_vectors { 8, <0.500000, -0.500000, 0.500000>, <0.500000, 0.500000,
0.500000>, <-0.500000, 0.500000, 0.500000>, <-0.500000, -0.500000, 0.500000>,
<0.500000, -0.500000, -0.500000>, <0.500000, 0.500000, -0.500000>, <-0.500000,
0.500000, -0.500000>, <-0.500000, -0.500000, -0.500000>}
//#local average_center = <0.000000, 0.000000, 0.000000>;
normal_vectors { 8, <-0.666667, 0.333333, -0.666667>, <-0.408248, -0.816497,
-0.408248>, <0.666667, -0.333333, -0.666667>, <0.408248, 0.816497, -0.408248>,
<-0.408248, 0.816497, 0.408248>, <-0.666667, -0.333333, 0.666667>, <0.408248,
-0.816497, 0.408248>, <0.666667, 0.333333, 0.666667>}
uv_vectors { 0}
texture_list { 1, texture{wm_default}}
face_indices { 12, <0, 3, 2>, 0, <2, 1, 0>, 0, <3, 7, 2>, 0, <7, 6, 2>, 0, <0,
4, 3>, 0, <4, 7, 3>, 0, <2, 6, 1>, 0, <6, 5, 1>, 0, <5, 6, 7>, 0, <5, 7, 4>, 0,
<1, 5, 0>, 0, <5, 4, 0>, 0}
normal_indices { 12, <0, 3, 2>, <2, 1, 0>, <3, 7, 2>, <7, 6, 2>, <0, 4, 3>,
<4, 7, 3>, <2, 6, 1>, <6, 5, 1>, <5, 6, 7>, <5, 7, 4>,
<1, 5, 0>, <5, 4, 0>}
uv_indices { 12, <0, 0, 0>, <0, 0, 0>, <0, 0, 0>, <0, 0, 0>, <0, 0, 0>, <0, 0,
0>, <0, 0, 0>, <0, 0, 0>, <0, 0, 0>, <0, 0, 0>,
<0, 0, 0>, <0, 0, 0>}
}
object{ wo_0_cube1
pigment {rgbt 1 } hollow
interior {
media {emission rgb <1,0,0>}
media {emission 1
density {spherical
density_map {
[0 rgb 0]
[0.2 rgb 0]
[0.5 rgb <1,1,0>]
[1 rgb <1,1,0>]
}
}
scale <0.3,0.6,0.3>
rotate z*8
translate 0.15*y
}
}
}
If I remove "texture_list" and insert "pigment" into mesh definition I get an
error message (Texture index out of range) or if a try change "wm_default"
texture definition to use the pigment, like this:
#declare wm_default = texture{
pigment {rgbt 1 } hollow
}
I get an other error message (No matching } in 'texture' hollow found instead).
So I think that is not possible use media with objects exported by Wings3D.
One more time, thanks by Your answer.
Post a reply to this message
|
![](/i/fill.gif) |