- View New Content
- OpenPandora
- General Information
-
Emulation
- Acorn Archimedes
- Acorn BBC Micro
- Amstrad CPC
- Android
- Arcade Machines
- Atari Classic Computer
- Atari ST
- Atari VCS7800
- Commodore Amiga
- Commodore 64 (and more)
- HP-48GX Calculator
- Laser Disc Arcade
- MS-DOS
- NEC PC Engine / TurboGrafx 16
- Nintendo Entertainment System
- Nintendo GameBoy / GameBoy Color
- Super Nintendo
- Nintendo GameBoy Advance
- Nintendo DS
- Sega Master System / GameGear
- Sega Genesis / MegaDrive and AddOns
- Sega Saturn
- Sharp MZ-Series
- SNK NeoGeo Pocket
- Sony MSX
- Sony PlayStation 1
- Sony PSP
- Texas Instruments TI-99
- ZX Spectrum
- Community
- Development
- Contact us
- Donate
-
More
Has jwz solved the OpenGL problem?
Started by torpor, Jun 20 2012 08:36 AM
9 replies to this topic
#1
OFFLINE
Posted 20 June 2012 - 08:36 AM
Some exciting news - jwz ported xscreensaver to iOS:
http://www.jwz.org/b...-to-the-iphone/
He did it by implementing OpenGL 1.3 calls in OpenGLES1.1.
Does this mean we now have an easier solution for doing OpenGL conversions to Pandora? Who knows? I'm about to go download the code and have a look ..
What do you guys think?
http://www.jwz.org/b...-to-the-iphone/
He did it by implementing OpenGL 1.3 calls in OpenGLES1.1.
Does this mean we now have an easier solution for doing OpenGL conversions to Pandora? Who knows? I'm about to go download the code and have a look ..
What do you guys think?
#3
OFFLINE
Posted 20 June 2012 - 09:39 AM
I don't know enough about nanoGL to understand .. but just having the hundreds of GL XScreenSavers running on my iPad right now gives me a lot of hope that it can be useful in this context.
#5
OFFLINE
Posted 20 June 2012 - 11:10 AM
That sounds good!
Is it just a library you link against instead of libgl?
Is it just a library you link against instead of libgl?
#6
OFFLINE
Posted 20 June 2012 - 12:17 PM
This sounds cool. As to what is/isn't implemented, he says in the blog post:
He also says:
There are a few things I couldn't figure out how to implement:
- Sphere-mapped textures for environmental reflection: OpenGL ES doesn't have glTexGeni GL_SPHERE_MAP, and I don't know how to fake it, so the Flying Toasters aren't shiny.
- There's glTexImage1D and I'm not sure how to simulate that with glTexImage2D.
- There's no glPolygonMode with GL_LINE, so I don't see an easy way to implement wireframe objects with hidden surface removal. Maybe rendering them twice with glPolygonOffset?
- Several of the hacks used GLUtesselator to decompose complex shapes into triangles, and I didn't implement that. I could probably port the code from GLU, but it's a huge piece of code and sounds like a pain in the ass, so I punted.
He also says:
The code is in hacks/glx/jwzgles.c. If you want to use it to port your own legacy code, just include jwzgles.h. Let me know if it works!
#7
OFFLINE
Posted 20 June 2012 - 12:43 PM
interesting, I think the most useful part I think the calllists. Doing a opengl port of alpehone for example might be much easier now.
#8
OFFLINE
Posted 20 June 2012 - 01:39 PM
What problem exactly? All I see is rambling of API changes, and some wrapper code to port ancient software instead of moving on.Has jwz solved the OpenGL problem?
makepnd not war
#9
OFFLINE
Posted 20 June 2012 - 04:10 PM
I don't know enough about nanoGL to understand
Really all these wrappers do is track state changes (glEnable/Disable) and collect vertex info (glVertex) and issue the draw commands when needed.
For the most part its not a huge problem to convert it to ES API. In the end its just manipulation of the data and states.
But there are cases where things like call lists can be very intrusive it may not be worth the rewrite, or not the motivation. The one case I mentioned was alpehone, where i just went with the sw render since I didnt want to put in the effort of rewriting the call lists.
#10
OFFLINE
Posted 22 June 2012 - 07:46 AM
Cloudef: It could be either a) re-write OpenGL code to use GL ES architecture, or
Plug in jwz's shim code, and rewrite nothing in order to get it running.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



