Howto create a real 3d game, stereo. (not 3d graphics, but 3d screen)
I need your help. Is it possible to write a game in 3d on a canvas? If so, how. Maybe a small example of 2 blocks?
** With 3d I don't mean 3d graphics in开发者_如何学Python OpenGL, or on canvas while you use your brain to apply vector calculus to project the 3d graphics on a 2d screen. I mean program for LG Op3d/HTC Evo 3d!
Thanks in advance
There is a link to download HTC stereoscopic API at: http://htcdev.com/devcenter/opensense-sdk
For the HTC Evo 3D go to HTC developer website htcdev.com There you can download the OpenSense SDK which contains the S3D API and sample code for S3D rendering (Stereoscopic 3D rendering).
You have to render the scene twice which gives you more control on the S3D effect on the one hand, but on the other hand you have to choose your camera view's carefully.
(With other hardware accessories, like nVIDIA's 3d vision, a 3D scene is rendered twice by the driver, no options to change the views of the two cameras from the programmer's point of view).
Nvidia seems to have a driver or library that automatically converts a conventional 3D game to the 3D stereo game. http://www.nvidia.com/object/product-geforce-3d-vision-wired-glasses-us.html
I guess if you want to do it yourself, you just need to render the same scene twice with slightly shifted camera. and somehow you combine the two rendered result together, you will make your game real 3D.
Short answer: link.
More elaborate answer:
Many 3D TVs have accept multiple types of input to render 3D, most notably - side by side.
If you are interested in getting a quick start at producing a 3D game (or just a 3D scene), you could use a graphics engine (such as jMonkeyEngine), create 2 view ports side by side, and render your scene in each of the view ports from separate camera angles. If you connect your 3D TV and set its 3D mode to side by side - you will see the scene in 3D.
HTC has an sdk for the use in thair HTC EVO 3d MPhone.
精彩评论