Table of Contents

Switch to English Switch to Italian

DAVID Mesh2Flash

3D Internet Presentation for Free!

Mesh2Flash - developed by DAVID Vision Systems GmbH - is a free Flash program that is able to show 3D meshes (obj or dae) online with or without texture. It can be part of any web page and allows the viewer to freely rotate and zoom the 3D view by mouse. Mesh2Flash really renders the object live, instead of showing just a few fixed shots like many other “3D” viewers do. It can directly load the OBJ or DAE files, which are common 3D file formats - with or without texture. Only Adobe Flash Player is required, which has a diffusion rate of >98%. So if you want to present your 3D models on the Internet, e.g. in your online shop or a forum, Mesh2Flash is the right tool for you!



(rotate with left mouse button!)

User Interaction

The user can rotate the view by holding the left mouse button and moving the mouse left-right (yawing) or up-down (pitching). Also the mouse wheel can be used for zooming in/out.

There are some keyboard commands, too:

How to Prepare Your 3D Data

Since Flash is rather slow in parsing files and 3D rendering, Mesh2Flash should only be used with simple meshes (only a few thousand triangles). A nice texture can make the mesh look great.

Some hints:

How to Use Mesh2Flash to Show Your 3D Data

You have to include Mesh2Flash.swf in your document (web page, wiki page, forum post) and give it some parameters, mainly the file parameter giving the URL of your mesh file. Flash's security policy requires that Mesh2Flash.swf and the mesh files are on the same server/domain! So if your mesh files are not located on a david-laserscanner.com page but on some other server, you will have to download and install Mesh2Flash there.

General hints


Using Mesh2Flash for meshes located on david-laserscanner.com (Wiki or Forum)


Using Mesh2Flash for meshes outside david-laserscanner.com

HTML Syntax

Use the following syntax in your html file to show a 3D mesh on your website. Of course replace the red and blue parts with the correct URLs. Both have to be located on the same server!

<object data="http://<some.server>/Mesh2Flash.swf?file=myMesh.obj" type="application/x-shockwave-flash" width="800" height="600">
     <param name="movie" value="http://<some.server>/Mesh2Flash.swf?file=myMesh.obj">
</object>

myMesh.obj is the absolute or relative path to your mesh file (obj or dae). Adjust the width and height values if you wish.

Wiki Syntax (Dokuwiki)

For a Wiki on your own server

<html>
     <object data="http://<some.server>/Mesh2Flash.swf?file=myMesh.obj" type="application/x-shockwave-flash" width="800" height="600">
          <param name="movie" value="http://<some.server>/Mesh2Flash.swf?file=myMesh.obj">
     </object>
</html>

For the DAVID Wiki

If you want to show a mesh file which you have uploaded in the Wiki's Media Files (e.g. in the folder your_name under user_page), use a Wiki code similiar to this:

<html>
     <object data="http://www.david-laserscanner.com/freeware/Mesh2Flash/Mesh2Flash.swf?file=/wiki/_media/user_page/your_name/your_mesh_file.obj" type="application/x-shockwave-flash" width="800" height="600">
          <param name="movie" value="http://www.david-laserscanner.com/freeware/Mesh2Flash/Mesh2Flash.swf?file=/wiki/_media/user_page/your_name/your_mesh_file.obj">
     </object>
</html>

Forum Syntax (phpBB 3)

For a Forum on your own server

Use the following code in your forum post:

[flash=800,600]http://<some.server>/Mesh2Flash.swf?file=myMesh.obj[/flash]

For the DAVID Forum

Use the following code in your forum post:

[flash=800,600]http://www.david-laserscanner.com/freeware/Mesh2Flash/Mesh2Flash.swf?file=myMesh.obj[/flash]

Attaching an OBJ file to a post and showing it in Mesh2Flash

If you want to attach a mesh file to your post and show it inline, the question will be: What is the URL of my attachment? Use the following way to find it (OBJ only!):

  1. Write your post and attach the OBJ file (this extension must be permitted by forum admin)
  2. optional: attach the texture image file
  3. Click “Preview”
  4. Look at the preview, the attached OBJ file is visible as a link. You can see the exact link by holding your mouse pointer over it or right-clicking it - this depends on the browser you are using. The link will be similar to this:
    http://www.theserver.com/forum/download/file.php?id=2136
    This id number is what were are interested in. It is different each time.
  5. Place the code above somewhere in your post, using that link as the file parameter for Mesh2Flash, but replace the question mark ? in the link by the number sign # (the ? directly behind Mesh2Flash.swf is not to be replaced!)
  6. optional: use the link to the texture image attachment as the texFile parameter. Again, replace the question mark ? in the link by the number sign #.


Example without texture: (Note where the ? has been replaced by a #)

[flash=800,600]http://www.david-laserscanner.com/freeware/Mesh2Flash/Mesh2Flash.swf?file=http://www.david-laserscanner.com/forum/download/file.php#id=2136[/flash]


Example with texture: (Note that two ? have been replaced by #)

[flash=800,600]http://www.david-laserscanner.com/freeware/Mesh2Flash/Mesh2Flash.swf?file=http://www.david-laserscanner.com/forum/download/file.php#id=2136&texFile=http://www.david-laserscanner.com/forum/download/file.php#id=4242[/flash]


Of course it is possible to link between Forum and Wiki as long as they are located one the same domain.

Parameters

Beside the parameter “file”, there are some optional parameters you can define. They have to be separated by &. Their order is arbitrary, but upper/lower case is relevant!

Example:

...Mesh2Flash.swf?file=http://www.david-laserscanner.com/freeware/Mesh2Flash/cow.dae&pitch=30&yaw=90&rotate=2

Texture

Texture in OBJ

With MTL File

Usually, beside the .obj file, there is a material file (.mtl) in the same folder with the same name. For example, greatMesh.obj and greatMesh.mtl. In that mtl file, the texture filename must be given. E.g.

map_Kd myMesh.png

Of course, when you save a textured scan with DAVID, these files will be create accordingly.

Without MTL File

If there is no such mtl file, or if you are using an OBJ posted as a Forum attachment, you can define the location of the texture file separately by the texFile parameter (see above).