Flash Player 10 experiment #1: Cloth Texture Mapping

Cloth Demo

This demo is a combination of the new drawing API features like drawTriangles combined with an object made from APE (ActionScript Physics Engine). The texture that is mapped across the shape in this demo can be an image, video, pixel bender or simple color.

In the color demo you can see that the cloth has two sides. This is done with the concept of backface culling. When drawing triangles, you can specify if positive or negative triangles should be bypassed in rendering. This means that for a 3D app, you don’t need to double render, but for this far simpler example you can draw the negative triangles with a different texture by doinga second fill process where you don’t draw the positive triangles.

more to come!

Cloth demo detail images

BTW, if you are using APE and want to export to for Flash Player 10, you will need to go through and rename the Vector Class to something else since it will conflict with the new Vector data type.

18 thoughts on “Flash Player 10 experiment #1: Cloth Texture Mapping

  1. Runs fine on XP but on Linux it really stutters

    I tried both FF3 and Opera, both have FP 10,0,12,36

    Linux is Ubuntu Hardy and XP is running as a VM in virtualBox.

  2. Pingback: Hebiflux » Flash 10, des applications et quelques expérimentations

  3. Pingback: Flex Monkey Patches » Blog Archive » Rubbernecker’s Review - Week 18

  4. Pingback: Flash Player 10 Fabric Demo | Geek.blog

  5. Göğüs Büyütücü, Göğüs Küçültücü, Göğüs Dikleştirici, Bölgesel İnceltici, Tüy Azaltıcı, Bitkisel Yağlar, Kadın Güzelliği, Kişisel Bakım Ürünleri

  6. Pingback: Animal sex video.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>