x


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.

skip to the end

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!

more ▼

asked Jul 29 '10 at 08:21 PM

Jordan Miller 2 gravatar image

Jordan Miller 2
348 47 51 57

Sounds like you might need an image in the GUI.

Jul 29 '10 at 08:30 PM e.bonneville

what do you mean? I'm so sorry I'm really not very knowledgeable about all this

Jul 29 '10 at 08:32 PM Jordan Miller 2

Nevermind. On second thought, I don't know if that's what you want. Sorry for the confusion.

Jul 29 '10 at 11:37 PM e.bonneville
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Jul 29 '10 at 09:59 PM

StephanK gravatar image

StephanK
6k 39 53 93

thanks so much but I wonder if it can even be done with Unity 3D - can I change those Matrices with scripting in unity?

Jul 29 '10 at 10:34 PM Jordan Miller 2

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. ;)

Jul 30 '10 at 09:57 AM StephanK

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 assuming I'd have to have some specific knowledge to the unity camera object to be able to code it in unity.

Jul 30 '10 at 01:30 PM Jordan Miller 2

Yes, read the manual... ;) Seriously, this is the reference page you want to look at: http://unity3d.com/support/documentation/ScriptReference/Camera-projectionMatrix.html

Jul 30 '10 at 01:45 PM StephanK

you've made me a very happy man. :)

Jul 30 '10 at 01:51 PM Jordan Miller 2
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Feb 12 '11 at 01:48 PM

jooki gravatar image

jooki
1 3 3 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3344
x3015
x1374
x454
x55

asked: Jul 29 '10 at 08:21 PM

Seen: 3052 times

Last Updated: Jul 29 '10 at 08:21 PM