Andrea Viarengo
2008-02-27 14:00:23 UTC
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
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