Prey portals like
This is my portal that uses no shaders:
Video:
http://www.sendspace.com/file/z6r213
The vertical reaction of my portal is not done yet, but that's not the problem.
The problem is that, when i get near the portal, it rotates at the same scale like if i were far away from it.
Another problem is that, if i see the portal from one of its sides, the view is distorced by the perspective, and the same happens when i get close to him, the 3D illusion is lost.
I need some help doing this math logic, since i'm only 17 years old and i dont have all the math bases needed
Video:
http://www.sendspace.com/file/z6r213
The vertical reaction of my portal is not done yet, but that's not the problem.
The problem is that, when i get near the portal, it rotates at the same scale like if i were far away from it.
Another problem is that, if i see the portal from one of its sides, the view is distorced by the perspective, and the same happens when i get close to him, the 3D illusion is lost.
I need some help doing this math logic, since i'm only 17 years old and i dont have all the math bases needed
I'm 14 (...ish) and I figured it out - age doesn't matter.izek wrote:This is my portal that uses no shaders:
Video:
http://www.sendspace.com/file/z6r213
The vertical reaction of my portal is not done yet, but that's not the problem.
The problem is that, when i get near the portal, it rotates at the same scale like if i were far away from it.
Another problem is that, if i see the portal from one of its sides, the view is distorced by the perspective, and the same happens when i get close to him, the 3D illusion is lost.
I need some help doing this math logic, since i'm only 17 years old and i dont have all the math bases needed
A = transformation matrix of portal A
B = transformation matrix of portal B
C = transformation matrix of camera
R = relative transformation
AR = C
R = A^(-1)C
C' = new transformation matrix of camera
C' = BR
C' = BA^(-1)C
Rotate portal B by 180 degrees before constructing it's transformation matrix. Now map out the polygon - either copy or texture, your choice.
-
- Posts: 299
- Joined: Mon Nov 27, 2006 6:52 pm
- Location: GERMANY
- Contact:
-
- Posts: 299
- Joined: Mon Nov 27, 2006 6:52 pm
- Location: GERMANY
- Contact:
I have a question regarding this. If there are 2 people at the different side of the portal and one trying to shoot another. Since the portal is just like a billboard, will the bullet hit the guy? How about if he move.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info