|
![](/i/fill.gif) |
> "Fractracer" <lg.### [at] gmail com> wrote:
>>
>> Is the gradient in this image coorect for you? For this I use gradient x pigment
>> scaled in x by the length of the sphere_swep
>>
>> Lionel.
>
> Help me, please!
> Modify this text:
>
>
#version 3.7;
global_settings {
assumed_gamma 1.0
max_trace_level 3
}
background {rgbt<0.0509, 0.0509, 0.0509, 0>}
#declare Texture = pigment{
average
pigment_map{
[1
gradient x+1 // x+1 else we see a demarcation line
color_map {
[0 color rgbf<0,0,0,0>]
[1 color rgbf<1,1,1,0>]
}
scale x*11 //because 11 points in sphere_sweep
]
[2
gradient y
color_map {
[0 color rgbf<0,0,0,0>]
[1 color rgbf<1,1,1,0>]
}
scale y*11
]
}
}
#declare Material_001_tex =
texture {pigment {Texture}}
#declare NurbsCurve_ob =
sphere_sweep { b_spline 11, //or cubic_spline
<0.6332,1.591,-2.241>,0.024,
<1.694,1.468,-1.64>,0.024,
<2.423,1.241,-0.959>,0.024,
<2.772,0.5467,0.466>,0.024,
<1.655,-0.215,1.505>,0.024,
<-0.1772,-0.4423,1.292>,0.024,
<-1.707,-0.6573,1.161>,0.024,
<-1.5,0,0>,0.024,
<-1,-4.371e-08,-1>,0.024,
<1,-4.371e-08,-1>,0.024,
<1.5,0,0>,0.024
texture{Material_001_tex}
scale <1,1,1>
rotate <-2.504e-06,-0,0>
translate <0.000000, 0.000000, 0.000000>
}
object {NurbsCurve_ob}
light_source {
<4.08,5.9,-1.01>
color rgb<1, 1, 1>
}
camera {
location <0, 0, 0>
look_at <0, 0, -1>
right <-1.6077777759896383, 0, 0>
up <0, 1, 0>
angle 49.134343
rotate <-27.098163, 46.688390, -0.903519>
translate <7.481132, 5.343666, 6.507640>
}
I have modified slightly the pigment, I think it is what you want. There
is just one problem whith the gradient x which can let appear some
demarcation line (it is why I wrote /gradient x+1/). Maybe you have to
modify some parts to obtain the right result.
Lionel
--
Do not judge my words, judge my actions.
---
http://www.avast.com
Post a reply to this message
|
![](/i/fill.gif) |