|
![](/i/fill.gif) |
There's nothing wrong with your ISO. =)
Oded wrote:
>
> here is a source of an iso, when rendering i get
> the result attached to this message.
> i do not understand why I get a flat shape,
> probably there are problems calculating the normal
> Or maybe something else...
> If anyone knows what the problem might be...
The problem is your camera position and your
light setting.
See code below my suggestion for a new scene with
your iso-surface.
The first enclosed image shows your ISO-shape.
This function also generates an interesting shape:
(The second enclosed image with the red shape)
function {
(-V1*x -V2*y)*
(-V1*x +V2*y)*
( V1*x -V2*y)*
( V1*x +V2*y)*
(-V1*y -V2*z)*
(-V1*y +V2*z)*
( V1*y -V2*z)*
( V1*y +V2*z)*
(-V1*z -V2*x)*
(-V1*z +V2*x)*
( V1*z -V2*x)*
( V1*z +V2*x)
}
Tor Olav
--
mailto:tor### [at] hotmail com
http://www.crosswinds.net/~tok/tokrays.html
#version unofficial MegaPov 0.5;
#include "colors.inc"
#declare g = (1 + sqrt(5))/2;
#declare V1 = (3*g + 1)*0.02;
#declare V2 = (4*g + 3)*0.02;
isosurface {
function {
if(-1 - V1*x - V2*y, 1, 0)+
if(-1 - V1*x + V2*y, 1, 0)+
if(-1 + V1*x - V2*y, 1, 0)+
if(-1 + V1*x + V2*y, 1, 0)+
if(-1 - V1*y - V2*z, 1, 0)+
if(-1 - V1*y + V2*z, 1, 0)+
if(-1 + V1*y - V2*z, 1, 0)+
if(-1 + V1*y + V2*z, 1, 0)+
if(-1 - V1*z - V2*x, 1, 0)+
if(-1 - V1*z + V2*x, 1, 0)+
if(-1 + V1*z - V2*x, 1, 0)+
if(-1 + V1*z + V2*x, 1, 0)
}
threshold 1.5
contained_by { box { 10*<-1, -1, -1>, 10*<1, 1, 1> } }
method 1
pigment { color Cyan }
no_shadow
}
background { color Blue/2 }
light_source { 100*(V1*x - V2*z) color Gray60 }
light_source { 100*(V1*x + V2*y) color White }
camera {
location <2, 4, -7>*8
look_at <0, 0, 0>
angle 25
}
Post a reply to this message
Attachments:
Download 'test_iso01.jpg' (10 KB)
Download 'test_iso04.jpg' (10 KB)
Preview of image 'test_iso01.jpg'
![test_iso01.jpg](/povray.binaries.images/attachment/%3C39EA463D.1F0F451F%40online.no%3E/test_iso01.jpg?preview=1)
Preview of image 'test_iso04.jpg'
![test_iso04.jpg](/povray.binaries.images/attachment/%3C39EA463D.1F0F451F%40online.no%3E/test_iso04.jpg?preview=1)
|
![](/i/fill.gif) |