Missed having OpenTK content? Good news, I'm working on making more of it soon! Up next is a demo on using orthographic projection with what we've covered in previous tutorials to make sprites (as requested by an anonymous commenter a while back).
While you all wait for that, the basic textures tutorial project is now up on GitHub:
https://github.com/neokabuto/OpenTKTutorialContent/tree/master/OpenTKTutorial6
Wednesday, February 25, 2015
Tuesday, February 24, 2015
SFML.Net Example: Breakout Clone
Here's a second basic SFML.Net example. This time it's a clone of the game Breakout (copyright Atari, please don't sue).
https://github.com/neokabuto/SFML.NET-Examples/tree/master/SFMLBreakout
https://github.com/neokabuto/SFML.NET-Examples/tree/master/SFMLBreakout
Wednesday, February 18, 2015
SFML.Net Example: Pong Clone
Here's an example of a simple game made in SFML.Net. It's a clone of a
certain well known table-tennis game that tends to be a common early
project. Try to hit the ball off the right side of the screen while the
computer attempts to do the same to the left side of the screen.
https://github.com/neokabuto/SFML.NET-Examples/tree/master/SFMLPong
https://github.com/neokabuto/SFML.NET-Examples/tree/master/SFMLPong
Sunday, January 4, 2015
Tutorial Files Now Available on Github!
The project files from the first 5 OpenTK tutorials are now on GitHub. I've been commenting them with excerpts from the tutorials where I can, which should help people follow along. The code could use a bit of cleanup, but all the required code is there and tested.
This format has a few advantages for me. It's easy to upload to (and unlike file hosts, is accessible possible to upload to from my university without a VPN) and filters out files that don't need to be uploaded. It also means that if there's something that needs correcting, it's possible for someone else to submit the fix (and get credit for it!) without much work on my part. If anyone sends a pull request/issue that improves the tutorial content, I'll modify the tutorial here to match the new changes.
This format has a few advantages for me. It's easy to upload to (and unlike file hosts, is accessible possible to upload to from my university without a VPN) and filters out files that don't need to be uploaded. It also means that if there's something that needs correcting, it's possible for someone else to submit the fix (and get credit for it!) without much work on my part. If anyone sends a pull request/issue that improves the tutorial content, I'll modify the tutorial here to match the new changes.
Monday, October 13, 2014
SFML Tutorial: Hello World
In this tutorial, we'll create a SFML window and draw a shape and some text, and demonstrate a basic animation.
This tutorial assumes that you already have the SFML.Net libraries and their dependencies, but we will create a new project file for this tutorial. This and all future tutorials will assume that you are using Visual Studio (however, it's definitely possible to use SFML.Net with Mono!).
A portion of the code used in this tutorial (and likely future tutorials) is taken from the official examples for SFML.Net.
This tutorial assumes that you already have the SFML.Net libraries and their dependencies, but we will create a new project file for this tutorial. This and all future tutorials will assume that you are using Visual Studio (however, it's definitely possible to use SFML.Net with Mono!).
A portion of the code used in this tutorial (and likely future tutorials) is taken from the official examples for SFML.Net.
Friday, October 10, 2014
Setting up SFML.Net
SMFL.Net is a binding of the Simple and Fast Multimedia Library that allows us to use its functions in C# and VB.Net. It's simple to use (hence the name) and portable (although my tutorials will only focus on Windows).
However, setting it up requires some extra work compared to some other libraries. The pre-built libraries available on the SFML website are not only a year old (so they're missing quite a few changes made since then), but the dependencies included probably won't work and one of the DLLs is MIA (technically it wasn't missing at the time, but now it's an important part of the library).
(I know things have been mostly OpenTK up until this point, but I needed a bit of a break. And if these SFML.Net tutorials go on long enough, they'll end up back in OpenTK territory, so don't worry!)
However, setting it up requires some extra work compared to some other libraries. The pre-built libraries available on the SFML website are not only a year old (so they're missing quite a few changes made since then), but the dependencies included probably won't work and one of the DLLs is MIA (technically it wasn't missing at the time, but now it's an important part of the library).
(I know things have been mostly OpenTK up until this point, but I needed a bit of a break. And if these SFML.Net tutorials go on long enough, they'll end up back in OpenTK territory, so don't worry!)
Sunday, July 13, 2014
OpenTK Tutorial 6 Part 3: Putting it all together
Now that we have TexturedCube, and a way to load shaders and textures, we can finally get to the good part, drawing some textured objects!
In this tutorial, we'll be wrapping up the texturing content. At the end, we'll have two cubes being rendered with different textures on them.
In this tutorial, we'll be wrapping up the texturing content. At the end, we'll have two cubes being rendered with different textures on them.
Subscribe to:
Posts (Atom)