x


Custom Projection Matrices won't work with RenderTexture?

Hi everyone,

I'm trying to create a 3D anaglyph camera with an off-axis projection matrix. However, when I try to do them at the same time, it just renders a black screen. Interestingly, when I comment out these lines:

leftEye.camera.targetTexture = leftEyeRT;
rightEye.camera.targetTexture = rightEyeRT;

...the projection matrix starts working with NO anaglyph rendering. Similarly, if I comment out these lines instead:

leftEye.camera.projectionMatrix = myMatrix();
rightEye.camera.projectionMatrix = myMatrix();

...then I get anaglyph rendering with NO off-axis projection. So, it seems pretty clear that these two are interfering with each other in a big way. Does anyone have any ideas on how to fix this??

more ▼

asked Aug 13 '10 at 06:55 PM

dhturpin gravatar image

dhturpin
2 2 2 4

Does anybody have any ideas? Why can't I render an off-axis camera to a texture?

Aug 14 '10 at 06:59 PM dhturpin
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x454
x194
x5
x4
x3

asked: Aug 13 '10 at 06:55 PM

Seen: 1042 times

Last Updated: Aug 13 '10 at 11:03 PM