POV-Ray : Newsgroups : povray.binaries.images : UV mapping of spheresweep Server Time
26 Sep 2024 23:38:34 EDT (-0400)
  UV mapping of spheresweep (Message 18 to 27 of 37)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: LanuHum
Subject: Re: UV mapping of spheresweep
Date: 2 Mar 2014 09:35:00
Message: <web.5313409230311f0c7a3e03fe0@news.povray.org>
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


Post a reply to this message


Attachments:
Download 'uv_ss.jpg' (109 KB)

Preview of image 'uv_ss.jpg'
uv_ss.jpg


 

From: Le Forgeron
Subject: Re: UV mapping of spheresweep
Date: 2 Mar 2014 11:50:24
Message: <53136150$1@news.povray.org>
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
> 
If you can provide the source of the scene, it would help to try to look
at the problem.


Post a reply to this message

From: LanuHum
Subject: Re: UV mapping of spheresweep
Date: 2 Mar 2014 14:00:02
Message: <web.53137f3230311f0c7a3e03fe0@news.povray.org>
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

From: Le Forgeron
Subject: Re: UV mapping of spheresweep
Date: 6 Mar 2014 17:18:48
Message: <5318f448$1@news.povray.org>
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

From: LanuHum
Subject: Re: UV mapping of spheresweep
Date: 7 Mar 2014 10:05:00
Message: <web.5319df2e30311f0c7a3e03fe0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 02/03/2014 15:30, LanuHum nous fit lire :

> Contribution is of course welcome if you have an idea for the continuity
> of V along U at the turn.

My idea - to draw a curve, using bicubic_patch with UV-mapping instead of
sphere_sweep
Today I tried to begin creation process. I am afraid to break the head about
arithmetics, connecting patches to smoothing
I don't know how it will affect weight of a scene and speed of a render


Post a reply to this message


Attachments:
Download 'bicubic_patch.png' (19 KB)

Preview of image 'bicubic_patch.png'
bicubic_patch.png


 

From: Le Forgeron
Subject: Re: UV mapping of spheresweep
Date: 8 Mar 2014 11:22:07
Message: <531b43af@news.povray.org>
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'
spl0.png

Preview of image 'spl1.png'
spl1.png

Preview of image 'spl2.png'
spl2.png


 

From: LanuHum
Subject: Re: UV mapping of spheresweep
Date: 8 Mar 2014 11:40:01
Message: <web.531b46a330311f0c7a3e03fe0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> Code now in repository.


Excellent work! :)
Download this github.com/LeForgeron/povray ???


Post a reply to this message

From: Le Forgeron
Subject: Re: UV mapping of spheresweep
Date: 8 Mar 2014 12:25:40
Message: <531b5294$1@news.povray.org>
Le 08/03/2014 17:35, LanuHum nous fit lire :
> Le_Forgeron <jgr### [at] freefr> wrote:
> 
>> Code now in repository.
> 
> 
> Excellent work! :)
> Download this github.com/LeForgeron/povray ???
> 

either :

git clone https://github.com/LeForgeron/povray.git

or

hg clone https://bitbucket.org/LeForgeron/hgpovray

(if you are more familiar with git or mercurial).


Post a reply to this message

From: Le Forgeron
Subject: Re: UV mapping of spheresweep
Date: 8 Mar 2014 12:29:31
Message: <531b537b$1@news.povray.org>
Le 08/03/2014 17:35, LanuHum nous fit lire :
> Le_Forgeron <jgr### [at] freefr> wrote:
> 
>> Code now in repository.
> 
> 
> Excellent work! :)
> Download this github.com/LeForgeron/povray ???
> 

either :

git clone https://github.com/LeForgeron/povray.git

( limited evolution of 3.7 )



or (for even more experimental features)

git clone https://github.com/LeForgeron/Hgpovray.git

or

hg clone https://bitbucket.org/LeForgeron/hgpovray

(if you are more familiar with git or mercurial).


Post a reply to this message

From: LanuHum
Subject: Re: UV mapping of spheresweep
Date: 8 Mar 2014 12:40:00
Message: <web.531b54d530311f0c7a3e03fe0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> or (for even more experimental features)

What it is experiments?
It is possible to examine them?


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.