how to create 3d picture from 2d picture by Opengl on delphi

Started by
3 comments, last by nipon 22 years, 7 months ago
i have a 2d picture on image control in form1 then, i would like to draw 3d picture on form2. i don''t know how to transform viewport from 2d picture on form1 to form2. In form2, i use opengl to plot 3d. viewport boundary not equal. boundary of 2d picture is image control bondary. how can i do? please help me. thanks you.
Advertisement
what exactly do u mean 3d picture? a 3d bitmap? what?
**> ATi Rules! nvidia doesn''t...that simple! <**
Suppose that

i have square picture in image control on form1

i would like to show this picture on form2

in form2 , i use opengl to show this picture in 3d
i may define z value for this picture such as z=1 for this picture

Suppose that

i have square picture in image control on form1

i would like to show this picture on form2

in form2 , i use opengl to show this picture in 3d
i may define z value for this picture such as z=1 for this picture

very easy..i do not know how to use the opengl functions in VB, but make a quad, load a texture, bind the texture, use the texture on the quad...(use the image data that in form1 for the texture)
should work
**> ATi Rules! nvidia doesn''t...that simple! <**

This topic is closed to new replies.

Advertisement