Archive for the ‘Featured’ Category
Unity and Android: Create an Unity app with a custom layout
Posted by Dimitri | Filed under Featured, Programming
Although Android and Unity3D are both common topics here at 41post.com, this tutorial is the first one featured in this website to combine those two topics into a single post.
So, this first Unity/Android post is going to show how to create an Unity Android application that uses a custom layout which makes the Unity View to take up only part of the screen. Additionally, this post shows how to have some Android buttons underneath that View and how to make them interact with Unity. And as a simple example, those buttons will determine which direction the camera should rotate around a blue box. As usual, there’s a sample project is available at the end of the post. Here’s a GIF illustrating how the application looks and behaves:
OpenGL: Configuring GLFW and GLEW in Visual C++ Express
Posted by Dimitri | Filed under Featured, Programming
This post shows how to configure Visual C++ Express 2010 with GLFW (version 3.0.1) and GLEW (version 1.9.0)[1].
There are many tutorials on the internet that explains how to configure Visual C++ Express with those exact same libraries[2]. However, this one focus on how to proceed with this setup while avoiding copying any of the header and library files to the Visual C++ Express installation folders, system folders or the Windows SDK folder.
To put it into a summarized manner, all you have to do is to download and install the Visual C++ Express; download and extract the GLFW and GLEW binaries; create a project; configure the project so it can locate the GLFW and GLEW header and lib files; and initialize and use both libraries in your application.
Therefore, this tutorial is divided into 8 parts: Continue reading: “OpenGL: Configuring GLFW and GLEW in Visual C++ Express”
Unity: animated ellipsis
Posted by Dimitri | Filed under Featured, Programming
We have all seen it on loading screens of a variety of games and applications. I’m talking about animated ellipses, the animated three dots (…) on the end of a sentence which indicates that the game or software is being loaded.
This post explains how to make exactly that, an animated ellipsis in Unity. Here’s a video showing what the script on this post will do:
Continue reading: “Unity: animated ellipsis”
Android: hexadecimal color input using an EditText
Posted by Dimitri | Filed under Featured, Programming
This Android programming tutorial shows how to create a simple application that takes the value of a hexadecimal color at an EditText field and displays it as an ImageView. In order to do so, this post goes into detail on how to correctly parse the EditText String as 32 bit hexadecimal Integer. Additionally, it explains the part of the code that constrains the characters between A to F and 0 to 9 at the EditText. Finally, it tries to solve some of the EditText problems when applying these constrains.
The application in this post has been tested on Android 2.1, 2.3 and 4.0.
So, here’s a screenshot of the example project application in action:
Continue reading: “Android: hexadecimal color input using an EditText”
Unity: list files in a directory
Posted by Dimitri | Filed under Featured, Programming
This Unity3D programming post explains how to create a C# script that lists the files in a directory. Additionally, for the sake of completeness, this post also shows a rudimentary method that allows to select one of the files from the list and how to deal with some of the potential IO errors.
Here’s a screenshot of the code in action: