|
|
Le_Forgeron <jgr### [at] freefr> wrote:
> >
> If you can provide the source of the scene, it would help to try to look
> at the problem.
Yes, please:
global_settings {
assumed_gamma 1.0
max_trace_level 3
}
background {rgbt<0.0446, 0.393, 0.0561, 0>}
#declare Material_finish = finish {
specular 0.5
roughness 0.01
diffuse 0.8
conserve_energy
}
#declare Texture = pigment{ uv_mapping
image_map {
"/home/leonid/grid.png"
map_type 0 interpolate 2 filter all 0 transmit all 0 }
frequency 2
}
#declare Material_tex =
texture {pigment {Texture} finish{Material_finish}}
#declare NurbsCurve_ob =
sphere_sweep { b_spline 7,
<-3.249,-2.335,3.579>,0.3,
<1.725,-0.3244,-3.686>,0.3,
<0.06965,0.4773,-0.3503>,0.3,
<0.9734,-1.185,1.429>,0.3,
<4.175,-0.5368,-1.268>,0.3,
<1.912,1.562,-1.22>,0.3,
<-1.916,2.099,-1.6>,0.3
scale <2.075,2.075,2.075>
rotate <-2.504e-06,-0,0>
translate <-2.452184, 1.506530, 1.531251>
}
object {NurbsCurve_ob
texture{Material_tex}
}
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>
}
Post a reply to this message
|
|
|
|
Le 02/03/2014 15:30, LanuHum nous fit lire :
> I saw some artifacts. Probably, sometime you will correct it
>
Well, I now have corrected the rotation of the mapping to keep a
rotating base at each connection of segment.
But the V part remains computed from the normal of the surface,
projected on that segment's base. For other spline's types than linear,
I do not see a way to have a continuity of the V mapping. (even with
linear spline, the continuity is partial: the outer part of the sphere
is a stretch of a constant-U slice, and the inner part of the "shoulder"
has a jump of U.)
Contribution is of course welcome if you have an idea for the continuity
of V along U at the turn.
Post a reply to this message
|
|
|
|
Le 02/03/2014 15:30, LanuHum nous fit lire :
> Le_Forgeron <jgr### [at] freefr> wrote:
>
>> If you want a version far more close to 3.7 (at least the master
>> branch), you can also see:
>>
>> https://github.com/LeForgeron/povray
>>
>> Current delta from master of 3.7 is:
>> 1. Displaying more details about error on the command line for Unix
>> 2. uv_mapping support for sphere_sweep (with correction of FS#243 to
>> support negative scaling without getting negative radius for spheres)
>
> Today I could collect the program from this address.
> As image_map I used a simple grid with the alpha channel:
>
http://news.povray.org/povray.binaries.images/attachment/%3Cweb.53122820745dbc337a3e03fe0%40news.povray.org%3E/grid.png
>
> I saw some artifacts. Probably, sometime you will correct it
>
You are to be spoiled.
Despite my first impression of impossible, it's now done.
(instead of constant segments with twist at spheres, it's turning along
the segments). It cannot fix the internal shoulder of linear_spline (and
it will stay like that for the years to come), but it fix the other
splines' types .
Code now in repository.
Post a reply to this message
Attachments:
Download 'spl0.png' (298 KB)
Download 'spl1.png' (262 KB)
Download 'spl2.png' (192 KB)
Preview of image 'spl0.png'
Preview of image 'spl1.png'
Preview of image 'spl2.png'
|
|