What are you coding?

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.

Nice! :) I haven't tried using Win2D with WinUI 3 as yet, but it's something I would like to experiment with soon.
 
If you want a copy of the VS C# project I could upload it, don't know what site is good for that?

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.
 
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:
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.

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! :)
 
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.
 
Kudos to you! I seem to be very anti Microsoft these days and it pains me just using VS Code and GitHub. :D

I’ve finished the last of my C projects, faffing about with hash tables and linked lists. Good riddance.
 
Last edited:
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.
 
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 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.

True I hate that aspect especially when it is something really simple but obscure.
 
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.

Thanks again for sharing the code. Loaded it up, ran it, checked it out. :cool: The Win2D looks nice and straightforward to setup so definitely will be looking to have a play with that soon. Thanks again. You've made me want to pick up my own path tracing project again, but I don't have the time at the moment! :cry:

Regarding languages, I absolutely love C and C++. Those were the languages I used most in my earlier career (and still do today, though not as much) - borne out of the need for performance more than anything. Nowadays, most of my work is C# (.NET 6/7/8/9/10) for application development, C++ for the odd research programme and specialist contract, and web tech such as JS/TS, nodejs, and the various frameworks (of which there are so many).
 
I have never used GitHub so don't have an account, don't know if its free or have to pay.

Yeah, there is a free tier and it's plenty feature-rich and capable enough so that you wouldn't need a paid plan. For my personal stuff, I have a free account. You can have public or private repos and it is easily integrated with the various IDEs and code editors that are available today. Git is powerful and can be complex, but the reality is that you only need to familiarise yourself with a small subset of commands and processes in order to utilise it successfully.
 
Back
Top Bottom