Tuesday, June 23, 2009

3D Studio Max => Valve Source SDK & Hammer

I've started a little project once again and once again it's an exporter for 3D Studio Max. I've seen that there is an exporter for models, yet there is none for maps. After all my experience with Hammer, i have to say i'm surprised nobody tried that yet. Hammer isn't really what i would call "intuitive" and the low number of beautyful user-maps so far sorta proves my point (at least to me).

Nevertheless, i started my own exporter script. So far it's kinda not even alpha, but i guess the results are promising. I can export all objects that can be converted to mesh objects (like boxes, cylinders, polygons, meshes of course, etc...).

Download MapExporter.zip

Hook Nr. 1: It only works as far as these objects are convex (just like in Hammer). A concave objects (like say a pipe) has to be created out of convex objects. I'm working on a solution of that problem.

Hook Nr. 2: The UV-coordinates in the map-file are in world space, while in max they are stored in UV-space. This is a major pain in the ass to convert, the moment a face is in an arbitrary position (both in the world and in uv-space) there has to be a lot of math shit evaluated to get to a conversion matrix. So far my poor little artist brain can't handle the pressure, therefore i integrated a generic uv format so far. It looks alright for general texturing, so i'll put that back in priority.

Hook Nr. 3: The geometry shouldn't be too detailed. I've exported a normal sphere with 16 segments as a test and the result was... "okay". The problem comes from two issues: For once 3D Studio MAX gives no proper access to UV-data via Poly's, so i have to use Meshes. This mostly doubles the amount of faces, which isn't a problem most of the time, as Source works with planes. Only if loads of planes connect in a single point, you will encounter some problems for sure.

Anyway, take a look of my results so far:





For that last picture i created a temporary light to have some contrast. So far i don't export lights, but that's next on my list.

EDIT:

Okay, lot of progress, by now the exporter is (at least on my machine :-D) in a quite workable state, as these images prove:





For these images i didn't have to start Hammer at all, everything from modelling to lighting to exporting was done purely through my script. Of course for finishing and setting up entities i'll still rely on the Valve-editor, but hey, at least some of the more tedious work is eased :-D

Wednesday, June 03, 2009

More Spy Videos...





Lets get physical

E3 hat begonnen und die grossen Game-Hersteller versuchen sich gegenseitig die Show zu stehlen. Da müssen natürlich Superlativen aufgefahren werden, ganz besonders der lukrative Casual-Markt will beeindruckt werden.

Der Platzhirsch Nintendo präsentiert hierbei wenig innovativ die MotionPlus expansion device, welche anscheinend allein die Präzesion hochschraubt. Ansich eine gute Idee, trotzdem bleibt der schale Nachgeschmack, dass das ganze im Prinzip nur ein Patch einer existierenden Technologie ist. Sozusagen funktioniert die Wiimote erst mit diesem Ding "wirklich".

Microsoft hat da schon ein interessanteres Blatt in der Hand, das Project Natal. Ob der Name jetzt darauf anspielt, dass es möglicherweise zu Weihnachten in die Läden kommt oder Microsofts Trademark-Agentur mal wieder einen Anfall von Kreativität hatte, wird sich wohl nie ermitteln lassen. Der deutsche Wikipedia-Eintrag meint zur Namensfindung:
Das Projekt Natal ist nach dem Herkunftsort des Entwicklers Alex Kipman, welcher das Projekt ins Leben gerufen hat, benannt. Natal ist eine Stadt an der nordöstlichen Küste von Brasilien.
Soviel also zum Namen. Was mich eher irritiert ist das Promotion-Video:



Es startet mit einem Teenager, der ein Kampfsportspiel spielt, die Tech dahinter nimmt offensichtlich seine Bewegungen ab und kopiert sie auf den virtuellen Prügelmann, der diese Bewegung seinem Gegenüber in Form eines Schlages weitergibt. Soweit so gut, das klingt ja alles noch schön plausibel. Szene zwei zeigt dann die ganze Familie beim Formel-1-Fahren und ausgerechnet das pupertierende Töchterlein lenkt den Wagen (beeindruckend kompetent übrigens). Microsofts Beitrag zur Anti-Rollenerziehung? Angst vor Imageverlust durch protestierende Frauenverbände? Noch bizarrer triffts uns ein paar Szenen weiter: Mutter und Tochter spielen Fussball! Okay, neutrale Geschlechterrollen hin oder her, aber das ist lächerlich. Speziell im Vergleich mit der einer späteren Szene, wo selbige Tochter dann wieder brav Kleider mit einer Freundin tauscht. Wo lebt die Firma, die solche Promotionvideos kreirt? Alles wird aber getoppt durch mein Lieblingsbild, jetzt mal alle raten, was diese Familie gerade spielt:



Da könnte man jetzt alles mögliche hineininterpretieren, aber es ist ganz harmlos: ein Ratespiel. Den Vogel schiesst jedoch Sony mit deren Präsentationsobjekt ab:



Ansich ein Motion Sensor Controller ident zur Wiimote, jedoch könnte die Form den einen oder die andere dazu verleiten, es zweckzuentfremden. Der Sony-Mann liefert dazu noch das passende Kommentar:
"Sports are a kinda no-brainer, but you can hold anything in your hand."
Und falls das noch zu subtil war, hier ein passendes Rätsel: Spot the PS3-Controller!



Hmmm... Denkt irgendwer, woran ich gerade denke? Nein, das nicht. Das auch nicht. Dachte eher an was symbiotisches wie z. B. eine Sony-Microsoft-Kooperation: