Browsing articles in "Code"
Jan 30, 2012
Klas

Md2 to json converter

Tried to make a simple little “webapp” that converts Md2 models(the old quake 2 model format) into the json format(version 3) that is used by three.js.

You simply open the page, and then drag and drop a *.md2 file and it will be converted and a preview of the mesh should appear. You can then drag and drop jpg/png images for the texture to be previewed as well.
Move the mouse left/right to spin the model, up/down to move the y position. Scrollwheel to scale it.
If it looks ok, enter a filename and hit “Save”.
It should now be downloaded(in Chrome at least, Firefox opens it in a new window).

You can then load in the json files into your three.js projects and use them as morphTargets.

MD2 to JSON Converter (a model to test with, if you don’t have one)

Example of converted model as morphTarget

Stresstest

Three.js

I have only tested this in Chrome and Firefox, so not sure if it works anywhere else. Mostly done as an exercise for myself to understand the format, drag and drop and filehandling etc. But might be useful to someone else out there.

Edit (Mar 08, 2012): Looks like I had the exporter output a horizontally flipped model, should be fixed now. Thanks to @alteredq for letting me know.

Jan 11, 2012
Klas

Pixel particles

For a recent project there was a need for lots of particles, in flashplayer 10. Here´s some of the experimentation that came out of that. There are no preloaders, so just wait for something to show(some are quite heavy).

2x pixels, heightmap/colormap
2x pixels, heightmap/colormap shapes
1x pixels, heightmap 200x200px
1x pixels, heightmap 300x300px
1x pixels, heightmap 400x400px
1x pixels, 3d teapot 50k
1x pixels, 3d teapot 100k
1x pixels, 3d teapot 200k
1x pixels, morph A (click anywhere to morph)
1x pixels, morph B (click anywhere to morph)
1x pixels, morph C (click anywhere to morph)

Lesson learned is that linked lists are way faster than arrays.. ;)

Dec 29, 2010
Klas

Bye 2010

Another busy year have (almost) passed, and more projects behind me. We have one site nominated at The Fwa:s Peoples Choice Awards 2010 this time, it’s July.
Things slowed down a bit towards the end of the year though. Great for me, had time to play with some mobile/android stuff. And later also try a bit of js+canvas and some WebGL. I can really see the potential. Really fun to play with from a developers point-of-view.
I also actually ended up using twitter, it’s a good work-tool/channel to see trends and what people are up to etc. You can ‘follow’ me @oosmoxiecode.
This site is nearing 10 years without a remake/update… lol. I would really like to convert it to a wordpress-solution.. some day.

Have a great 2011 everyone!

Jan 29, 2009
Klas

Flash 10 tests

Have uploaded some inital tests using Flash 10(in the Experiments section). Have also done some tests with Papervision3D. More to come, hopefully.

Feb 25, 2007
Klas

32k swf compo – results

The results from the 32k swf competition are in, they can be found here. The result is from both the online voting and the voting at Icons07.

Feb 2, 2007
Klas

32k swf competition

There have been a 32k swf competition over at flashscene.org. Head over there and check out the entries and vote for my lame entry :P, or whoever you think should win. I have an idea of which entry will win anyway :) (Hint: starts with an A… that was just great stuff!)
Was great fun making it though, although I guess I should have used AS3/Flash9 instead of Flash8.

Dec 10, 2006
Klas

flvPlayer

I´ve uploaded a beta of a simple YouTube style FLV player. It´s meant to be small and hopefully easy to implement. I tried to keep the features simple and not bloat it to much.
Might be useful for someone out there, it´s free to use for anything by anyone :). I might release the source or make it skinnable in the future.

Oct 13, 2006
Klas

Online Ansi Reader

Continuing on the ascii art track, I´ve published an Online Ansi Reader aswell. Made this one in Flash8 with the bitmap stuff.
Check it out and download it here.

More information about ansi-files can be found here.

Sep 25, 2006
Klas

Online Nfo Reader

I´ve made an Online Nfo Reader for a friend of mine. I decided to release it for anyone to use, maybe someone else also founds it useful…
Check it out here, any suggestions for more features are welcome.

More information about nfo-files can be found here.

Aug 10, 2006
Klas

Mod player in Flash 9

André Michelle have developed a modplayer in Flash 9, called 8bitboy(preview). It´s not done yet, but it looks incredibly cool so far.
The mod format was originally developed for the Amiga, read more about it on wikipedia. This essentially means we can create soundeffects etc. on the fly in Flash 9, among other things. Looking forward to try it out when it´s finished.

Oct 8, 2005
Klas

Early Flash 8 tests

I have posted some of my early Flash 8 tests in the examples section. Haven´t been able to play around as much I wanted to though…
The bitmapdata api is what really could change some approaches to making games, damn cool stuff.

Sep 11, 2005
Klas

Ok, just one new game…

Had some sparetime this weekend, so I made a remake of one of Oskar van Deventer’s awesome puzzles. It´s called Threesome. You control three players who have to work together to exit a maze. Have a try.

Dec 19, 2004
Klas

A couple of simple games

Have made a couple of simple games. First up was a dice game, Dice Poker(called Yatzy in swedish). Hadn´t done anything with dices before so that was fun. A game like that should be Multiplayer though..
Second one was BlackOut, a classic simple puzzle game. Have had it on my HD for quite some time, but never gotten around to finish it until now. There´s always plenty of unfinished stuff, can´t be arsed to to graphics for them…

Oct 31, 2004
Klas

New game – RefleX

Have made another remake. This time of great little puzzle game called Reflexion. Hadn´t done anything in quite a while, so it was fun! Try it out.

Sep 2, 2004
Klas

Small director test

Did a small tile engine test in director a while back. Just to get an idea of much faster than flash it would be.. Tile engine test.

Jun 29, 2004
Klas

Physics tutorial

Stumbled across a great physics tutorial by Metanet, creators of the great Flash game called ‘N’. Just had a quick glance, and it seems very impressive… Great work! Have a look.

Jun 6, 2004
Klas

New game – Blockdude

Have made a new game called Blockdude, another remake a great TI-83 game. Have also been playing with FlashMX a little and made this: Pacman with perspective, not really a game but more of a test…

Apr 24, 2004
Klas

A couple of games

Have made a couple of new puzzle games. First up was D-star, from the TI-83 calculator. Then it was Double Maze, remake of a great shockwave game. And finally a remake of a Java game called Eliminator. It was fun to script a little now again, although I was a bit rusty ;)

Dec 27, 2003
Klas

Flashkit “members´ choice Game Awards 2003!”

The members over at the Flashkit Games forum are having “competition”, where any member can nominate a “game” in a number of different categories. Candidates can be nominated until January 1st, members can then vote for a week. Please go check it out! Looks like great stuff…

Sep 16, 2003
Klas

Tile tutorials by tonypa

Tonypa, veteran member of the Flashkit games forum, has made a whole bunch of tutorials about tilegames in flash. They are somewhat based on my shit, but they are more up to date codewise(flashMX and newer). They seem to be very well written, so I recommend everyone to go read them! Great work Tony :)

Pages:12»

Twitter

Categories