source code for a simple curved surface-particle colliding simulation algorithm

January 1st, 2011

collide

Very simple but useful algorithm, it has been used in my golf game, compare to setup a whole 3D physic engine in the game, using this class is far more easier and faster.

the code is wrote in as 2.0

Continue reading »

Golf Game with flash 10.1 api

January 1st, 2011

golfgametitle

I made a Golf Game last month for the company I joined in recently ,this Golf game is based on the new flash 10.1 API, thanks for the enhanced matrix3d class,  my lite 3D flash engine can do more  serious 3D rendering than before.

The movement of the golf ball is calculated real time by a very simple terrain collide algorithm , each time when the colliding happen, it will recalculate the angle of velocity based on the slop of terrain’s colliding point .

I also made a scene edit tool for editing the terrain, plants and physical properties, it’s based on Adobe AIR.

Continue reading »

Berlingske 260 years timeline

June 15th, 2009

bl

This is a Timeline for the Newspaper company Berlingske, Berlingske have very very very long history, it funded in 260 years ago? even older than Hans Christian Andersen

This is just one of the small projects when I work in  in2media.dk

Very simple website, no complicate technology.

http://www.260.dk/

Seam Carving for Content-Aware Image Resizing on flash platform

March 4th, 2009

 

I’ve read the paper about seam carving technology long time ago ,the arithmetic is invented in 2007, the main idea for this technology is about analysis the content of image and find the prior removable pixels when resize it, to make this work ,they find out a energy function to evaluate the importance of each pixel, and then find out the less important pixel path though top to bottom(or left to right), finally remove all of the pixels(or insert new pixels) align the pixel path , which been named as “seam”.

Continue reading »

live camera face detection in flash

February 12th, 2009

My master’s graduation thesis is about use computer to simulate the human painting process to draw a oil painting , I’v start some previously study of computer vision, this week I did this project for live face detection. I picked up this elegant approach from several papers and integrate them together. The reason I didn’t use openCV is because I’d like to learn some basic knowledge underneath image processing.

the program is still not stable enough compare to openCV’s Harr-feature based approach, but slightly faster.

Continue reading »

make some flower: flashplayer 10 3D painter

November 14th, 2008

This is funny. press mouse and draw the vine in the 3D space, and grow up some flower…

also with replay and record function.

Sometimes you will get bug when play the record , but I don’t care…I’m so tired, I have go to sleep now…

Source code always here when you open this link, and alwasy messy.

Continue reading »

panorama in flashplayer10

November 12th, 2008

last year when I develop the panorama player in flashplayer 9, I have to build up extremelly complex 3D engine frist to support 3D matrix calculation and picture  3D distortion, for distort a picture in flash player 9, I have to subdivide the picture into a triangle matrix and render each triangle out,  the efficiency is terrible. now in flash player 10 ,to bulid up the 3d space is extremelly easy.

by the way ,the picture is shot by myself, in in2media office with my new fish eye lens!

Continue reading »

GoogleMaps+flashplayer10 3D experiment

November 10th, 2008

I’m working on flash player 10 3D programming these days, When I got an assignment to experiment google maps api, I tried combine it with flash player 10 3D engine, the result is looks far more fancy than I thought.

you can drag the red point to the map, move the map, rotate the 3D surface, even the usability sucks, but it’s cool! now I know why everybody like use the maps to make demo for their new equipment or any kinds of digital product showcase, the only reason is because demo made by map is fancy, even it doesn’t make any sense.

flash plyer 10 make 3D matrix calculation extremelly easy, this demo is only spend 3 hours work, if change to flash player 9,would be spend more than 1 day.

you should install flash player 10 to play this swf file.

open this link you can download my messy source code.

Continue reading »

3D video search user interface

October 1st, 2008

I did this project 2 years ago, in as2, just I have long time haven’t updata any new article in my blog,so I’m put it here when I found this file in my harddriver .

the Z dimension is for indicate correlativity with key world and the X dimension is use for different correlativity can be choose , such as “most visit” , “highest rank”.

user can scroll the camera by flip mouse wheel, and the result would refresh when get in to next “page”.

user have 2 different kinds of views,: 2D and 3D.

The demo haven’t connect with server yet ,so woun’t return any real result.

http://www.hxflyer.com/works/3Dvideosearch/