It is currently Wed Jun 19, 2013 10:12 pm



Reply to topic  [ 5 posts ] 
 after get nVIDIA 3D Vision Kit,how to write a 3d vision game 
Author Message
One Eyed Hopeful

Joined: Sat Jul 17, 2010 10:59 pm
Posts: 6
Does sombody know how to write a 3D vision game?
If I buy the 3D Vision Kit ,120Hz LCD and Geforce 8800 graphics card, and then how do I write a 3d vision game(3D Vision Kit)?
In DirectX, how do I modify the projection matrix or view matrix or else?

Another qiestion! How do I write a 3D Vision Discover Game ((red/cyan) glasses )? Should I render the scene 3 times with differential offsets and bias colors(red/original/green)? How do I caluclate the offsets and bias colors?


Sat Jul 17, 2010 11:15 pm
Profile
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 4:23 pm
Posts: 160
Location: Montréal, Canada
Hi akira32,

I think this thread should tell you everything you need to know for the 3DVision side.

In DirectX, you can create the appropriate projections using D3DXMatrixPerspectiveOffCenterLH. The equations I use for camera spacing and projection offset are jotted down in this post.

Have fun!
phil


Sun Jul 18, 2010 6:36 am
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 4:23 pm
Posts: 160
Location: Montréal, Canada
The easiest way to render anaglyph in DirectX is to use the D3DRS_COLORWRITEENABLE renderstate, which controls which colour channels of the backbuffer you'll write to (the remaining channels are left unchanged).

So for red-cyan anaglyph, you might do something like this:
Code:
// only write to the backbuffer's red channel
DEVICE->SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_RED);

// (draw left view here)

// only write to the backbuffer's green and blue channels
DEVICE->SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_GREEN|D3DCOLORWRITEENABLE_BLUE);

// (draw right view here)


Sun Jul 18, 2010 6:46 am
Profile WWW
One Eyed Hopeful

Joined: Fri Jun 20, 2008 9:09 am
Posts: 21
I want to use Unity 3D for game development, can you implement your code in Unity 3D?
Demo version of unity3D is available on there site.
thanks
rahu


Mon Jul 19, 2010 12:13 am
Profile
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 4:23 pm
Posts: 160
Location: Montréal, Canada
Hmm sorry, I don't know, I've never tried Unity. I wouldn't imagine it gives you much control over the rendering, but I could be wrong.

I think yuriythebest used Unity for Neil's 3D Adventure, so he might know.


Mon Jul 19, 2010 1:34 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.