OpenGL Radix Sort in OpenGL

This topic is 3969 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I have a homework about Radix Sort in OpenGl. Can you help me please to make it? I am new at openGL and don't know anything... Thanks...

Share on other sites
Radix sort is a sorting algorithm. OpenGL is a graphics rendering library. They have absolutely nothing to do with each other. Focus on the language you use instead, because a graphics rendering library is totally irrelevant to the sorting algorithm.

Share on other sites
You probably have to do a sort, such as Batcher's Bitonic Odd-Even Merge-Sort.
From what I remember of radix sort, it's not something it could map well to HW. If your homework says that, I'm sorry to say there's no correct solution so you're in bad trouble! :P

Share on other sites
at first I will solve the Radix sort algorithm(I made it) then I will show that in an animation.At this part my teacher told me that I will do that such as OpenGl.if I can't do that with OpenGl so which program may I do?

Share on other sites
have a look at SDL instead, its a much simpler grafics api

Share on other sites
I need to do Radix Sort animation. I can do that in OpenGl, Java 2D 3D or something else.

Share on other sites
Quote:
 Original post by ccmaniacI need to do Radix Sort animation. I can do that in OpenGl, Java 2D 3D or something else.please help me...
If it doesn't matter what you use, and you are apparently not too much experienced, then use Java 2D.
You're doing yourself a favour, since it is a lot harder to shoot your foot, and it is really painless to get something to work.

The "standard way" of showing how a sort algorithm works is to generate an array of random values between 0 and some maximum number, and represent every array entry by a horizontal line, like in a bar chart.
Then, run your whatever-sort-algorithm and at every iteration, update the bar chart.

Here's an example of what this looks like: http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html

• What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• 9
• 13
• 9
• 9
• 15
• Forum Statistics

• Total Topics
634078
• Total Posts
3015362
×