- Home /
Camera Movement and angles
ok, so this is a really hard problem I don't know if anyone can help me or even if its possible but maybe just maybe someone here is uber-smart.
I'm trying to recreate the 3d monitor from johnny Lee's Wii demo.
I'm wondering if it's even possible. essentially I need to make my monitor act as a window. not just a camera. that's it.
A camera can rotate left and right but as you can see in the video I need part of the screen to remain connected to the edge of the view. I honestly have no idea where to start. please help me!
what do you mean? I'm so sorry I'm really not very knowledgeable about all this
Never$$anonymous$$d. On second thought, I don't know if that's what you want. Sorry for the confusion.
Answer by StephanK · Jul 29, 2010 at 09:59 PM
What you need to do is calculate an asymetric view frustum that changes with your position. This is not trivial, but I can really recommend this book http://www.amazon.com/Spatial-Augmented-Reality-Merging-Virtual/dp/1568812302 , it has a whole chapter on different projection matrices, which is essentially what you need to achieve this effect.
thanks so much but I wonder if it can even be done with Unity 3D - can I change those $$anonymous$$atrices with scripting in unity?
Yes you can. You can change a camera's projection matrix via scripting. In theory you should also be able to do this using fragment shaders, but I am no good at writing shader code, so this is more of an educated guess. ;)
thanks spree, can you perhaps point me in a direction of where I can figure out how to script the camera thusly? I mean I know about the book, but I'm assu$$anonymous$$g I'd have to have some specific knowledge to the unity camera object to be able to code it in unity.
Yes, read the manual... ;) Seriously, this is the reference page you want to look at: http://unity3d.com/support/documentation/ScriptReference/Camera-projection$$anonymous$$atrix.html
Answer by jooki-2 · Feb 12, 2011 at 01:48 PM
hey, did you get along with this problem? it's exactly the point i'm concerning about now.
my final project at design studies is about about to deal with the giant multitouchtable they got at my institute, on which i want to put 3d modells on. I want to achieve kind of a holohraphic illusion, that they are really standing on the surface of the table. by the help of faceapi for face viewer tracking... it's hard for me because i'm a graphicdesigner dummy to any code.