Hello, your attached patch doesn't crash pd, it just seems to work even if I don't know yet what to do with it, because I would like to open an image file for texturing the openGL geos.
I might have been confused during all the tests I've done because [GEMglLoadName] doesn't crash.
I also believed that glLoadName could solve this image loading for glBindTexture problem, but apparently it's related to something else.
[GEMglGenTexture] crashes after object creation with the patch I have attached (I've added a "_" to not crash).
Without having any GEM documentation for openGL huge set of functions, it's very difficult to find out how to make them working, then I am trying to follow openGL scripting tutorials and re-interpret them with GEM objects.
This method often brings some errors, and these errors are making harder to do something expected.
I am suspecting that GEM is able to change openGL configuration, is that right?
It would be very sympathic to have a place where we could share openGL patches, or a cvs folder, or a more consistent openGL folder in GEM doc...
I am using the last windows version of gem, downloaded from official site, and didn't make some tests yet with the linux version.
Also if any developper of Win32 last version of GEM is reading, [hsv2rgb] doesn't work anymore.
many thanks for the attention, and for the attached patch.
Patco.
james tittle tigital@mac.com a écrit : On Jul 11, 2006, at 4:15 AM, patco wrote:
I am trying to use [GEMglBindTexture] for texturing but the
associated GL objects doesn't work with the last GEM version for
windows:GEMglLoadName crashes
GEMglGenTextures crashes
then I don't understand how to associate an image to texture integer in second input of glBindTexture.
Any help appreciated
...which version of Gem are you using? GEMglLoadName doesn't crash
with cvs, but nothing has changed with that object since it was first
committed, I think...I've attached a small patch that worked here...
...as far as GEMglGenTextures, I'll look into that (don't have time
to try it out right now)
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
#N canvas 542 23 486 660 10; #X obj 152 315 GEMglBindTexture; #X obj 213 255 GLdefine GL_TEXTURE_2D; #X obj 213 231 loadbang; #X obj 152 164 GEMglRotatef 1 0 0; #X obj 152 184 GEMglRotatef 0 1 0; #X obj 152 203 GEMglRotatef 0 0 1; #X obj 152 350 GEMglBegin; #X obj -1 6 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 0 22 450 300 gemwin 0; #X obj 132 136 gemwin; #X obj 67 89 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 142 68 set create; #X msg 132 112 create , 1; #X msg 198 112 destroy; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 6 0; #X connect 3 1 5 0; #X connect 3 1 7 0; #X connect 4 0 1 0; #X connect 5 0 1 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X restore 4 45 pd gemwin; #X msg 4 26 create; #X text 0 5 Create window:; #X obj 152 141 GEMglTranslatef 0 0 -12 0; #X obj 152 401 GEMglTexCoord2f; #X obj 152 472 GEMglTexCoord2f; #X obj 152 539 GEMglTexCoord2f; #X obj 152 611 GEMglEnd; #X obj 152 435 GEMglVertex3f -1 -1 0; #X obj 152 506 GEMglVertex3f 1 -1 0; #X obj 152 573 GEMglVertex3f -1 1 0; #X obj 311 319 GLdefine GL_QUADS; #X obj 316 288 loadbang; #X obj 384 289 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 152 117 GEMglPolygonMode; #X obj 197 57 GLdefine GL_BACK; #X obj 244 91 GLdefine GL_FILL; #X obj 229 18 loadbang; #X obj 297 19 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 151 11 gemhead 1; #X msg 262 283 1; #X obj 339 426 GEMglIsTexture; #X obj 314 478 GEMglCopyTexImage2D; #X msg 224 283 0; #X obj 336 529 GEMglTexSubImage2D; #X obj 337 571 GEMglGenTexture_; #X connect 0 0 6 0; #X connect 1 0 0 1; #X connect 2 0 1 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 0 0; #X connect 6 0 12 0; #X connect 8 0 9 0; #X connect 9 0 8 0; #X connect 11 0 3 0; #X connect 12 0 16 0; #X connect 13 0 17 0; #X connect 14 0 18 0; #X connect 16 0 13 0; #X connect 17 0 14 0; #X connect 18 0 15 0; #X connect 19 0 6 1; #X connect 20 0 19 0; #X connect 21 0 19 0; #X connect 22 0 11 0; #X connect 23 0 22 1; #X connect 24 0 22 2; #X connect 25 0 23 0; #X connect 25 0 24 0; #X connect 26 0 23 0; #X connect 26 0 24 0; #X connect 27 0 22 0; #X connect 28 0 0 2; #X connect 31 0 0 2;