Wednesday, August 30, 2006

Lux 3D with multiple Light Sources

I have just added lighting to Lux... allowing you to add as many light sources as you like. If you have a moment, would you mind testing the performance? If you press and hold on the flash it turns depth of field on... can you comment on your os/browser/cpu and the two speeds(with/without dof)?

Lighting Test

Friday, August 25, 2006

3D Depth Sorting Issues

I am having a problem with depth sorting in a 3D environment... I have tried numerous approaches but come across problems with certain situations.

My current method involves finding the z value of an objects point furthest from the camera and sorting objects by that depth.

Consider this 3d scene:




From a side view with camera shown:



You can see that the grid is further away than the cube, the depth sorting seems to be working fine. But say if I move the camera to be below the grid problems start to occur:



The depth sorting routine still thinks the grid is further away and draws the cube on top of the grid! Has anybody got any experience with this? Can anybody give me some tips?

Wednesday, August 23, 2006

Lux Performance Test

If you have a moment to spare, would you mind trying this performance test? If you press and hold on the flash it turns depth of field on... can you comment on your os/browser/cpu and the two speeds(with/without dof)?

Thanks!

Lux Performance Test

Tuesday, August 22, 2006

Introducing Lux

Along side isometric games I have been working on a 3D framework named 'Lux' in AS3, originally started as a AS2 project a while ago. The main aim of this engine is for it to be usable in a sense of performance and have a simple API to integrate cleanly into projects. I have seen many 3D engines done in flash but they are over complicated, try to do too much and as a result run slow. Here is an early demo of Lux...

Lux Test

Wednesday, August 16, 2006

gotoAndStop Crash Update

Looks like Adobe are one it... I had an email from one of the Flash Player QA guys asking for sample project that replicates the the crash. Hopefully I get an answer soon.

Sunday, August 06, 2006

gotoAndStop crash Example

Here is an example of that gotoAndStop crash. Visit the following url move the character about randomly.

Warning: This will make your browser crash.

gotoAndStop Crash Example

Actionscript 3 Performance

I am currently porting an Actionscript 2 game to Actionscript 3. The game has an isometric view and has collision detection, physics etc...

In the AS2 version if there were more than 6 blocks the game started to chug... as you can see from this demo I can place over 100 blocks on screen at once, all moving, with no slow down!

AS3 Performance Test

Saturday, August 05, 2006

gotoAndStop causing browser to crash



This bug is driving me up the wall. I am embedding a movieclip into one of my classes using this method:
[Embed(source='/sprites.swf', symbol='PlayerSprite')]
private var PlayerSprite:Class;



I need to use gotoAndStop to reflect a state change... e.g.:
if(_isMoving){
mc.gotoAndStop("walk_"+angle);
}else{
mc.gotoAndStop("idle_"+angle);
}



The script works but it causes both IE and FireFox to crash completly at random times when gotoAndStop is executed.

Has anybody else experienced this?