One hour. Two ways. C in Windows. OpenVR overlays from scratch.

  Рет қаралды 10,198

CNLohr

CNLohr

Күн бұрын

Пікірлер: 86
@Neuer_Alias_erstellen
@Neuer_Alias_erstellen 3 жыл бұрын
this is amazing
@CNLohr
@CNLohr 3 жыл бұрын
thanks
@calebmullan4593
@calebmullan4593 3 жыл бұрын
I usually get left in the dust around the 10 minute mark, but your videos are always a treat to watch. They're informative, well though out, authentic... you deserve a lot more views my friend!
@CNLohr
@CNLohr 3 жыл бұрын
Well, these videos aren't for the views, they're for the people who know they want em.
@araghon007
@araghon007 3 жыл бұрын
Thanks to you I now have a strong urge to try writing an OpenVR overlay. And to try out C
@CNLohr
@CNLohr 3 жыл бұрын
dooooeetttt
@j0rp
@j0rp Жыл бұрын
Thanks for spending the time to show that playing with something that seems complex, like VR, doesn't need to be. I frequently forget that complex != better... Been playing with making some overlays in openvr and this was really inspiring.
@CNLohr
@CNLohr Жыл бұрын
Keep it simple! There's a world of beauty possible in just a few bits. I love things like demoscene for that inspiration.
@avramitra
@avramitra 2 жыл бұрын
I don't know how I missed your last two videos. Amazing content, as usual. Every time I see your projects, I feel motivated to push my limits and try making more complex things in C. As a result, I made a lightweight crappy gui library in C (platform agnostic, almost ) from scratch. It targeted for embedded systems. Thanks for sharing your knowledge.
@CNLohr
@CNLohr 2 жыл бұрын
Keep going! Publish your stuff. You should probably join my discord. Lots of folks there are super into programming.
@brayanalmonte4758
@brayanalmonte4758 2 жыл бұрын
Thank you for the video, looking forward to the current state of C video as well.
@CNLohr
@CNLohr 2 жыл бұрын
Oh man I forgot about that one. I got mostly done with the script but I've been so out of that loop.
@brayanalmonte4758
@brayanalmonte4758 2 жыл бұрын
@@CNLohr no worries, I didn't notice this video was 7 months old lol. Either way I always come back to the channel to see what interesting things you're working on, it's a treat.
@milendemli
@milendemli 3 жыл бұрын
loved the insight, would appreciate more such videos, miss the streams
@CNLohr
@CNLohr 3 жыл бұрын
Hopefully will be doing more videos instead of streams at least for a bit.
@adiener
@adiener Жыл бұрын
Hey, this is fantastic - I had a C/OpenVR project languishing in a nonworking state for a long time, and this video showed me exactly what I needed in order to get it up and running. Thanks for being so thorough!
@KacperLaska
@KacperLaska 6 ай бұрын
Thank you for making this video! it is incredibly clear and to the point. Exactly what I was looking for!!!
@CNLohr
@CNLohr 5 ай бұрын
Thank you so much for the $$. And I'm glad you were able to make use out of it! These videos are a lot of work but I'm glad they have their payoff in people like you being helped.
@KolibriFPV
@KolibriFPV 3 жыл бұрын
Real great content! I really enjoyed the speed and proficiency on you writing with C Keep up the great work!
@CNLohr
@CNLohr 3 жыл бұрын
I had uuh a lot of practice with this program haha
@GoodVrGames
@GoodVrGames 11 ай бұрын
Great lesson! Thank you!
@m8h4mm4d8
@m8h4mm4d8 3 жыл бұрын
i watch this,and i said ,you are insane!)
@CNLohr
@CNLohr 3 жыл бұрын
I show how easy it is!
@deltakid0
@deltakid0 3 жыл бұрын
I would prefer C over C++ even to write DirectX apps. I'm learning DirectX 7.0 hehe, also I'm learning OpenGL 1.1 because Shaders are too advanced to start with. Thank you.
@CNLohr
@CNLohr 3 жыл бұрын
You should use rawdraw. It sets everything up for OpenGL 3.x-4.x with the shader pipeline and all for you. You can tinker with something that already works from there.
@Bravefsj
@Bravefsj 2 жыл бұрын
waiting for you new video.best wishes.
@CNLohr
@CNLohr 2 жыл бұрын
It's up.
@Bravefsj
@Bravefsj 3 жыл бұрын
Thank you for sharing
@leonreinschmidt3524
@leonreinschmidt3524 3 жыл бұрын
Wait a second... You can close a window by double clicking the little icon in the top left corner? 9:17
@CNLohr
@CNLohr 3 жыл бұрын
I believe this is a trained behavior from Windows 3.1.
@overlisted
@overlisted 3 жыл бұрын
@@CNLohr yeah
@jaechoi1344
@jaechoi1344 3 жыл бұрын
I learned something today. thanks
@thomerow
@thomerow 3 жыл бұрын
@@CNLohr Same here :D
@loganhodgson6343
@loganhodgson6343 3 жыл бұрын
Thank you for using syntax highlighting!!!
@CNLohr
@CNLohr 3 жыл бұрын
It may or may not stay.
@emagotis
@emagotis 3 жыл бұрын
Even some prepared for excuses why you can't get started programming C in windows is shut close just after 5 minutes. 5 more minutes and you optionally get debugging in combination with a full blown IDE. 10 more he gets opengl running with textures. Another 10 and you got an overlay running via openvr in your favorite VR game. Last 10 will make the overlay even look good. Did I mention all software is free and didn't require a single registration? Welcome to 2021!
@CNLohr
@CNLohr 3 жыл бұрын
Now, if only that comment could get posted somewhere that folks could be brought into this.
@simracing8055
@simracing8055 3 жыл бұрын
Thank you, this is very helpful. Could you do a AVR setup next? Probably would be shorter.
@CNLohr
@CNLohr 3 жыл бұрын
Nope. AVRs are no longer pertinent to me. I've moved on!
@simracing8055
@simracing8055 3 жыл бұрын
@@CNLohr Alright. Just Espressif stuff then?
@CNLohr
@CNLohr 3 жыл бұрын
@@simracing8055 I also use stm32 chips
@simracing8055
@simracing8055 3 жыл бұрын
@@CNLohr Ok, thanks, and sorry for bothering you. I love the stuff you do, it's incredibly impressive
@CNLohr
@CNLohr 3 жыл бұрын
@@simracing8055 No problem!! Just the way it rolls.
@NickNorton
@NickNorton 3 жыл бұрын
I became a Windows Fanboy back in the Win3 days when I upgraded to x86 instead of my 680** Amiga. Things change. I'll die however, a 100% Linux user. On multiple Architecture Machines.
@CNLohr
@CNLohr 3 жыл бұрын
I normally do Linux, but, for some vids I've come to understand other people really want to do Windows. If this was Linux, the first 12 minutes would have been 12 seconds.
@mortenmoulder
@mortenmoulder 3 жыл бұрын
Now for the next project: A VR application to control a bunch of WS2812 in a grid. Gonna cost a pretty penny, but would be nice.
@CNLohr
@CNLohr 3 жыл бұрын
Sounds like it'd be a lot of fun, too.
@ligius3
@ligius3 3 жыл бұрын
I like this and have a suggestion - maybe use a tool to show the keystrokes as some keyboard shortcuts are not obvious nor explained. Maybe you can even show coding one.
@CNLohr
@CNLohr 3 жыл бұрын
Check out the text version of this in the description.
@s16e559
@s16e559 3 жыл бұрын
Thanks for the Tutorial! Would it be possible for you to also make one on creating simple drivers (for like Arduino projects) in Windows? :D
@CNLohr
@CNLohr 3 жыл бұрын
Oh gosh. Well def not Arduino, not touching that with a 10' pole. But, something maybe like USB drivers for an STM32F042.
@sellicott
@sellicott 3 жыл бұрын
Just as a note, when I have a project that needs USB, I have generally found it better to try and leverage the drivers that exist on modern OS's. My personal favorite is the CDC driver (basically USB->Serial), then my PC application code can just read from the serial port.
@s16e559
@s16e559 3 жыл бұрын
@@CNLohr Well what I've seen in a few other projects are like serial communications, though they are handled in an driver for an OpenVR device instead of an external programm (the COM port sadly needs to be hardcoded). A tutorial with a STM32 is also really welcome! :D (maybe a small STM32 or ATmega16U2/ATmega8U2 so that those can be easily added to projects).
@CNLohr
@CNLohr 3 жыл бұрын
@@sellicott CDC is a big problem for products. Serial ports become confusing and many extra layers of figuring out how things go together, vs using the framing USB provides where you can select a device then send/receive messages of arbitrary length.
@CNLohr
@CNLohr 3 жыл бұрын
The ATMegaXuX is dead to me, now.
@lofilummy8062
@lofilummy8062 2 жыл бұрын
i would have a look into MCXR since you seem too be a fan of Minecraft & Vr - i play on Anarchy servers it works alongside Meteor client
@CNLohr
@CNLohr 2 жыл бұрын
I don't know how to articulate it, but I don't really care to cross those streams.
@openroomxyz
@openroomxyz 3 жыл бұрын
That's really cool, but what the efficient way to learn that things that you thoughts in the video? where did you learn all that includes and setting that you have TODO to make the thing working at the first place? Do you read documentation, guess, ask on forum, read some book about it? xD
@CNLohr
@CNLohr 2 жыл бұрын
Just lots of googling.
@thisfeatureisbad
@thisfeatureisbad 3 жыл бұрын
Do you think it would be possible to make a PC VR Headset from a Raspberry Pi or an Arduino?
@L1Q
@L1Q Жыл бұрын
where do I watch the modern c talk you kept teasing?
@CNLohr
@CNLohr Жыл бұрын
It keeps getttting delayyyyed
@myuniquehandle
@myuniquehandle 3 жыл бұрын
Unrelated to this video, but I got an idea for you. Attach VR tracking tech to an ultrasound probe and create software for composing body scans into 3D models. I think this is the next big thing in medical scanning.
@CNLohr
@CNLohr 3 жыл бұрын
That does sound cool - but harder than anything I'd be able to do.
@khiemng2409
@khiemng2409 3 жыл бұрын
Hi Charles, you and your videos are so great. I am trying to use a VR set to get tracking information for my project (not for game). I find that I can use OpenVR for implementing that. Could you can make a tutorial video for how to get tracking information (position and orientation)?
@CNLohr
@CNLohr 2 жыл бұрын
It is almost exactly the same as this video here. Just instead of an Overlay type, be a Utility type. There are functions for getting locations.
@macyler
@macyler 3 жыл бұрын
printf("Hello KZbin ");
@radnukespeoplesminds
@radnukespeoplesminds 3 жыл бұрын
For some reason i thought you always used linux in your videos. I guess i remembered wrong
@radoslawk6872
@radoslawk6872 3 жыл бұрын
He was using Mint Mate. I guess that he used Windows just to show newbies that this is possible as well.
@CNLohr
@CNLohr 3 жыл бұрын
@Abll Rox This is correct. I do use Windows for work frequently, but for recreational coding I use Linux. I find it much easier to work quickly in Linux.
@unevenprankster
@unevenprankster 3 жыл бұрын
The TCC+NP++ install seemed to be a bit redudant after you got GCC+VSC up and running hah.
@CNLohr
@CNLohr 3 жыл бұрын
Redundant? No. Preferred. I normally develop in TCC+NP++, I just find it easier to use than VS Code.
@unevenprankster
@unevenprankster 3 жыл бұрын
@@CNLohr Does TCC's debugging do well though? :0
@CNLohr
@CNLohr 3 жыл бұрын
@@unevenprankster printf is the best debugging, or writing to a file so you can see what's going on. Normal debuggers back you into a local maximum of a corner and make debugging bigger problems much more difficult. Vs. if you just use printf debugging from the beginning, I find I'm a lot better off.
@snijkwodd
@snijkwodd 3 жыл бұрын
Can you do a video of getting vulkan or opengl working with vscode and mingw
@snijkwodd
@snijkwodd 3 жыл бұрын
in c ofcourse :)
@CNLohr
@CNLohr 3 жыл бұрын
This is already in OpenGL. You can just #include rawdra_sf and you get an OpenGL Context automatically.
@Kabodanki
@Kabodanki 7 ай бұрын
So you are not using an IDE because it shows you valid errors ? How annoying is that
@CNLohr
@CNLohr 5 ай бұрын
IDEs just get in the way, and generally slow down iteration times.
@shekarattavar9986
@shekarattavar9986 3 жыл бұрын
Pls make an other minecraft server video like you did long back I beg u plzzzzz using an esp8266👍
@CNLohr
@CNLohr 2 жыл бұрын
I'm sorryyyy I'm so far down the VRChat rabbit hole, now.
@drink__more__water
@drink__more__water 3 жыл бұрын
Hmmm... I'll take "Tutorials I didn't know I wanted." for $800 please.
@CNLohr
@CNLohr 3 жыл бұрын
The more you know!
Writing a Really Tiny RISC-V Emulator
19:59
CNLohr
Рет қаралды 60 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 6 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 11 МЛН
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
I Built The First LAMINAR FLOW ROCKET ENGINE
15:51
Integza
Рет қаралды 1 МЛН
Advanced C: The UB and optimizations that trick good programmers.
1:12:34
Eskil Steenberg
Рет қаралды 168 М.
Game Made for VR on a $1 Processor?
16:48
CNLohr
Рет қаралды 21 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 335 М.
Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]
1:05:59
ACCU Conference
Рет қаралды 102 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 323 М.
What are Executables? | bin 0x00
8:35
PwnFunction
Рет қаралды 186 М.
What is the Smallest Possible .EXE?
17:57
Inkbox
Рет қаралды 383 М.
Emulating a CPU in C++ (6502)
52:28
Dave Poo
Рет қаралды 978 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 6 МЛН