PDA

View Full Version : Complete window view on 1 size of a square



DeXtr0
09-08-2004, 09:05 PM
Hi everybody,

When I was looking around the net for some neat effects in opengl I found somebody who managed to put his whole window (what he coded: cubes, scrollers etc.. ) onto the 6 sites of a cube which rotated also on that window.

Is this hard to do ?
Can somebody explain me how it works ?

Thanks,
DeXtr0

mikael_aronsson
09-08-2004, 10:50 PM
Texture mapping

http://www.google.se/search?hl=sv&ie=UTF-8&q=%22texture+mapping%22+opengl&meta=

If you want to fetch to desktop while running you need to use some OS specifiec function to get it, on windows this is pretty simple using the desktop window handle.

Mikael

09-09-2004, 12:11 AM
@Dextro

Its called render-to-texture. Fist you render your scene to a texture and then you render a cube with said texture. If you do a search for "render to texture" you should find all the info you need.

DeXtr0
09-09-2004, 05:04 AM
Thanks guys,

I did not even knew how this was called :)

Appreciated I'll give it a go.

Regards,
DeXtr0