Jordan Bonser
  • Home
  • CV
  • University Work
    • Second Year Work >
      • Top-Down Shooter
    • Third Year Work >
      • Terrain Analysis Project >
        • Terrain Analysis Tool
        • Game Demonstration
      • Post Processing
      • Android Application - Sports Centre
  • Projects
    • Unity Development >
      • Lerpz Tutorial
      • Dare to be Digital Entry - "Lit"
      • Unity Game
    • Geometry Instancing
    • Road to Eldorado
    • Level Editor
    • OpenGL Work
    • JBEngine
  • Blog
  • Tutorials
    • Flask Session Timeout

Development Blog

Texturing and My Next Little Project

28/1/2013

0 Comments

 
Okay so the next tutorial in the series went on to talk about textures and how they are applied to polygons. This also introduced a new library for importing the texture data from a file into an OpenGL Texture2D. The library I have decided to use is called SOIL( Simple OpenGL Image Library ). 
The first part went through how textures relate to OpenGL and the graphics pipeline, which meant starting off with our own predefined values which could then be used for applying as a texture. This is shown below, I created an array of values to represent a black and white texture. 
Picture
After doing this the tutorial then went on to explain how to use the SOIL library. This was fairly simple and once it was implemented allowed for the application of any texture to my rectangle. Below you can see the original rectangle with a funky texture applied to it. 
Picture
Now that I am at this stage the next real step is into the maths part of openGL. I have been through the maths of 3D co-ordinate systems before and instead I am going to jump straight in with a new project that I'm hoping to implement. 

The Idea

I have decided to integrate a 3rd party model loader into my OpenGL project, which will more than likely be Assimp. This allows for the loading of tons of different file types where as if I implemented my own it would be two or three at most. There is a draw back to this however, as it has such variety then the loading of the models will be fairly slow. Instead of doing this I am hoping to create a converter into binary files that way the Assimp library can be used to get all the data i need for the various types and then I can output this information into a binary file. This means I can use these binary files into my own programs and the load time will be minuscule but will allow for me to use models of different types. This will be a lot of work and I have a lot of other ideas floating round at the moment so I will see how far I get with it. I'm hoping to get to the point where I havw a base project from which to do any sort of OpenGL work from.

Keep it Easy :)
0 Comments

OpenGL Work - Tutorials v2

4/1/2013

0 Comments

 
After doing the tutorial on lighthouse3d.com I had a look through some of the tutorials that were for further along and realised that they really took things too slow and also skipped over all the important parts of OpenGL. I had a browse around on the internet and realised that GLUT( the library i was using ) had not been supported for a long time and also was not that great due to its over simplicity. It also did not allow much room for expansion in to shader work.  

After this all happened I had another look round and found a great tutorial site that takes an in depth look into the shaders and the OpenGL functionality. Although this tutorial still uses a few librarys I have begun to realise that due to the open-source nature of OpenGL that this was going to be the case no matter what. 

Okay so i'm now following this new tutorial chain on www.open.gl. This website is so simplistic and well written that following it has been extremely simple so far. I have learnt about VBO's and VAO's and all other sorts of OpenGL based objects. This tutorial is taking a little longer as i'm really going over the exact procedures of setting up a window and context to ensure that I'm doing it correctly and efficiently. 

After the first tutorial you end up with a rectangle with different colours in each corner, like the image below:

Picture
After doing this tutorial I have learnt a lot about the basics of OpenGL and I can see that it does match DirectX in certain ways except a lot of the terms are changed for example and Element Buffer seems to be the same as an Index Buffer in DirectX. 

The next tutorial goes on to explain texturing and then by two or three tutorials we are in the realms of post processing effects. I'm pretty excited to get stuck in, although I will be focusing a little more on the structure of my current program, separating all the functionality into objects and applying some sort of logging system. That way progress should be a little easier. 

:)
0 Comments

    Archives

    May 2020
    April 2020
    January 2020
    November 2019
    October 2019
    September 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    August 2018
    July 2018
    June 2018
    March 2018
    January 2018
    June 2017
    February 2017
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    February 2016
    January 2016
    December 2015
    November 2015
    September 2015
    August 2015
    July 2015
    June 2015
    March 2015
    January 2015
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    October 2012
    September 2012
    August 2012
    July 2012
    June 2012
    May 2012

    Categories

    All
    2D
    3rd Year Project
    Agile
    Android
    Angular
    Animation
    API
    Apple
    Apps
    Arden
    Async
    Awesomium
    C#
    CI/CD
    Clean Code
    CMake
    Cocos2d-x
    Colour Match
    Compilers
    Cross Compiling
    Cross-Compiling
    Databases
    Design
    Development Tools
    Docker
    Electronics
    Examples
    Flask
    Flask-Login
    Fmod
    Game Development
    Godot
    GUI
    Hackathon
    Hacktoberfest
    Hardware
    Home Life
    IBM
    Inspired Gaming
    Instancing
    Ios
    Javascript
    Jbengine
    Kata
    Level Editor
    Linux
    Microsoft
    Mobile Development
    Monogame
    Moodster
    Motivation
    Networking
    Objective C
    Opengl
    Open Source
    Organisation
    Physics
    Physx
    Pi
    Planning
    Post Mortem
    PyGame
    Python
    Quart
    Quasar
    RakNet
    React
    Road To Eldoarado
    Scripting
    Scrum Master
    Sessions
    Session Timeout
    Social
    Sound
    Space Invaders
    Squash Game
    Squash Game
    Streaming
    TDD
    Team Leading
    Test
    Test Driven Development
    Travis
    Unity
    Unity Development
    VSCode
    Vulkan
    Web Applications
    Worklife
    WSL
    XML
    XNA / C#

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • CV
  • University Work
    • Second Year Work >
      • Top-Down Shooter
    • Third Year Work >
      • Terrain Analysis Project >
        • Terrain Analysis Tool
        • Game Demonstration
      • Post Processing
      • Android Application - Sports Centre
  • Projects
    • Unity Development >
      • Lerpz Tutorial
      • Dare to be Digital Entry - "Lit"
      • Unity Game
    • Geometry Instancing
    • Road to Eldorado
    • Level Editor
    • OpenGL Work
    • JBEngine
  • Blog
  • Tutorials
    • Flask Session Timeout