Crosspost:ofxMSAPhysics/Shape3D - compatible with OpenGL ES?

Hi,

I posted http://forum.openframeworks.cc/t/ofxmsaspline-and-iphone/3767/2 are the latest versions…

Thanks for any help you can offer!

Bump - any advice here appreciated!

Hi, I was just about to ask the same questions, but didnt want to make another post about the same issues

Any help will be much appreciated

Cheers
rS

I’m sure you’ve dug this up from Google but OpenGL ES 1.0 supports neither QUADS nor OpenGL’s retained mode, i.e. glBegin, glEnd you can’t use them for iPhone development.

Dave

Cheers, yes, I think that’s clear now.

My question is moreover, are there OpenGL ES converted OF 3D examples already available, as that Memo quote seems to suggest? The ones I have downloaded are for OpenGL and not ES.

[quote author=“Gwydion”]Cheers, yes, I think that’s clear now.

My question is moreover, are there OpenGL ES converted OF 3D examples already available, as that Memo quote seems to suggest? The ones I have downloaded are for OpenGL and not ES.[/quote]

Yes. Try these for a starting point, the first one as a guide to converting stuff the second one
links some of the nehe tutorials converted to ES. The third is a link to a list of links.

http://www.idevgames.com/forum/showthread.php?t=15876
http://maniacdev.com/?s=nehe&search=Search
http://maniacdev.com/2009/09/the-catego-…-ollection/

Alternatively, ofxMSAShape3D is designed to fake retained mode.
I had a quick look at the source at… http://code.google.com/p/ofxmsaof/sourc-…-AShape3D.h
… and it looks like the version in has a small ‘feature’ in the there the define needed to switch between using retained and immediate mode is commented out.

  
//#define USE_IMMEDIATE_MODE  
  

uncomment that and ofxMSAShape3D should work on the iphone again :slight_smile:

Dave

Thanks! I’ll check that all out and let you know how I get on - thanks for your help!

I’ve had a play now using the iphone SDK, and I got my last bit of help wrong, that define needs to be commented out. The version of ofxMSAShape3D I linked to works straight of of the box, so to speak.

ofxMSAPhysics also looks like it’ll work out of the box, but the example code will not. It uses retained mode to draw wall of gl_quads and a couple of glut functions to create cubes and spheres. If you comment those out so the physics simulation would run without displaying anything the project compiles successfully and runs.

Dave