Skip to main content

Posts

Showing posts from May, 2015

Me vs Qt and Windows

I always say that when you are a programmer, you should be ready to throw your work and start again whenever necessary. And I always expect that others apply that, not me. Yesterday I started porting the dialog editor tool to Windows. In the end, the dialog writers (in this project, or the next) probably will be using Windows, not Linux. Keeping a parallel Linux port is trivial. I should have started in Windows. Probably I have to throw the previous UI I have been working on, or spend some time to figure out why does it produces a compilation error. Well, I will try to see the good side: now I have a chance to rethink the UI. The dialog editor is a complex tool, I must try to make it easy to underestand to people that never used anything more exotic than Office 2007. The process of downloading Qt havent been easy, I even had to pay some internet time, which was lost money. Also, I found that I could have downloaded an older version instead of the 5.x, after all, cant use the VS pl...

I tried to run The Witcher 3

And failed. I built my home PC with a very short budget, aiming to cover  Wasteland 2 requirements (mostly, the 4Gb of RAM). It is an old Core 2 6850, in  a basic G41 motherboard, rather limited. I managed to place 2 DDR2 memories running at 800Mhz, 1TB SATA drive, an AMD R7 250 video card, and a 500W PSU, which died a couple of months ago. I was quite happy with that (well, actually I wasnt, but I couldn't afford anything else), but then, some games I wanted to play asked for more RAM and more hard drive space than I had. Ok, I can miss Call of Duty Whatever Warfare, but Dragon Age... thats painful. Obviously, The Witcher 3 doesnt runs. I managed to see the main menu, even the intro cinematic (a bit bumpy), but in-game framerate is not enough even to move the character. Perhaps I have to recover my AMD card, as I have now a GT 520 which is not the choice to run demanding games, but I dont expect a big perfomance gain. Anyway, at least I can do game development!

First scene: screenshots

Re-learning C++

Back to C++. It is weird to compile or to type -> again after several months programming in AngelScript and C#. Also, Im learning to use PugiXML and recovering my little Qt knowledge. I have restarted work on dialog editor. This time Im going to bring the development process to Windows, since a long time ago I wanted to know how is Qt development under platforms other than Linux. I think it is going to be a good training for me. I will create a public github repo as soon as I have the code working on Visual Studio, together with the file format documentation. The tool is far from simple, because it needs to manage and display a quite complex tree of lines an answers, currently Im just writing basic foundation code. My head spins of just looking at interface and thinking how much work still needs to be done.

Tutorial: building a modular character

Building character models with body parts have been an obsession for me in the last weeks. I have googled, asked, googled, and asked again, played with Unity3d editor, tested code, and so on. You can see the result of my work in the previous post . First of all, I have to say that what I achieved is mostly derived from this thread and the sample posted there. My code is a copy&paste of that sample. Also, you can find a more extense solution in this Gamedev.net forum thread . First, lets start with the model, which obviously, is divided in the required sections. Lets say we have head, torso and legs. Each part must be exported to a separate fbx file, but it must include the skeleton. Then, export the skeleton without geometry to another fbx. Im going to assume that you want to instantiate all components, and even player, at runtime, from a  C# script (no Unity editor involved, except for creating prefab an position marker), so, we will place the sections, the skeleton and ...

Almost there!

Got results today in the implementation of modular character meshes! Ill be posting a detailed tutorial, including the script code as soon as I organize it and underestand how does it works a little better. What you see in the above picture is the character before (right) equip items, and after (left), when all  the meshes but the head have been replaced by the armor components.

Unity3d isometric camera tutorial

I had pending this since a month ago, so Im forcing myself to post it today. The goal is to provide a fully functional isometric like system that you can use with few or none modifications in your own game. So, lets get started. Start Unity3d and in your scene, add an empty GameObject, we will call it target . Create a camera object and drag it to target to make it child. The result looks like this: Now select Camera and set the values to this: For a true isometric like feeling, ortho projection is essential. You could use perspective, but it is not the same. Play with Size to suit your needs (we will be using this later, when implementing zoom). Now, lets create an script named CameraController, or whatever, and drag it to target GameObject. Lets implement scrolling, the easier part: go to Update() and add the following code: if (Input.GetKeyDown(KeyCode.W)) {             dir = UP;         } e...