Possibly the sexiest voice ever to feature in a programming tutorial video.
@timmyfriday27183 жыл бұрын
Ladies and Gentlemen, Paolo Conte will now perform his new hit single "The fundamentals of standardised bit-level pixel representation"
@beneze32862 жыл бұрын
I’d buy the whole record!
@ozr22223 ай бұрын
honestly every video deserves this voiceover.
@andrewburke82382 жыл бұрын
I want to add how amazing it is that used so few libraries. Thank you for this.
@ByynxАй бұрын
Masterly done !!! THANKS.😀
@andrewburke82382 жыл бұрын
It works. I subscribed because it works. Thank you.
@iskandar1494 жыл бұрын
great, please continue
@paolograsso50853 жыл бұрын
Could you print pixels' values directly from the GPU's memory (I mean without going back to cpu and back again to gpu for visualisation), for instance after they have been processed by CUDA threads? E.g. between the following data flows (a) and (b), is it possible to do the (b) optimal one? (a) CPU raw data (e.g. geometry + textures) -> CUDA processing pixels -> pixels data sent to cpu -> cpu gives displaying command to gpu -> display (b) CPU raw data (e.g. geometry + textures) -> CUDA processing pixels -> display without cpu intervention Any suggestions where to look for this info? Or maybe you want to make a video about it. ;-) Thanks in advance
@aslanbabakhanov91933 жыл бұрын
You can follow this link (hope you have downloaded the cuda samples fist) docs.nvidia.com/cuda/cuda-samples/index.html#mandelbrot Good luck
@paolograsso50853 жыл бұрын
@@aslanbabakhanov9193 Thank you for the reply :-)
@aleksvitek7985 ай бұрын
Followed the tutorial carefully, I didn't get any compiler or linker errors, but the window just stayed white, any help will be appreciated
@SamuliNatri5 ай бұрын
Try copying the code from here: samulinatri.com/blog/win32-drawing-pixels. It has been updated since the video upload, but does the same thing.
@aleksvitek7985 ай бұрын
@@SamuliNatri Thank you a lot for taking the time to respond, but unfortunately this is not working as well, in fact it is even worse, according to Microsoft Visual Studio Code. I am very new to all of this. The code in the video works, in a sense that it doesn't throw any errors, I also made sure to add include -lgdi32 , so gcc doesn't complain about an undefined reference to StretchDIBits, and also threw in -municode, since for gcc it's mandatory. But when I open my .exe file, it's all white, it just doesn't want to turn black. The new code you suggest, throws errors like: "out-of-order initializers are nonstandard in C++", "chained designators are nonstandard in C++" and "duplicate designator is not allowed". I have no idea what those mean, please help
@SamuliNatri5 ай бұрын
So.. have you tried to create main.c, paste the code from the site to it, and run "cl main.c"? I would assume that works. Personally I don't use gcc on Windows. The errors are C++ errors, I try to avoid C++. This is C, so name the file main.c for my code to work. I don't know why I have C++ in the title. I used to do C-style programming with C++, maybe that's why, but now I just do C.
@aleksvitek7985 ай бұрын
@@SamuliNatri Thanks, changing my source file's extension to .c worked, the program works great and the clear_screen function easily allows you to change background colours, too bad I don't know the C programming language and don't fully understand what's happening "under the hood" though. Just out of curiosity, why do you do C instead of C++, considering C++ is newer and allows you to do stuff, which C doesn't? I am a beginner, so I will appreciate it, if you would explain, thanks
@SamuliNatri5 ай бұрын
C++ is a bloated mess that adds a bunch of useless features to C and removes useful features like out-of-order designated initializers (they might have brought these back to some capacity by now; I don't really follow C++ stuff). In fact, the errors you got were related to this. The OOP paradigm is also useless to me. I don't respect the language, and I don't want to use it. It has some useful features, though, such as overloading (for functions and operators), but that's about it. Sure, C has its own quirks and baggage as it is an old language, but I would rather work around its limitations than use C++. Most software actually runs on top of C. At some point in the abstraction hierarchy, there's usually some C libs in there, and the platform the software is running on is probably mostly written in C. Even though a lot of money is made with bloated, slow systems, modern software is not doing well. There are probably nice opportunities available for the folks who harness the full potential of the system, as the JS framework garbage pile keeps stacking higher and higher. I do use other languages for webby things, like Go. It's a nice compromise between usage and performance. Not as crazy as Rust (unnecessarily complicated, slow to compile, etc.), but performant enough. You get things done. Much better than JS for backend in my opinion. I guess I just had to add a little web rant here :)
@ixsterne2 ай бұрын
First hearing, I thought you were the river shen guy!
@joaquimjesus61342 жыл бұрын
i need to understand: - how can i calculate the stretch? - and alphablend?
@Nanagos Жыл бұрын
This doesn't work if the window gets resized. There is no VirtualRealloc and VirtualFree doesn't work either, so I just get memory leaks.
@plasmapig13567 ай бұрын
Good tutorial!
@dobcs3236 Жыл бұрын
Is there a good reference you recommend for me to learn Win API ? I don't understand MSDN documention.
@thecomputer14245 ай бұрын
I cannot understand them either.
@walkervr56913 жыл бұрын
d u d e im challanging my self to make a game engine from complete nothing and this is fricking awesome i will recomend this if any of my programer friends ever need help with graphics subed
@lilyscarlet25842 жыл бұрын
look up casey muratori he made a complete game from scratch and archived the stream showing every step. molly rocket is the channel.
@oskardeeream18462 жыл бұрын
why use virtualAlloc in this case instead of malloc or somthing else
@lilyscarlet25842 жыл бұрын
because malloc ends up indirectly calling VirtualAlloc as its just a cross platform function in the runtime library. since you are writing native code anyway might as well call the windows native memory allocator directly and get rid of that extra cruft.
@ajinkyax3 жыл бұрын
Subscribes ❤️ thanks for your teaching style, I'm noob but I learnt alot. I'm using this in C++
@tails_the_god3 жыл бұрын
Hmm I'm having a strange issue with using stretchdibits gdi function in vb6 it won't show anything in the picbox why? Does it have something to do with 64 bits? Also it shows a messed up image sometimes when resized too...