About GL_SELECT and GL_FEEDBACK

View previous topic View next topic Go down

About GL_SELECT and GL_FEEDBACK

Post  exavi on Thu Feb 19, 2009 5:31 am

Hi! I am about to finish my first project with SIO2 and I am doing some research for some sort of a "tech demo" that I would like to do for the iPhone.

The thing is that for this guessed tech demo I would need GL_FEEDBACK,glFeedbackBuffer and so on for doing some stuff, but OpenGL|ES 1.1 does not support it.

I have seen that you have included some picking code inside sio2, I didn't go trough the entire code on picking, but do you think that is possible for the device to add these features? I mean if I could just copy the code from opengl into my sources and use it even if its not included into OGLES1.1, if that's possible at all...

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: About GL_SELECT and GL_FEEDBACK

Post  sio2interactive on Thu Feb 19, 2009 3:25 pm

The picking in SIO2 is done using the color picking method... pretty much the fastest way to pick something on the device and precise at the pixel... What exactly to you want to do that would require you to use GL_SELECT or GL_FEEDBACK???

Cheers,
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: About GL_SELECT and GL_FEEDBACK

Post  exavi on Thu Feb 19, 2009 3:51 pm

I started to write a while back a small modeling program just with a couple of basic features. I was thinking about continuing it and the combination of glUnproject+glReadPixels just does not work for picking vertexes (or trying it)

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: About GL_SELECT and GL_FEEDBACK

Post  sio2interactive on Thu Feb 19, 2009 4:26 pm

I really don't see why glReadPixels would not work... just render the vertices as points using sio2SetColorIndex to generate a unique color based on the index...
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: About GL_SELECT and GL_FEEDBACK

Post  exavi on Fri Feb 20, 2009 4:07 am

thanks! I will give it a try Wink

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: About GL_SELECT and GL_FEEDBACK

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum