The Artima Developer Community
Sponsored Link

Agile Buzz Forum
OpenGL inside OpenGL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
OpenGL inside OpenGL Posted: Apr 9, 2008 9:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: OpenGL inside OpenGL
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

I jokingly said to my friend James Todd that it'd be cool to show FreqWars playing by itself mapped on to the surface of a sphere that's rotating as the background to the title screen of my game FreqWars.

Unfortunately, this seemed like a rather ambitious goal because it would have required me implementing pbuffers. Now, being the conscious Smalltalker that I am, if I'm going to make it work on one platform, I'd want it to work on all platforms.. so I'd have to do native pbuffers on each and every platform. Ouch, what a pain.

OpenGL to the rescue. It turns out there's a GPU command you can use to copy the screen in to a texture.. thus allowing you to render a scene on to a texture, then render a scene on to the screen using that texture. So I've just finisihed a new example called RenderOntoTexture which does just that.

The below movie is difficult to grok - so here's what you're seeing. There is a six sided cube, rotating around on the screen. Each side of the cube maps a texture that is a four sided pyramid. The four sided pyramid is rotating too. Complex, I know.. but the result is significant and meaningful.

OpenGL-20080409-RenderOntoTexture.mov

Read: OpenGL inside OpenGL

Topic: Changing of the Guard? Previous Topic   Next Topic Topic: Why Would I Buy That From You?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use