POV-Ray : Newsgroups : povray.binaries.images : Proof of concept: Edge detector (as pattern), sort of Server Time
13 Nov 2024 01:48:10 EST (-0500)
  Proof of concept: Edge detector (as pattern), sort of (Message 1 to 6 of 6)  
From: Le Forgeron
Subject: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 07:15:25
Message: <4d809bcd@news.povray.org>
Edge detector (as pattern), sort of.

Just a quick (and bad) test, 100% SDL, 100% CSG.

Ambient & Diffuse : <1,0>,<1/2,1/2>,<0,1>

I do not like:
 - it's not a map (and a map cannot be used)
 - the distribution in space (crude square/line are visible)
 - it uses a lot of objects, hence memory!
 - the sampling is limited at 256 entries... here with 125.

How ? so far just with average pattern and many object patterns (with a
bit of translate).





-- 
Software is like dirt - it costs time and money to change it and move it
around.

Just because you can't see it, it doesn't weigh anything,
and you can't drill a hole in it and stick a rivet into it doesn't mean
it's free.


Post a reply to this message


Attachments:
Download 'proximity0.png' (213 KB) Download 'proximity1.png' (218 KB) Download 'proximity2.png' (214 KB)

Preview of image 'proximity0.png'
proximity0.png

Preview of image 'proximity1.png'
proximity1.png

Preview of image 'proximity2.png'
proximity2.png


 

From: Trevor G Quayle
Subject: Re: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 10:25:01
Message: <web.4d80c7a8471774c081c811d20@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Edge detector (as pattern), sort of.
>
> Just a quick (and bad) test, 100% SDL, 100% CSG.
>
> Ambient & Diffuse : <1,0>,<1/2,1/2>,<0,1>
>
> I do not like:
>  - it's not a map (and a map cannot be used)
>  - the distribution in space (crude square/line are visible)
>  - it uses a lot of objects, hence memory!
>  - the sampling is limited at 256 entries... here with 125.
>
> How ? so far just with average pattern and many object patterns (with a
> bit of translate).
>
>
>
>
>
> --
> Software is like dirt - it costs time and money to change it and move it
> around.
>
> Just because you can't see it, it doesn't weigh anything,
> and you can't drill a hole in it and stick a rivet into it doesn't mean
> it's free.

Looks alright.  I does look like you have some coincident surface at some faces.
Rather than applying the averaged object pattern directly, maybe trun it into a
function first, then you could maybe work on some interpolation that would help
smooth the blockiness.

-tgq


Post a reply to this message

From: Le Forgeron
Subject: Re: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 11:22:30
Message: <4d80d5b6$1@news.povray.org>
Le 16/03/2011 15:22, Trevor G Quayle a écrit :
>  I does look like you have some coincident surface at some faces.

where ?
I failed to spot that.
Could you provide some indication ? (if on front-face, you might provide
the ring number and the hour)


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 11:50:01
Message: <web.4d80dbca471774c081c811d20@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Le 16/03/2011 15:22, Trevor G Quayle a écrit :
> >  I does look like you have some coincident surface at some faces.
>
> where ?
> I failed to spot that.
> Could you provide some indication ? (if on front-face, you might provide
> the ring number and the hour)

I have circled some of the incidences in the pic attached.  Perhaps they are not
conicident surfaces but some other artifact.

-tgq


Post a reply to this message


Attachments:
Download 'proximity0.png' (197 KB)

Preview of image 'proximity0.png'
proximity0.png


 

From: Le Forgeron
Subject: Re: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 18:18:49
Message: <4d813749@news.povray.org>
Le 16/03/2011 16:48, Trevor G Quayle nous fit lire :
> Le_Forgeron <lef### [at] freefr> wrote:
>> Le 16/03/2011 15:22, Trevor G Quayle a écrit :
>>>  I does look like you have some coincident surface at some faces.
>>
>> where ?
>> I failed to spot that.
>> Could you provide some indication ? (if on front-face, you might provide
>> the ring number and the hour)
> 
> I have circled some of the incidences in the pic attached.  Perhaps they are not
> conicident surfaces but some other artifact.
> 
Indeed, there was only one CSG-component there. I did say I did not like
the space distribution.

Here attached a test with an implementation which allow a map. (but
that's not SDL anymore). The object is sampled around the intersection
point in a sphere whose relative radius to the radius of the big sphere
(there is 3 of them) is the printed number.

Top object is the normal object with uniform texture.
The map is display around it with a gradient.


Post a reply to this message


Attachments:
Download 'pp.jpg' (167 KB)

Preview of image 'pp.jpg'
pp.jpg


 

From: Trevor G Quayle
Subject: Re: Proof of concept: Edge detector (as pattern), sort of
Date: 16 Mar 2011 18:40:01
Message: <web.4d813ba6471774c0b05ef170@news.povray.org>
> Indeed, there was only one CSG-component there. I did say I did not like
> the space distribution.
>

It is possible to get coincident surfaces from a pattern that has a sharp
transition that coincides with an object surface as well, not just two objects.
I noted it as possible coincident surface because it is only apparent on flat
surfaces.

-tgq


Post a reply to this message

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