What are you coding?

Soldato
Joined
1 Feb 2006
Posts
3,866
Hi,
Are you working on anything good?
I have not had much work lately so have been doing some learning projects.
Path Tracer <C++, Vulkan>:
Found a nice YouTube series https://www.youtube.com/playlist?list=PLlrATfBNZ98edc5GshdBtREv5asFW3yXl
Have extended the code to add:
triangles, textures, specular and model loading.

Music Player <C#, WinUI>:
Started as a “Just loop through a folder” MP3 player but ended up adding stuff just for fun:



Am currently working on hooking up a Midi sampler and sound fonts so I can play while an mp3 is also playing.
 
Last edited:
I'm a incompetent buffoon who dabbles with foobar2000 (audio player) component development. I'd put the quality of my C++ somewhere between terrible and appalling. But my stuff generally works for the most part. :p
My C++ is more C with classes than C++. I mainly use C# now. I just got the midi working, downloaded 40 different sound fonts to try out, it works much better than I expected. Really happy with the Piano UI control I created, although It does crash sometimes on first load, think I’m loading the textures wrong or something.
 
I even avoid classes when coding for myself - pretty much do everything with structs and enum.
I do mostly, only use C/C++ for 3D stuff as the UI is not important, although, Win UI works with C++ so might re-do my Ray Tracer and use Win UI instead of Dear GUI + Vulkan.
 
Learning swift and swiftui.

Coding up a programme to analyse fretboard. This will display the deviation of string fret position. Instead of taking 176 separate measurement, i hope I can take 7 measurements in parallel (so called polychromatic).
Sounds Interesting. I have got a bit hooked on working on a music code and am now trying to work out if I can use FFT’s to pull out notes from the sound wav and midi.
 
Yup i’ve done quite a bit with FFTS and phase correlation for 2D.

The short answer is yes - there’s quite a few transcription apps that do that. The more advanced even use music theory and scribe notation.

The fun with a picked guitar string is there’s a travelling wave caused by plucking the string and the standing wave. There’s also the mass of the string etc.
I'm new to this, just plotting FftSharp.FFT.Magnitude so far, not sure how to work out the frequency yet but it looks like it works when playing notes on the keyboard which is nice.
 
That's cool. :cool: What language have you ported from? Are you running the path tracing on the CPU or with GPU assistance? Looks good.
I did C++ first, It renders to a buffer using the CPU and then displays that. The C++ version uses Vulkan for the UI and to display the result. The C# version uses WinUI 3 and Win2D to display the buffer result.
 
Last edited:
Yeah, sure - if you're happy to do that. :cool: Do you use anything like github? If not, it might just be easier to use the free tier service offered by file.io or wetransfer.com.
OK, will upload it. I should say, the code is a mess as I am just trying to get it working and have been playing around, trying different things to speed it up.
 
Last edited:
I've grabbed it, thank you. Don't worry - I know how messy these home projects can get! It's all good, I'm sure it's fine. I'll try and take a look later this evening; curious about the Win2D stuff. Cheers! :)
Only a small amount of Win2D code is used and its in the MainWindow.cs, also use it to render backgrounds for the UI controls: InfoUI, NavUC and StartUC. The [MainWindow.cs]-->canvasControl_Draw is the place its mostly used.
 
Personally hate C++/C# - the odd thing aside much prefer the approach of old school C. When I'm doing stuff in C++ I still try to stick to C style approaches and interfaces as much as I can.
I like the simplicity of C#, I don't mean the code syntax, I mean the code management. I have never had an "unresolved external" using .Net. I have wasted an unbelievable amount of time just trying to get C/C++ working code to build, I hate that *****!!!. In terms of syntax, I don't really care which language I use.
 
I think I'm one of the lucky ones. I love programming both as a job and a hobby. :cool:

Spent the last week writing a Tetris-like game for the web browser - just plain HTML5, CSS and JavaScript. I haven't written a Tetris clone in over 20 years! Beware, it won't well play on a mobile or tablet device as I haven't implemented touch controls!

Github repo here, online version here. There may be bugs!

:)
Every programmer should do a Tetris clone, or two :-)
 
Last edited:
55117223517_68bce4b09a_o.png
Looks nice, spent a lot of time playing around with material properties trying to get things to look nice. For some reason the C++ version always looks better? I am now having a break from RT and have gone back to working on a Audio Playground App:
 
Last edited:
Back
Top Bottom