Web Design,Programming,Mobile,iOS/Android,GameDev,IT Businness,eCommerce,Social Media

Advertisement
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Monday, 10 February 2014

C++ SFML 2.0 Spritesheet Animation Class

Loading and displaying sprites with SFML 2.0 is not hard work to do, its just two functions however when it comes to animating them you will need to actually delve a little bit more deeper. I've created a basic wrapper class for SFML 2.0 which loads displays and animates spritesheets with just few lines of code.

Beginners who are finding trouble with animating their sprites could find this helpful. First of all this class implements Sprite class and Texture class, two standard SFML classes for loading and displaying sprites. I implemented functions from these two classes in one single class which loads and animates sprites.

Sunday, 19 May 2013

Which programming language should i learn ? - Answer yourself !

Programming Languages
Programming Languages
Choosing a programming language can be difficult. It all depends on your needs. But the overall logic is always the same. When programming you are solving problems. When choosing a programming language you are not choosing simplicity, rather you are changing the syntax of commands you write.


So do not be trolled by the idea that there is a language that is easier and can do complex tasks. Remember a programming language is not a software. It all depends on what you are going to program. Even assembly can be easy if you use it just to multiply two numbers.

Sunday, 12 May 2013

Learn coding at Codecademy

Codecamy
Codecademy
Do you want to learn coding but you find the material on books very hard and not catchy for your brain?

Codecademy which is an online interactive website offers you a great and simply way to start your first steps toward the world of programming with a special interest on the Web.




Tuesday, 16 April 2013

Linking C# Applications with MySQL Databases on Visual Studio

c#-mysql
Visual Studio as we know is a very powerful IDE from Microsoft. It has build in languages like C# C++ and Visual Basic. Development with Visual Studio can be pretty fun and successful. Visual Studio also has methods for creating and connecting to Databases like ADO.NET technology.

However for some personal reason you dont want to use ADO.NET technology for your Databases or SQLServer for the simple reason that they are expensive. Perhaps you want your applications data to live forever, and never be gone if your hard drive burns or dies.

Monday, 15 April 2013

Learning programming concepts through a game

Light Bot
Light Bot
Learning programming concepts can be quite abstract and not catching for youngsters and many  people who enter the world of programming. ArmorGames have found a way to express their programming skills through a game.

That's it ! You can now learn some basic programming concepts by playing a very interesting and logical game. Light-Bot is not only a interesting game but also a funny and interactive way of learning the programming concepts. As a main protagonist of the game you have a robot which needs to reach the blue box and switch the light.

Thursday, 24 January 2013

OpenGL Backface Culling - Removing unseen faces to improve performance

OpenGL
OpenGL can be very useful if we know how to use it. But sometimes it can tire up our computer and eat performance resulting to slow application. No one likes this especially gamers. They want smooth games and  experience with 90 FPS during their gameplay. It is useful to know some pitfalls we should prevent when creating OpenGL applications.

There are many factors that reduce performance of your application, it depends on the code for example dynamically memory allocation and not freeing those resources, loading and displaying complex 3D meshes and scenes, calculating complex lighting algorithms etc. In this post i will discuss a very useful technique that OpenGL offers us to drastically improve performance of our applications. That is backface culling. Backface culling is a technique that slices up faces that are never seen.

Monday, 21 January 2013

Opengl Mesh Loader OBJ

OpenGL
OpenGL as we know is a low level API for manipulating computer graphics. It is very powerful and cross platform which means all operating systems support it. This is the main reason i want to develop apps with opengl. I dont want to stick with Windows only, rather as a lover of Ubuntu i like to create small programs for this platform also.

OpenGL is powerful but when it comes to create big 3D worlds and meshes it can be very very hard nearly impossible to do this all by code. So you cant just create small games with OpenGL only. You need to create your 3D assets on other 3D modelling software and to export them and after that to create functions or classes in C++ that will read those exported files and parse them into your final program. In the code below you have a class that loads OBJ files and displays them onto the screen. OBJ is powerful file format and is very easy to implement parser for those files.

Thursday, 17 January 2013

Installing SDL libraries and creating your first window on Ubuntu

SDL libraries
SDL is used for creating graphical user interfaces or small games. But if its used correctly you can also create robust graphics applications or games. Simple Direct Media Layer is used to manipulate pixels to create different ui layouts for your applications and even games.

In my other blog posts i discussed about downloading installing and configuring SDL under Windows with Visual Studio. Here we will explain how to get running this library under Ubuntu. Graphics programming under Ubuntu are becoming more popular like even EA started to create games for this platform.


Compiling and running C++ source codes in Ubuntu

Compiling and running C++
With its clear fonts and pixel percet ui Ubuntu makes it so comfortable for me to code in many programming languages. With a lot of free tools and support Ubuntu is an amazing work desk for every developer. Coding in C++ under Ubuntu is all about using the terminal. Thats it.

You just install Geany text editor if you dont like the default one and with some packages you will be all set up. So lets get started. As we said the first thing you will do is open the Terminal. Firstly we must make sure that we have all the necessary packages to start writing codes. Type this command in terminal

Saturday, 29 December 2012

SDL Windows Programming - Creating your first Window

In this text we will create our first windows program using SDL ( Simple Direct Media Layer ). SDL is low level graphics api and can be used as a windowing platform to create window programs or as a graphics layer to create small games. It can be very powerful if its used correctly.

In this blog post i discuss the steps to configure SDL with Visual Studio. Follow the steps and if you are all set up come back. If you already configured SDL you are now ready to create your first window.


Thursday, 27 December 2012

Configuring SDL with Visual Studio 2010

SDL (Simple Direct Media Layer) is a low level api for manipulating pixels to create different UI layouts and even small games. This api is free for download and free for use both for commercial and personal. But many developers face problems when it comes to configuring it with an IDE especially visual studio. Follow these steps and you should be all set up, and in the end we will run sample code to show the result.


 

© 2013 smartnoob . All rights resevered. Designed by Templateism