Rendering a 3D Picture
Hello members,
I''ve got a rectangular image that I want to display on the screen. For every pixel I''ve got the color information + a Z coordinate. How would you transfer this "3D image" to opengl as fast as possible.
The image doesn''t need to be scaled or something like that, every screen pixel is also a pixel from my image.
Lyve
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
The best method of writing the z data from a image to the z-buffer would be trough pixelshaders.
---------------------------------
For an overdose of l33tness, flashbang.nu
[edited by - lc_overlord on February 26, 2004 12:59:46 PM]
---------------------------------
For an overdose of l33tness, flashbang.nu
[edited by - lc_overlord on February 26, 2004 12:59:46 PM]
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement