• home
  • forum
  • my
  • kt
  • download
  • home / 2D Graphics / Flash / 3D

    Papervision 3D Programming Tutorial - Mesh Splitting

    Author: 2009-05-09 15:23:42 From:

    New to Papervision 2.0 is the ability to slice a mesh into two parts. If you have every watched the movie Cube then you'll have an idea what I am talking about :). Seriously though, this does have some neat uses. In fact the first time I became aware of this functionality was because of a Papervision demo that allowed you to smash up a pane of glass and then have it shatter and fall to the ground. Unfortunately I can't find the demo again (I'll link to it here if I ever do find it), but it did pique my interest.


    This sample application is a little simpler. It shows you the steps you go through when splitting up a mesh. The first stage is to display a regular old mesh. You'll then see a plane showing where the cut will take place. Then we make a call to MeshUtil.cutTriangleMesh, supplying it with the original mesh (any TriangleMesh3D class will do, and our Quake II MD2 model fits that bill) along with the splitting plane. Finally the two new meshes are displayed independently.

    While it seems fairly trivial, this process could be used in many ways. You could show a space fighter being destroyed by randomly slicing it up a few times and then having the various pieces explode. You could also use it to demolish a wooden door into a number of splinters with an explosion. As always the possibilities are limited by your imagination (and a low polygon count :P).

    discuss this topic to forum

    relation tutorial

    No information

    Category

      3D (35)
      Math Physics (18)
      3rd Party (10)
      Navigation (70)
      Actionscripting (201)
      Optimization (17)
      Animation (158)
      Projector (11)
      Audio (54)
      Special Effects (170)
      Backend (26)
      Text Effects (89)
      Drawing (34)
      Tips and Techniques (51)
      Dynamic Content (34)
      Tricks (8)
      Games (105)
      Utilities (23)
      Getting Started (96)
      Video (59)
      Interactivity (46)
      Web Design (35)

    New

    Hot