Quantcast

[Pipmak-Devel] A strange behaviour: visualization bug or what?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Pipmak-Devel] A strange behaviour: visualization bug or what?

aviare
Hi, Chris,

I continue to my esperiments using patch with 3D positioning,

I have tryed this simple code:

------------------------------------------------------------------------------------------------
cubic {
       "SkyBoxFront.jpg",
       "SkyBoxRight.jpg",
       "SkyBoxBack.jpg",
       "SkyBoxLeft.jpg",
       "SkyBoxTop.jpg",
       "white.png"
       }

p=patch {nw=1,nh=1,nx=0,ny=-0.5,nz=1,anglex=90,image="circle.png",anchorh=256,anchorv=256}      
p:setcolor(1,0,0)
p=patch {nw=1,nh=1,nx=0,ny=0.5,nz=1,anglex=90,image="circle.png",anchorh=256,anchorv=256}      
p:setcolor(0,0,1)
p=patch {nw=1,nh=1,nx=0,ny=0,nz=1,anglex=0,angley=0,image="white.png",anchorh=256,anchorv=256}      
p:setcolor(0,1,0)
-------------------------------------------------------------------------------------------------

And I have obtained the pictures that I have attached to this email (the second use angley=55)

Well, as you can see in the pictures, there are something wrong....
Why the rectangular patch (the third) doesn't cut circles exactly half? But it seems moved back?
 
Why the center of the circle isn't
at the same level of maximum extension of the circle?

Bye,

Andrea





cilinder1.jpg (83K) Download Attachment
cilinder2.jpg (95K) Download Attachment
Let's save the little pipmak from the forgotten land!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Pipmak-Devel] A strange behaviour: visualization bug or what?

aviare
The attached picture is shown what I would have expected ....

Obtained moving the third patch forward:

------------------------------------
.....
p=patch {nw=0.88,nh=1,nx=0,ny=0,nz=0.75,anglex=0,angley=0,image="white.png",anchorh=256,anchorv=256}   
....
------------------------------------

-Andrea






cilinder3.jpg (32K) Download Attachment
Let's save the little pipmak from the forgotten land!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Pipmak-Devel] A strange behaviour: visualization bug or what?

cwalther
Administrator
Andrea Viarengo wrote:
> Why the rectangular patch (the third) doesn't cut circles exactly half? But it seems moved back?

Let me guess: The rectangle does cut the circles in half. But you're
using an extremely large field of view and therefore have lots of
perspective distortion.

Try placing your eye so close to the screen that you actually see it
under the field of view that you've set the camera to, and you'll see
that the cylinder looks perfectly normal.

Or try zooming in the camera as far as it will go (5 degrees) and move
the scene farther away in the y direction so you still see all of it.

> The attached picture is shown what I would have expected ....

You'd expect that with an orthographic camera, or in the limit of FOV ->
0 for a perspective camera.

  -Christian



Loading...