|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I've got an Isosurface in an orthographic scene and its shadow seems to be "cut
off"...basically like it's only casting the shadow within some arbitrary box.
I've attached a sample render, and have the code below. Anyone have any idea
what's going on an whether there's a way to fix this?
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
camera {
orthographic
location <0,0,1000>
look_at <0,0,0>
right x*image_width
up y*image_height
}
light_source {
0*x
color rgb <1,1,1>
translate <-20*1050/3, 40*1050/3, 20*1050>
}
box {
<-(image_width/2), -(image_height/2), -1>, <(image_width/2), (image_height/2),
1>
texture {
pigment {
color rgb 1
}
finish {
ambient 0.0
diffuse 1.0
}
}
}
#declare a = 0.9;
#declare b = 1.0;
#declare F = function {
y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) }
isosurface {
function { F(x, sqrt(y*y+z*z), z) }
contained_by { box { <-2, -1, -1>, <2, 1, 1> } }
accuracy 0.0001
max_gradient 7
all_intersections
texture {
pigment{ color rgb<1,1.0,0.95>*1.1}
finish { phong 1}
}
scale 100
translate 110*z
rotate 90*z
}
Post a reply to this message
Attachments:
Download 'shadowtest.png' (21 KB)
Preview of image 'shadowtest.png'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jceddy" <jce### [at] gmailcom> wrote:
> I've got an Isosurface in an orthographic scene and its shadow seems to be "cut
> off"...basically like it's only casting the shadow within some arbitrary box.
> I've attached a sample render, and have the code below. Anyone have any idea
> what's going on an whether there's a way to fix this?
>
> #version 3.7;
> global_settings{ assumed_gamma 1.0 }
> #default{ finish{ ambient 0.1 diffuse 0.9 }}
>
> camera {
> orthographic
> location <0,0,1000>
> look_at <0,0,0>
> right x*image_width
> up y*image_height
> }
>
> light_source {
> 0*x
> color rgb <1,1,1>
> translate <-20*1050/3, 40*1050/3, 20*1050>
> }
>
> box {
> <-(image_width/2), -(image_height/2), -1>, <(image_width/2), (image_height/2),
> 1>
> texture {
> pigment {
> color rgb 1
> }
> finish {
> ambient 0.0
> diffuse 1.0
> }
> }
> }
>
> #declare a = 0.9;
> #declare b = 1.0;
> #declare F = function {
> y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) }
>
> isosurface {
> function { F(x, sqrt(y*y+z*z), z) }
> contained_by { box { <-2, -1, -1>, <2, 1, 1> } }
> accuracy 0.0001
> max_gradient 7
> all_intersections
>
> texture {
> pigment{ color rgb<1,1.0,0.95>*1.1}
> finish { phong 1}
> }
>
> scale 100
> translate 110*z
> rotate 90*z
> }
Hallo
function { min( (
y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) ),1 ) }
this solve the problem
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"eticre" <eti### [at] tinit> wrote:
> "jceddy" <jce### [at] gmailcom> wrote:
> Hallo
>
> function { min( (
> y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) ),1 ) }
>
> this solve the problem
That did it, thanks for the help!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jceddy" <jce### [at] gmailcom> wrote:
> "eticre" <eti### [at] tinit> wrote:
>
> That did it, thanks for the help!
And here's the end result...
Post a reply to this message
Attachments:
Download 'peanut.png' (784 KB)
Preview of image 'peanut.png'
|
|
| |
| |
|
|
|
|
| |
|
|