POV-Ray : Newsgroups : povray.binaries.images : Glowing Tube - 1 attachment Server Time
16 Apr 2024 00:47:14 EDT (-0400)
  Glowing Tube - 1 attachment (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Rune
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 09:32:32
Message: <3eccd170$1@news.povray.org>
Gilles Tran wrote:
> Actually aoi-like images can be done with
> the slope pattern in regular 3.5:

Only with an orthographic camera (or a camera with a very small angle).

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com (updated Oct 19)
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Gilles Tran
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 10:12:25
Message: <3eccdac9@news.povray.org>

3eccd170$1@news.povray.org...
> Only with an orthographic camera (or a camera with a very small angle).

The code I posted with the message does produce something which looks a lot
like an aoi pattern with a regular camera and can be used as such in
practice, even if it's not technically one for some reason (which is why I
said "aoi-like").

G.


--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Marc Jacquier
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 11:24:47
Message: <3eccebbf@news.povray.org>

3eccdac9@news.povray.org...

> even if it's not technically one for some reason

is not"some reason" because slope vector is constant while aoi vector has
its origin at cam_pos?
Is not there a possibility to get a variable slope vector based on a
f(x,y,z) function?
Well I know I'm only asking questions because I have no answer :-)


 Marc


Post a reply to this message

From: Dennis Miller
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 12:40:38
Message: <3eccfd86$1@news.povray.org>
This is a beautiful effect. Can someone tell me how the slope feature is
working to create this? (I'll take the answer in Newusers if necessary).
Also, slope doesn't seem to work with image_maps... Are there other
limitations to its use with various types of pigments or would that be the
main one?
Thanks very much,
Dennis
"Gilles Tran" <tra### [at] inapginrafr> wrote in message
news:3eccc6d2$1@news.povray.org...

message
> de news:
> > Maybe a similar effect can be achieved with this pattern.
> Actually aoi-like images can be done with the slope pattern in regular
3.5:
>
> #include "functions.inc"
> #declare cam_location=-z*5;
> #declare cam_lookat=<0,0,0>;
> camera {location  cam_location look_at cam_lookat}
> isosurface{
>     function{f_sphere(x,y,z,1)-f_noise3d(x*2,y*2,z*2)*1}
>     contained_by{sphere{0,2}}
>     max_gradient 3.141
>     texture {
>         pigment {
>             slope {cam_lookat-cam_location,0.6}
>             color_map{[0 rgb z*2][1 rgbft 0]}
>         }
>         finish {ambient 1}
>     }
> }
>
> G.
>
>
> --
>
> **********************
> http://www.oyonale.com
> **********************
> - Graphic experiments
> - POV-Ray and Poser computer images
> - Posters
>
>


Post a reply to this message

From: Gilles Tran
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 14:19:58
Message: <3ecd14ce$1@news.povray.org>

3eccfd86$1@news.povray.org...
> This is a beautiful effect. Can someone tell me how the slope feature is
> working to create this? (I'll take the answer in Newusers if necessary).

Note: I didn't invent this technique, Kari Kivisalo did.
Slope at a given point uses the angle between the direction value and the
normal on the surface at that point In this case the direction value is the
camera_location->look_at vector. Points looking at the camera get a black
texture and points looking perpendicular at the camera (the ones on the
surface edge) get a blue one.
In fact the code I posted should be rewritten as follows to be more
consistent with the docs :
    texture {pigment {slope {cam_lookat-cam_location,0,0.6}
            color_map{[0 rgb 0][1 rgb z*2]}}
            finish {ambient 1}
    }

It's not a "true" aoi effect because a real one should use (I suppose) the
normal/camera->surface_point angle, not the normal/camera->look_at angle,
but the approximation works for artistic purpose. I could be mistaken
though.

> Also, slope doesn't seem to work with image_maps...

Hmm, slope works fine with image_maps. I guess that your problem is trying
to use a map_type 0 map on a very concave/convex object... map_type 0 image
maps only works well on relatively flat objects (such as terrains), whatever
the pattern. On other objects, the map needs to be a non-planar uv_map
(map_type 1 on a sphere etc., or uv_mapping) to get proper results.
In fact my most common use for the technique is to create for poser models
skin maps (uv) finishes having higher diffuse values at shallow angles.

> Are there other
> limitations to its use with various types of pigments or would that be the
> main one?

The main limitation is that it doesn't work with turbulence. A workaround
for this consists in putting slight variations of the slope map within a
pigment map controlled by a pigment pattern :
pigment{pigment_pattern{agate...}pigment_map{[0 slope...][0.5 slope...][1
slope...]}}

Slope isn't a easy pattern to figure out though.

G.


--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Dennis Miller
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 19:13:13
Message: <3ecd5989$1@news.povray.org>
Great explanation. Thanks very much. I will try my image map again.
Best,
Dennis

"Gilles Tran" <tra### [at] inapginrafr> wrote in message
news:3ecd14ce$1@news.povray.org...

> 3eccfd86$1@news.povray.org...
> > This is a beautiful effect. Can someone tell me how the slope feature is
> > working to create this? (I'll take the answer in Newusers if necessary).
>
> Note: I didn't invent this technique, Kari Kivisalo did.
> Slope at a given point uses the angle between the direction value and the
> normal on the surface at that point In this case the direction value is
the
> camera_location->look_at vector. Points looking at the camera get a black
> texture and points looking perpendicular at the camera (the ones on the
> surface edge) get a blue one.
> In fact the code I posted should be rewritten as follows to be more
> consistent with the docs :
>     texture {pigment {slope {cam_lookat-cam_location,0,0.6}
>             color_map{[0 rgb 0][1 rgb z*2]}}
>             finish {ambient 1}
>     }
>
> It's not a "true" aoi effect because a real one should use (I suppose) the
> normal/camera->surface_point angle, not the normal/camera->look_at angle,
> but the approximation works for artistic purpose. I could be mistaken
> though.
>
> > Also, slope doesn't seem to work with image_maps...
>
> Hmm, slope works fine with image_maps. I guess that your problem is trying
> to use a map_type 0 map on a very concave/convex object... map_type 0
image
> maps only works well on relatively flat objects (such as terrains),
whatever
> the pattern. On other objects, the map needs to be a non-planar uv_map
> (map_type 1 on a sphere etc., or uv_mapping) to get proper results.
> In fact my most common use for the technique is to create for poser models
> skin maps (uv) finishes having higher diffuse values at shallow angles.
>
> > Are there other
> > limitations to its use with various types of pigments or would that be
the
> > main one?
>
> The main limitation is that it doesn't work with turbulence. A workaround
> for this consists in putting slight variations of the slope map within a
> pigment map controlled by a pigment pattern :
> pigment{pigment_pattern{agate...}pigment_map{[0 slope...][0.5 slope...][1
> slope...]}}
>
> Slope isn't a easy pattern to figure out though.
>
> G.
>
>
> --
>
> **********************
> http://www.oyonale.com
> **********************
> - Graphic experiments
> - POV-Ray and Poser computer images
> - Posters
>
>


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 21:43:22
Message: <Xns938426C7CD75Atorolavkhotmailcom@204.213.191.226>
ABX <abx### [at] abxartpl> wrote in
news:jdqocvc40cvh7cb8dm3eu204tbel9m7hei@4ax.com: 

> On 21 May 2003 22:30:25 -0400, Tor Olav Kristensen
> <tor_olav_kCURLYAhotmail.com> wrote:
>> I guess you all must be tired of this shape now...
> 
> You..., you..., you damned math artists ;-)

Ditto!

;)


Tor Olav


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 21:49:38
Message: <Xns938427D7B8B06torolavkhotmailcom@204.213.191.226>
"Gilles Tran" <tra### [at] inapginrafr> wrote in
news:3eccc6d2$1@news.povray.org: 


> message de news:
>> Maybe a similar effect can be achieved with this pattern.
> Actually aoi-like images can be done with the slope pattern in regular
> 3.5: 
...

Thank you Gilles, but that is the technique I'm
already using for this image (and the last one I
posted).

The difference is that I'm adjusting the slope
direction vector for each triangle in the mesh,
in order to avoid the inaccuracies Rune refers
to.


Tor Olav


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 21:56:16
Message: <Xns938428F7DA169torolavkhotmailcom@204.213.191.226>
"Rune" <run### [at] runevisioncom> wrote in news:3eccd170$1@news.povray.org:

> Gilles Tran wrote:
>> Actually aoi-like images can be done with
>> the slope pattern in regular 3.5:
> 
> Only with an orthographic camera (or a camera with a very small angle).


Rune, I've just shown that it can be done accurately with meshes.

I'm quite sure that it can be done with isosurfaces too.
(And maybe with blobs as well.)


Tor Olav


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Glowing Tube - 1 attachment
Date: 22 May 2003 21:57:53
Message: <Xns9384293DE85D9torolavkhotmailcom@204.213.191.226>
Christoph Hormann <chr### [at] gmxde> wrote in 
news:3ECCCB62.CF5C99D5@gmx.de:

> Tor Olav Kristensen wrote:
>>...
>> Maybe a similar effect can be achieved with this pattern. But I wonder
>> if it will work for surfaces positioned "behind" a semitransparent
>> surface (like in my tube shape).
> 
> It will but i did not use transparency for my trees.  


Ok, then I'll try it.


Tor Olav


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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