PDA

View Full Version : How to blure, sharpen and detect edges of a cube in openGL C++.



aimi_moon
04-26-2015, 05:15 AM
Hi,

I have to create new program using OPENGL language, at this program I have to create cube and apply the blur , detect edges and sharpen in a simple way, just calling the functions.
Also is possible to apply ray tracing on this cube ? and why?

I really need the exact code for this program, because I have no Idea how it should done.

Please help me as soon as possible.

Thanks.

Aleksandar
04-26-2015, 06:52 AM
I have to create new program using OPENGL language,...
OpenGL is not a language, but an API.


...at this program I have to create cube...
Fairly simple. Just find some beginner's tutorial.


...and apply the blur...
More advanced topic. You could search for the solution on the net. Something like this (http://www.gamasutra.com/view/feature/3102/four_tricks_for_fast_blurring_in_.php) might be useful.


...detect edges...
Another, totally independent topic.


...and sharpen in a simple way...
Yet another topic, unrelated to previous.

It looks like you have a project at the university which is not quite simple. Especially since you have no idea what to do.
Most of the topics are related to image processing. Maybe you could solve it easier on the CPU. Or using CUDA/OpenCL, if you prefer high parallelism and several orders of magnitude speed gain.
Do you really need to do it using OpenGL (or to be more specific, the fragment shader)?


...just calling the functions.
:) Maybe you know something that I don't, but there are no functions that you could simple call to solve your problem.
Such naive question points out that you are lost at the beginning. Or, maybe, you didn't explain your problem well.


Also is possible to apply ray tracing on this cube ?
Yet another topic. Maybe more advanced than all before. Surf for "ray casting".


and why?
Who knows. You asked for it. At the moment I don't see how it would help you in blurring, detecting edges and sharpening.


I really need the exact code for this program, because I have no Idea how it should done.
Maybe you could find partial solutions for your problem, but it is up to you to fold the pieces.