help with OpenGL

I am working on a C++ project. However, I got to a point which requires some OpenGL knowledge, and I would like to get some help from someone who has worked with OpenGL before.

I would like to mention ahead of time, that my hardware understands OpenGL ES, which is slightly different than OpenGL. However, I think for the sake of what I want to accomplish, it probably should be okay, since I am not planning on using OpenGL for graphical purposes.

I am developing my own DSP algorithm, and I have already taken it to the point, that I have decoded my jpeg image as RGBA, and stored it in an internal buffer already. What I need help with, is from this point on:

In fact, since with my algorithm, I have to do hefty Matrix multiplications, and image manipulations (e.g. Multiplying images with a constant value, or doing point-wise multiplication of data), I am planning on using OpenGL to do my image manipulations.

All I want is to be able to upload my image to a texture, and then use Shaders/Fragments to be able to multiply my images.

For example, I have a jpeg image of 230x240. I have read it as RGBA, and stored it internally in a buffer (unsigned char* data). Now, I want to multiply this image with another image of the same size.

So, instead of doing this in CPU, I want to upload each image as textures and then hand it over to Shaders, so it can do the multiplication in GPU.

It is not always going to be multiplication. Sometimes it may be addition, division, or subtraction. So, what I am looking for is some help so that I can get started using Shaders. So, I am looking for a general set up for passing my data to Shaders, and letting Shaders do the math, and then getting back the data.

Again, keep in mind that I am not interested in using OpenGL for any graphical purpose, and it is just for performing math.

I am also open to suggestions. All I want to do is to do it the fasted possible way, so if someone has another idea that my intended computations may be performed faster, I would be okay doing it your way too (as long as its advantage is well justified).



Taidot: C++ -ohjelmointi, OpenGL

Näytä lisää: what is a programming algorithm, what is an algorithm in programming, what is algorithm in programming, what is algorithm in math, what is a algorithm in programming, programming project help, programming algorithm example, opengl programming, opengl help, opengl *, need help with my programming project, matrix programming, math programming, math in programming, math and programming, i need help with c++ programming, i need help programming, getting started with programming, get started with c# programming, get started with c programming, get help with c programming, example of an algorithm in programming, example of algorithm in programming, do your math, developing an algorithm

Tietoa työnantajasta:
( 6 arvostelua ) Redondo Beach, United States

Projektin tunnus: #4301484

6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


I can help you.

$175 USD 3 päivässä
(89 arvostelua)

Kindly check your inbox. Thanks

$160 USD 3 päivässä
(26 arvostelua)

I think I can help you

$150 USD 3 päivässä
(13 arvostelua)

Expert C/C++ and OpenGL programmer. Kindly check pm.

$700 USD 15 päivässä
(2 arvostelua)

Honestly you don't want to use OpenGL for what you are trying to do. Locking a texture and reading back from it is going to be really slow on most hardware. If your hardware supports it, you should consider looking i Lisää

$150 USD 5 päivässä
(0 arvostelua)

I can help you, if you want to follow my advice, check your inbox please

$75 USD 5 päivässä
(0 arvostelua)