Search found 5 matches

by joessu
2015-06-11T13:48:39-07:00
Forum: Magick++
Topic: C++ Read Png into opengl
Replies: 5
Views: 15403

Re: C++ Read Png into opengl

So the issue appears to be in my use of the pixel data after this function exits.
by joessu
2015-06-10T09:38:38-07:00
Forum: Magick++
Topic: C++ Read Png into opengl
Replies: 5
Views: 15403

Re: C++ Read Png into opengl

Sorry for spamming, another bit of info. I know my texture code in opengl works because i was using SOIL to do the same exact thing before this
by joessu
2015-06-10T09:35:49-07:00
Forum: Magick++
Topic: C++ Read Png into opengl
Replies: 5
Views: 15403

Re: C++ Read Png into opengl

When i write it to a png using im.write("test.png"), It writes it perfectly!!!
by joessu
2015-06-09T15:12:50-07:00
Forum: Magick++
Topic: C++ Read Png into opengl
Replies: 5
Views: 15403

Re: C++ Read Png into opengl

Ah, i thought that by declaring RGB in write that i could exclude the alpha channel?

EDIT: that didn't do it. the result is different but has same artifacts.
by joessu
2015-06-09T14:55:57-07:00
Forum: Magick++
Topic: C++ Read Png into opengl
Replies: 5
Views: 15403

C++ Read Png into opengl

Very simple thing. I am getting an odd result. Magick::Image im; im.magick("PNG"); im.read(std::string(TEXTURE_DIRECTORY).append(desc.filename)); //"image.png" w = im.columns(); h = im.rows(); unsigned char* data = new unsigned char[w*h*3]; im.write(0,0,w,h,"RGB", CharPixel, data); tex.widths.push ...