NVIDIA 3D 3D display

Source: Internet
Author: User

Based on direct3d 9

1. First, learn how to use d3d 9 to draw basic elements, such as an image.

Reference http://blog.csdn.net/zhmxy555/article/details/8223965

Direct3d renders the five steps. You only need to use the stretchrect function to copy the image memory to gbackbuf in the formal drawing to display the right image.

 

2. NVIDIA 3D 3D display principle

Reference http://www.klayge.org/2010/11/21/%E5%9C%A8%E7%A8%8B%E5%BA%8F%E4%B8%AD%E4%BD%BF%E7%94%A8nv-3d-vision/

  1. Place the left and right eye images into a large texture. The width of the large texture is w x 2, and the height is H + 1 (W and H are the width and height of the original image respectively ). The left eye is on the left, and the right eye is on the right.
  2. Add a special flag to the last line of a large texture (this is the key ).
  3. Use stretchrect to merge large textures into the back buffer.
  4. When the back buffer is displayed, It is three-dimensional.

In fact, it is no different from displaying a normal image in 1, but we need to add a flag to the last line of the image to tell nvidia that this is 3D display. (Use Ctrl + T to switch to 3D display mode when displaying the image)

If no logo is added, the normal left and right images are displayed.

A post: http://www.mtbs3d.com/phpBB/viewtopic.php? F = 105 & t = 5072 & SID = 7270d0dc496ee2cb25315259eb50776b

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.