Crystal Space
Welcome, Guest. Please login or register.
October 02, 2014, 05:33:01 am

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8570 Members
Latest Member: Msroyscarl03
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Orthographic Projection Matrix
« previous next »
Pages: [1] Print
Author Topic: Orthographic Projection Matrix  (Read 2754 times)
yoshi
Newbie
*
Posts: 40


View Profile WWW
« on: June 24, 2006, 04:38:26 am »

How can I get an orthographic projection matrix with which to set the camera transform?

I've looked up how this matrix works in directx and OGL but I am confused as to how this translates into CS.

Thanks.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: June 24, 2006, 06:43:39 am »

Can you tell me what you want to do exactly?

Greetings,
Logged
yoshi
Newbie
*
Posts: 40


View Profile WWW
« Reply #2 on: June 24, 2006, 06:53:16 am »

I am looking to render quads (used for a GUI) orthographically into the view after drawing the 3d, non-GUI scene.  I want to do this to avoid perspective distortion and to preserve the fidelity of the GUI textures.

Basically, I haven't been able to successfully set the camera transform to do an orthographic projection.  In DX there was a function to set one up in D3Dx, and in OGL there are functions to set a 2d orthographic matrix as the projection matrix.  I'm pretty much looking to see if I'm overlooking some peculiarity of CS or a much easier way to achieve this effect in CS.

Thanks very much.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: June 24, 2006, 06:56:52 am »

Ah but I 'm afraid CS camera system can't really do ortographic projection. But you can also render quads directly in screen space.

Greetings,
Logged
yoshi
Newbie
*
Posts: 40


View Profile WWW
« Reply #4 on: June 24, 2006, 07:24:04 am »

I'm not sure I quite understand what you mean by rendering quads in screen space.? How exactly is this done?
Logged
yoshi
Newbie
*
Posts: 40


View Profile WWW
« Reply #5 on: June 24, 2006, 11:55:38 pm »

Nevermind, I think I figured it out.  Thanks.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.195 seconds with 15 queries.