Code for Game Developers - Drawing Transparent Characters (Mergesort)

preview_player
Показать описание
To draw transparent characters we need to sort our scene according to the distance of an entity from the camera using Merge Sort.

Рекомендации по теме
Комментарии
Автор

Even though I use Unity, I still enjoy watching your videos, I like seeing the basic foundations of creating your own game creating your own rendering and such.

Love it haha

TheBronzePker
Автор

Awesome thanks! I think that regardless of what engine you use, math can be useful. If you know how your math libraries work then you can write cool game designs, and that's what's really important. :)

JorgeVinoRodriguez
Автор

Hi. I taught myself OpenGL. You can try the link in the description, it takes you to the source code that you see in the video. It's a small engine made in OpenGL that may be useful for you to learn with. :)

JorgeVinoRodriguez
Автор

Mojang should watch this video. Their transparent blocks are broken like you first shown.

TheNoWarLord
Автор

What exactly do you mean by a "realistic way" ?

JorgeVinoRodriguez
Автор

is it possible to implement it in Cuda?

farzamafifi
Автор

okay but lets be honest sorting 1-9 is trivially eazy on the processor that sorting disctancefromcamera() which is almost garunteed to have a squareroot call.

knaxel
Автор

If I did I don't remember, sorry. Try searching Google for some tutorials or a book, I'm sure there are some great resources out there. I'd link you to some but YouTube doesn't allow that.

Now that I think about it, if you look in my GitHub account there's a project that contains some very simple OpenGL 3/4 examples that may facilitate your learning.

JorgeVinoRodriguez
Автор

Hi Jorge Rodriguez, I was wondering where you learned OpenGL? I made a couple of small games in Flash using AS3 and moved onto C++ (but didn't make any complete games, just fooled around basically) and wanted to learn OpenGL. Can you help me out and link me a few resources where you learned it? I'm pretty sure everyone else here who's subscribed would also like to know too. Thanks.

reportadosd
Автор

Why dont you use Quick sort? personal preference?

YuvalMiles
Автор

Thanks, but if you taught yourself OpenGL, wouldn't you use a book or even a tutorial?

reportadosd