Pages

Monday, February 20, 2012

Would you purchase a Hardware Backward Compatibility add-on?

Software compatibility coming late in the platform's life and not supporting all titles or added cost for all gamers when some hardware components are integrated in the new system to offer compatibility with the previous machine's games?


Saturday, February 04, 2012

Used games sales... money back to publishers?

I wanted to make a small followup to a previous post about the used market as driver of new sales and point out this interesting Ars' Technica article and a very interesting new initiative in the used game market. More money for people selling their games, money to developers for each copy sold to other users by the store, and a profitable business model. Does it sound impossible to you? Well, I think this article is for you then!

View original source on Ars' Technica.

Sunday, January 29, 2012

Snow and cleaner air

After a month or two without rain and especially without a much prettier white mantle on top of polluted streets, we can safely enjoy the gentle curves and sights a good snowfall brings.

Snow has the property of being able to make the landscape more uniform while at the same time strengthening its own dominant outline. It can certainly bring a sense of calm and quietness that I find always so unique.

Wednesday, January 18, 2012

Il mercato delll'usato non serve solo ad oliare gli ingranaggi degli intermediari :).
Used market can have its advantages for the device makers :)!

Monday, October 24, 2011

2011 Faber contest winners announced!

I am very pleased to announce that AddictiveColors is one of the winners of the 2011 Faber-meeting contest with Pocket Boy!
Thanks to everyone who helped us make it happen!

Monday, October 03, 2011

Prevalentemente Anime e Manga: Pocket Boy - C’è un omino nelle tasche

Prevalentemente Anime e Manga: Pocket Boy - C’è un omino nelle tasche: Ecco l'omino delle tasche Il post di oggi esula leggermente dagli argomenti solitamente trattati su questo blog e punta a presentare un p...

Friday, September 30, 2011

AddictiveColors and Pocket Boy at the View Conference 2011

You should have seen a new link on the right of this blog, it's the Pocket Boy's blog, the app from AddictiveColors (my girlfriend and talented artist Clyo Parecchini and I). Well, I guess I am late for reporting such news to this sometimes neglected page, but Pocket Boy is now also on the iPhone and iPod touch. 
  • If you have one of the newer models with the famous Retina display, you can enjoy crisp visuals as we have properly optimized assets for that screen too.
  • AddictiveColors is going to be at this year's View Conference in Turin: we are scheduled to talk about our app and AddictiveColors at 4:30 P.M. on the 27th of October.

Here is the official site: http://www.viewconference.it/


Follow updates about Pocket Boy and AddictiveColors over at the official Pocket Boy's blog and the official AddictiveColors' website.

Thank you!

Tuesday, September 27, 2011

For those still using Makefiles, we all know there's no better place than computing to see that there is no problem simple enough that does not deserve a complex solution (--Dario Roccati), I thought I'd share something that Makefile artists know all too well, that might find trivial and misleading and full of traps... but something which might fit the Makefile YOU are writing. Computing, like many problems, is a set of problems which is best dealt with if you have an ever growing bag of tricks and tools to your disposal, so... one more will not hurt :).

Say, that someone just gave you a list of .cpp and .c files and you had to generate a simple static library to use in the rest of the makefile.
To make the makefile target simple and avoid a lot of unnecessary typing you might want to collect the C and C++ files and the .o files they generate once you compile them.
Let's see an example:
L_BASELIB := $(filter %.c,$(L_BASELIB_SOURCES))   
L_BASELIB_OBJ := $(patsubst %.c,%.o,$(L_
BASELIB))

 L_BASELIB_SOURCES is defined as a list of .cpp and .c files earlier on in the makefile. In this example, we take a two steps solutions to get out list of object files only for the .c files (just to make a small example you can adapt to your needs).


The filter and patsubst commands are quite powerful and to use their regular expression powered syntax the best way possible you might want to read more on regular expressions, gnu make, etc...
The way I have used them in this example is to first filter the files with a .c extension out of the list of files I have been passed by this environment variable and then produce another list of files with the extension changed to .o from .c and so on.

Wednesday, August 11, 2010

You know whoo you are... and it is your fault :P...

#define VEC3toSIMD(v1,v2) v2.fields.x=(v1).x; v2.fields.y=(v1).y; v2.fields.z=(v1).z;
#define VEC4toSIMD(v1,v2) v2.fields.x=(v1).x; v2.fields.y=(v1).y; v2.fields.z=(v1).z; v2.fields.w=(v1).w;
#define COPYVEC3(v1,v2) (v2)->x=(v1)->x; (v2)->y=(v1)->y; (v2)->z=(v1)->z;
#define COPYVEC4(v1,v2) (v2)->x=(v1)->x; (v2)->y=(v1)->y; (v2)->z=(v1).z; (v2)->w=(v1)->w;

#define PRINT_VEC(v) printf("\n(vector) x= %f, y= %f, z = %f\n", (v).x, (v).y, (v).z);
#define PRINT_SVEC(str,v) printf("\n%s x= %f, y= %f, z = %f\n", str, (v).x, (v).y, (v).z);
#define PRINT_VEC2(v) printf("\n(vector) x= %f, y= %f\n", (v).x, (v).y);
#define PRINT_SVEC2(str,v) printf("\n%s x= %f, y= %f\n", str, (v).x, (v).y);
#define PRINT_VEC4(v) printf("\n(vector) x= %f, y= %f, z = %f, w = %f\n", (v).x, (v).y, (v).z, (v).w);
#define PRINT_SVEC4(str,v) printf("\n%s x= %f, y= %f, z = %f, w = %f\n", str, (v).x, (v).y, (v).z, (v).w);
#define PRINT_BULLETVEC(str,v) printf("\n%s x= %f, y= %f, z = %f, w = %f\n", str, (v).x(), (v).y(), (v).z(), (v).w());


#define MUL_FVEC3(t,v) (v)->x *= t; (v)->y *=t; (v)->z *= t;
#define MUL_FVEC4(t,v) (v)->x *= t; (v)->y *=t; (v)->z *= t, (v)->w *= t;

#define ADD_FVEC3(t,v) (v)->x += t; (v)->y +=t; (v)->z += t;
#define ADD_FVEC4(t,v) (v)->x += t; (v)->y +=t; (v)->z += t, (v)->w += t;

#define SUB_FVEC3(t,v) (v)->x -= t; (v)->y -=t; (v)->z -= t;
#define SUB_FVEC4(t,v) (v)->x -= t; (v)->y -=t; (v)->z -= t, (v)->w -= t;

#define INIT_OBJ_ARR_NULL(arr, len) {for(int i=0; i<len; i++) {arr[i] = NULL;}}

Monday, August 09, 2010

You know when pointers give you too much rope to hang yourself with when...

... you see this in your console's log:

 

malloc: *** error for object 0xd663fb0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

That's neat ;).

Monday, August 02, 2010

LLVM news... Xcode finally leaving Eclipse in the dust ;).

I am watching a presentation on Xcode 4 and that got me thinking about the revolution that the LLVM project keeps bringing to the table as it matures. It's not the C++ support or other features per-se, but how integrating it with the IDE brings a revolution to compiled languages like Objective-C, C, and C++... kind of levelling the playing field with Interpreted and bytecode based languages (like Java) as well as languages that are supported by the .NET runtime.

If you have ever used Eclipse to develop Java applications, you are accustomed to how much the IDE knows about your project and how it can help you fix your mistakes as well as double check what you type in real time. This is the next step after code completion arrived. With Java you do not do a big BUILD phase after writing your code, the bytecode is produced when you save each file and the Java compiler working alongside the IDE can tap into a very information rich soup the Java bytecode provides for your whole application at any given time.

In short, having a VM based language (like you have with Java and .NET), allows you not only to get closer to the "write once, run anywhere" mantra and to have lots of info available when the app runs on the target platform, but it helps you with development as well... you have direct and real-time feedback after every change you make in the application's source code and of the implications of a change in one file can have in other files... before you debug it on a simulator or a device... and we freed ourselves from header files :P (well, going from C to Java, you will appreciate not to have to declare any function before implementing it and using it without fear of "oops, I need to use function f2 inside function f1... how do I do that?" situations). Ok... ok... there are good things about header files :). The disadvantage about those kind of languages is the same VM that helps us in other occasions, it is the thing that can keep managed languages behind purely compiled languages behind in terms of efficiency and speed. The more you do at runtime in addition to the work your app tries to do, the lesser you can do in your own app as CPU time is a fixed quantity.

In OSS implementations, Java already gained the ability to compile the code ahead of time (AOT) and the same can be done with managed languages running on the .NET platform, thus effectively giving developers better and smarter tools that can assist their development work (which should lead to less bugs in their source code). The exciting thing is doing the opposite, bringing the features of VM based languages to languages designed to be statically compiled (as opposed to dynamically compiled... JIT is a form of dynamic "just in time" compilation).

Inserting the LLVM block in the middle of the road between source code and binary form allows this "best of both world" kind of proposition to happen. Instead of compiling your code to a binary form directly, a form which might lose several information that would help you to find and fix bugs in your program, your code is analyzed, decomposed, and adapted to a form designed to run on this simpler low level universal target (the virtual machine). Here, the compiler carries on as much information on the original file and what it tries to achieve as possible as well as knowing the intricate details of this virtual machine our "intermediate" representation of the code we wrote was "compiled" for. In theory, if you developed a C++ "for Fedora Core 12 as released on launch day" runtime you might develop a very similar solution without the help of any VM, but chances are that you do not want to do this much effort every time a piece of the OS changes and that you might want to run your program on several systems... maybe just by compiling it again without porting the complex and tightly system coupled runtime to every different mix of kernel, system libraries, etc... you find. Don't get me wrong, the C++ runtime is not exactly platform agnostic now (the libc you got on your system was compiled to run on it, for example), but it is much more of a lightweight approach than what Java wants for example.

When you take advantage of LLVM in one of the supported languages you allow the compiler to do a much richer optimization and error checking work because it has a lot of information on not only each single file, but on the program as a whole as well as the source code which created it (as you can clearly see by using the Clang's static analyzer integrated into Xcode 3.x).

Example of one thing that changed in Objective-C thanks to the use of LLVM and the modern Objective-C runtime:

Instead of adding an ivar in your class declaration, then declaring the property for it, then synthesize it in the implementation file... you can simply declare a property and the other two steps will be done for you (@synthesize by default).

Now, imagine the IDE having full access to that information by using LLVM technology inside all its code completion, code checking, code editing, etc... needs and what such an integration can yield.Xcode 4's Fix-it is one of those features. I basically gave up on having smart code completion and troubleshooting tools when not dealing with Java... seeing Xcode 4's code highlighting that warned of an error and a pop-over with details about the error and a solution or a workaround to it was something that made my jaw drop :D!

I will stop now with the huge list of inaccurate comments and technical explanations I have probably built up so far and I cannot wait to be able to write more without hitting NDA issues (all I have talked about is available in the public domain).

 

Good afternoon everyone :)!

Thursday, July 29, 2010

No more UV's?

Ptex 3D texturing becomes a reality at SIGGRAPH

It is encouraging when several professional grade 3D packages add support for what seemed "magic" a few years before... one less thing that Pixar artists can mock you for not using it yet ;).

Bonus: http://www.thefoundry.co.uk/products/mari/ (just how many texture painting tools are there?)

test

Test

 

Sony

Sunday, November 22, 2009

Un po' di Java

Non ho mai bevuto del caffé di quella marca, ma il linguaggio di programmazione con lo stesso nome lo trovo potente e molto utile per sviluppare applicazioni in maniera veloce senza sacrificare la qualità di sviluppo e l'usabilità.

http://code.google.com/p/wap-testing-tool/source/browse/branches/0.9.3#0.9.3/src

I due programmi che si trovano su Google Code a quel indirizzo, ed i tool di aiuto a cui si appoggiano, sono stati costruiti per aiutarmi nel lavoro... devo commentarli meglio, ma la struttura del codice e l'organizzazione del programma dovrebbero renderlo facile da leggere e capire :).
Poi... licenza BSD ;).

Wednesday, March 12, 2008

The Elder Scrolls IV: Oblivion

Panajev's journal, Entry #02

Day 9: Bleak Flats Cave? First she does not remember she sent him there then she gives me a fireball spell just in case?!? Is she trying to tell me something? Eathor should be there anyway: I bring him back to the Mages Guild and I get my recommendation... simple as that.

Day 10: Not too simple... that inept wizard probably managed to fill the cave with zombies with all his conjuration experiments... I fail to see how that does not classify as Necromancy, but that is the Guild's internal regulation problem...

Day 10: Saved him! Back at the Skingrad's Mages Guild. Ready to leave for Kvatch finally! I do feel stronger and better prepared.

Day 10: I should be in Kvatch by Nightfall at the latest, maybe earlier if I do not waste time exploring the surroundings, but the adventurous side of me wants to fight zombies, goblins, and daedra as well as finding new artifacts!

Day 10: WOW, what is that gate?!?




Day 10: The city is under siege! The dark lords of Oblivion are once again invading our plane of reality... this must be connected with the murder of the Emperor and of all the known heirs to the throne of Tamriel. Martin is hiding inside the city's church. The guards are courageously taking a last stand against the invading demonic forces: I need to get inside that gate and close it shut!

(Disclaimer: everything in this blog post is purely fictional: no reference to actual people or events is implied or meant.
The use of "I" refers to the "thoughts" the fictional character I play in the video game Oblivion for PS3)

Related Posts Plugin for WordPress, Blogger...