AS3 Perspective Texturemapping
October 19th, 2005
This is the first step of a long journey. The example parses 3ds (3dmax) files and renders the scene pixel by pixel with a 'real' zBuffer for exact z-Sorting and a simple distance shading. There is a lot of space to increase performance. The most problem is drawing the pixels on the screen. The calculation of 236 faces connecting 190 vertices while clipping at the front plane is no performance problem. Commenting out the setPixel row, increases the FPS to 120.
Note: This example requires FlashPlayer 8.5
perspective texturemapping part 1 | based on Mikael Kalms 1997
Filed under: actionscript
34 Responses to “AS3 Perspective Texturemapping”
-
franto Says:
October 19th, 2005 at 11:39 pmtoday I was thinking when it will be available first AS3 example to parse some 3D file format and render :) and it was after few hours.
Andre, respect :)
-
Ash Says:
October 20th, 2005 at 2:40 amHey,
Did you try the optimize=true compiler option to see if it has an effect? I’d be interested to see!
-
X$!VeBL0G, Campbell Anderson » Says:
October 20th, 2005 at 3:20 am[...] distance shading" If you have the player installed go check out his blog post HERE Or for those of you without heres a quick [...]
-
Franto.com Flash blog Says:
October 20th, 2005 at 9:05 am[...] source code) Moving MovieClips in AS3 (source code) ActionScript 3.0 – 3D >> 2 sites AS3 perspective texturemapping Andre Michelle (parse 3ds – 3d [...]
-
Peter Says:
October 20th, 2005 at 2:34 pmwow that’s just insane André — do you parse the 3DS at runtime in that example or do you first convert to some sort of XML format?
-
André Michelle Says:
October 20th, 2005 at 3:34 pmI’ve loaded the 3ds file as a binary into the URLLoader and parse it in runtime. This is really work, I don’t want to do :)
But I could imagine, that will have a lot of parsing classes for several formats in future.
Cannot wait for a swf-parser and swf-builder(!). -
Franto Says:
October 20th, 2005 at 3:45 pmAndre, can you share sources with us? :) It’s great example, and we can learn new AS3 from your example
-
André Michelle Says:
October 20th, 2005 at 3:55 pmYes, of course I will. Before I have to clean up the code. It’s horrible :)
-
Franto Says:
October 20th, 2005 at 4:02 pmSure :) Everyone knows, that code in test swfs, examples it’s not clean :) Anyway, not clean up code is better than nothing :)
-
George Says:
October 20th, 2005 at 7:09 pmWow! Great job!
-
Flash the Future » ??AS3?3ds????? Says:
October 20th, 2005 at 9:13 pm[...] October 21, 2005 at 4:12 am · Filed under ActionScript ????????andré michelle? ??URLLoader?.3ds??????? [...]
-
Firdosh Tangri Says:
October 21st, 2005 at 5:45 amJust simple amazed , as usual great work :)
-
Houdas Says:
October 21st, 2005 at 9:41 amAndre, you really are pushing the limits :)
-
Blog von Jens Franke » Actionscript 3.0 Says:
October 23rd, 2005 at 11:00 am[...] uch einfach mal folgende Blogs an: Ralf Bokelberg, André Michelle und Joa Ebert. Wer nicht genug hat, der findet im Blog von Ho [...]
-
blog.je2050.de Says:
October 23rd, 2005 at 9:37 pm[...] t slows everything down are the function calls. André mentioned this also when he did his perspective texturemapping. Removing the one setPixel line re [...]
-
Peter Strømberg Says:
October 25th, 2005 at 9:55 amHow the hell you got that out of Flex 2 I may never know. Could you try changing the bitmaps out with a cubic panorama? If I’m not mistaken you’ve invented the worlds first full 3D flash panorama viewer. In which case I’ll be a very happy bunny.
If you havn’t got any cubic panorama pictures I’ve uploaded some here…
http://www.hypergis.com/demos/pano/cube_pics.zip -
p4m Says:
October 25th, 2005 at 11:29 amInstalled Flash Player 8.5 for OS X
but this doesn’t work on mac
np with winxp
anyway very nice sample
thank you -
imran Says:
November 4th, 2005 at 1:49 amhello…..
can anyone help me enter data into mysql database
from a flash form using coldfusion components ?i’m using web services and simply want to pass data from my flash form to my cfc while staying in flash…
any actionscript (or coldfusion code ‘cfc’) that anyone could provide or even links to other ressources on this specific topic would be awesome…
if someone could help me with this process i would be greatful…..
thank you in advance…
Imran Hashmi
http://www.visionstudio.co.uk -
Franto Says:
November 23rd, 2005 at 3:24 pmstill have no sources :))) I’m really trying to make it alone, but have problems :)
-
Franto Says:
November 26th, 2005 at 9:15 pmso I’ve made one. Just extracting vertices and faces :)
Working demo: Parsing .3ds Octopus -
Alan Shaw Says:
February 2nd, 2006 at 1:45 amAndre, your demo here worked in player 8.5 alpha, but it doesn’t work in player 8.5 beta!
I hope that can be fixed with a simple recompilation…
-
Iago Says:
March 22nd, 2006 at 1:16 pmI cannot find the sources of this sample. Did you publish it yet??
P.D.: Seems AS3 is as fast as Java!?!?! Incredible.
-
Jo_banana Says:
August 23rd, 2006 at 12:19 pmi got those error messages:
VerifyError: Error #1014: Klasse flash.display::TextField wurde nicht gefunden.
ReferenceError: Error #1065: Variable Main_Texture ist nicht definiert.
ReferenceError: Error #1065: Variable Main ist nicht definiert.
mozilla 1.0.7 on xp pro with fl.pl. 9
-
Stan Says:
February 14th, 2007 at 2:06 amJo_banana,i had a same problem. You have found the decision?
Thenks. -
Andrew Paul Simmons Says:
June 7th, 2007 at 4:49 pmYou need to declare the class public in most casses.
Check it out>> -
Groups Says:
August 23rd, 2007 at 2:01 amHow the hell you got that out of Flex 2 I may never know. Could you try changing the bitmaps out with a cubic panorama? If I’m not mistaken you’ve invented the worlds first full 3D flash panorama viewer. In which case I’ll be a very happy bunny.
-
Sohbet Says:
October 7th, 2007 at 9:18 amIt seems like you should have kept this new theme closed-source until a couple of weeks before the 5.0 launch… (don’t know if that was possible at all?) However, I definitely feel it’s not drupal that made a mistake here, but the wordpress team.
-
DeCabeza.net » Colección de link útiles sobre ActionScript 3 - desarrollo web, tutoriales, video tutoriales, videotutoriales, flash, photoshop, php, mysql, dreamweaver Says:
June 27th, 2008 at 4:33 pm[...] AS3 perspectiva de mapa de texturas Andre Michelle (parsear 3ds – archivo de 3dMax y renderealo) [...]
-
klima servisi Says:
April 22nd, 2009 at 11:57 pmAndre Michelle » Blog Archive » AS3 Perspective Texturemapping great article thank you.
-
evden eve nakliyat Says:
April 30th, 2009 at 11:55 amAndre Michelle » Blog Archive » AS3 Perspective Texturemapping great article thank you.
-
Burun Estetiği Says:
May 2nd, 2009 at 6:42 pmAndre Michelle » Blog Archive » AS3 Perspective Texturemapping great article thank you.
-
web tasarım Says:
May 5th, 2009 at 9:23 amAndre Michelle » Blog Archive » AS3 Perspective Texturemapping great article thank you.
-
sohpet Says:
May 16th, 2009 at 10:04 pmI think, if you will keep writing ! Thank you !!!!!
-
sohbet Says:
June 9th, 2009 at 3:49 pmI’m really very useful to follow a long-time see this as a blog here Thank you for your valuable information.

