POV-Ray : Newsgroups : povray.binaries.images : SISRay Server Time
13 Aug 2024 17:21:58 EDT (-0400)
  SISRay (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Batronyx
Subject: SISRay
Date: 1 Feb 2003 21:43:36
Message: <3e3c85d8@news.povray.org>
This is an idea I've been working on ( off and on ) since September 2001.
It's a single image stereogram done with a pigment function. The formulas are
derived from the SISgen technical page:
    http://www.techmind.org/stereo/stech.html
by W.A. Steer, Ph.D..

This image came out ok, but I've discovered other depthmaps haven't worked out
so well. The problem seems to be in using the full 0-1 range of the grayscale
image. It causes the perspective to be overly exaggerated and where the white
parts compress so much it throws you out of the image. I've just about worked
out how to compensate for it, but it introduces another problem in the middle
where the function changes directions. I haven't figured out where to adjust for
that yet. I'll post the code to p.b.s.f if anyone's interested. I'm sure it
could use many other optimizations as well.

A couple of interesting points about it as is now though. You can choose to
render at any arbitrary render size and it will maintain a constant eye
separation. Also, with one tiny change you can make cross-eyed versions! I've
never seen those before done in this style. I'll post an example as a reply here
and a small version of the depthmap used for those who have trouble making these
things out.
--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)          // Batronyx ^"^


Post a reply to this message


Attachments:
Download 'SIS800x600CenterTest.jpg' (190 KB)

Preview of image 'SIS800x600CenterTest.jpg'
SIS800x600CenterTest.jpg


 

From: Batronyx
Subject: Re: SISRay (Cross-eyed)
Date: 1 Feb 2003 21:47:18
Message: <3e3c86b6@news.povray.org>
Here's the cross-eyed version. It has some depth-issues that make it kind of
hard to maintain focus, but it essentially works. When I get that one bug
figured out it shouldn't be too hard to compensate for this as well. . .
hopefully. :)

--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)          // Batronyx ^"^


Post a reply to this message


Attachments:
Download 'SIS800x600CenterTestCrossEye.jpg' (190 KB)

Preview of image 'SIS800x600CenterTestCrossEye.jpg'
SIS800x600CenterTestCrossEye.jpg


 

From: Batronyx
Subject: Re: SISRay (Depthmap)
Date: 1 Feb 2003 21:49:58
Message: <3e3c8756$1@news.povray.org>
Here is the depthmap used for both of these.
--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)          // Batronyx ^"^


Post a reply to this message


Attachments:
Download 'SISTestIMG.jpg' (6 KB)

Preview of image 'SISTestIMG.jpg'
SISTestIMG.jpg


 

From: Rafal 'Raf256' Maj
Subject: Re: SISRay
Date: 1 Feb 2003 22:26:51
Message: <Xns93162D566857Fraf256com@204.213.191.226>
"Batronyx" <bat### [at] alliancecablenet> wrote in
news:3e3c85d8@news.povray.org 

> This is an idea I've been working on ( off and on ) since September
> 2001. It's a single image stereogram done with a pigment function. The
> formulas are derived from the SISgen technical page:
>     http://www.techmind.org/stereo/stech.html

Wow, beautifull :)

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: SISRay (Depthmap)
Date: 1 Feb 2003 22:30:04
Message: <Xns93162DE213D04raf256com@204.213.191.226>
"Batronyx" <bat### [at] alliancecablenet> wrote in
news:3e3c8756$1@news.povray.org 

> Here is the depthmap used for both of these.

Hmm but on niether image I didn't saw that right cone, only left one, and 
sphere :-/



-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Slime
Subject: Re: SISRay (Depthmap)
Date: 1 Feb 2003 22:45:03
Message: <3e3c943f$1@news.povray.org>
> Hmm but on niether image I didn't saw that right cone, only left one, and
> sphere :-/

I think it was just you, I saw it all fine =)

Although, I think the depth map needs to be compressed so that we get more
depth information about the objects. They seemed very flat to me.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: SISRay (Depthmap)
Date: 1 Feb 2003 23:15:11
Message: <Xns93163588771E5raf256com@204.213.191.226>
"Slime" <slm### [at] slimelandcom> wrote in news:3e3c943f$1@news.povray.org

>> Hmm but on niether image I didn't saw that right cone, only left one,
>> and sphere :-/
> I think it was just you, I saw it all fine =)
> Although, I think the depth map needs to be compressed so that we get
> more depth information about the objects. They seemed very flat to me.

I agree, and maybe problem iwth 3-rd object (right one) was that it is too 
big (especialy on my 19") - I would try decreasing it's height


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Greg Edwards
Subject: Re: SISRay (Depthmap)
Date: 2 Feb 2003 01:00:45
Message: <1pkm2egyle5l4$.2w7y3dmtxjsr$.dlg@40tude.net>
I think that maybe increasing the seperation for each pattern repeat might 
make viewing it easier. This might mean increasing the max depth?


Post a reply to this message

From: Hugo Asm
Subject: Re: SISRay (Cross-eyed)
Date: 2 Feb 2003 09:12:13
Message: <3e3d273d@news.povray.org>
I couldn't see anything really.
And I know the trick. I guess I am 'too' sober.  ;o)

Regards,
Hugo


Post a reply to this message

From: Batronyx
Subject: Re: SISRay (Cross-eyed)
Date: 2 Feb 2003 10:21:15
Message: <3e3d376b$1@news.povray.org>
Like I said, this one has some depth issues that make it hard to maintain focus.
It's easier if you try to 'get' the focus by looking at the bottom of the image
where the pattern is wider. If you can't do it don't worry about it. This
particular render was a happy accident. Once I get a bug or two worked out I'll
post some better ones.

"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3e3d273d@news.povray.org...
> I couldn't see anything really.
> And I know the trick. I guess I am 'too' sober.  ;o)
>
> Regards,
> Hugo
>
>


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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