Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to make a left-right format 3D program?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 kgs   Members   

205
Like
0Likes
Like

Posted 13 October 2012 - 01:06 AM

I am making a program with left-right 3d format using Direct3D9.
I set up two camera represent human eyes.
And I want to cut half pixie in one scene.
just like this
Posted Image
So how can I make this?

Edited by kgs, 13 October 2012 - 01:07 AM.

My english is very poor!

#2 Hodgman   Moderators   

50655
Like
1Likes
Like

Posted 13 October 2012 - 02:57 AM

One method would be to set a viewport that covers the left half, render the 1st image, then set a viewport that covers the right half, and render the 2nd image.

#3 kgs   Members   

205
Like
0Likes
Like

Posted 13 October 2012 - 06:10 AM

One method would be to set a viewport that covers the left half, render the 1st image, then set a viewport that covers the right half, and render the 2nd image.

Thank you!!This method works and it's very simple!
And my next step is to write a program with Interlaced format 3D!
Do you have any idea about how to do with it?
My english is very poor!

#4 Hodgman   Moderators   

50655
Like
1Likes
Like

Posted 13 October 2012 - 07:12 AM

How familiar with HLSL/shaders are you?

Personally, I would render the left/right images to 2 different render-targets. Then I would use a pixel shader that checks the current pixel's position, and then samples either the left/right texture depending on if the position is odd/even.

#5 Jason Z   Members   

6430
Like
1Likes
Like

Posted 13 October 2012 - 10:45 AM

If I recall correctly, there was an article on interlaced rendering in one of the original ShaderX books, which I think are available online for free. Try searching around for it - the technology may be outdated, but the theory should be more or less the same (interlaced video has been around since TV broadcasts started...).




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.