PDA

View Full Version : 3DFS :: 3D Flash Studio (3D Engine for Flash)



staaffy
May 21st, 2005, 05:50 AM
Abstract

3DFS is a 3D engine written in AS2 (ActionScript 2) compatible with Flash Player 7.0 or more. download [85KB]... (http://3dfs.alpha-sigma.net/3DFS.rar)

Features

3DFS's features are :

polygonal object rendering (a face can be any 3D convex polygon);
camera management (track, dolly, tumble, pan & shake functions);
visible surface determination via S-Buffer implementation (perfect object intersection);
clipping (front, left, right, back planes);
backface culling (per object or face enabling);
flat shading with lighting coefficients : ambiant, diffuse & specular;
variable rendering resolution and simple variable blur rendering;
user defined object mouse events : onMouseOver, onPress, onRelease, etc;
usual math transformations : scaling, Euler & quaternion rotating, etc;
XML format scene loader;
command line 3DS Max '.ASE' format converter ('tri' or 'quad' modes available);
Limitations

Its present limitations are :

flat shading;
no texture handling;
no transparency handling;
only one light in the same position of the camera;
etc,...
Examples

cube (http://3dfs.alpha-sigma.net/cube/)
ring (http://3dfs.alpha-sigma.net/ring/)
Screenshots

./cube

http://3dfs.alpha-sigma.net/cube/cube.gif

./ring

http://3dfs.alpha-sigma.net/ring/ring.gif


Credits

project web site : http://3dfs.alpha-sigma.net (http://3dfs.alpha-sigma.net/)

home web site : http://www.alpha-sigma.net (http://www.alpha-sigma.net/)

G
May 21st, 2005, 08:20 AM
wow that is great although the examples didn't look that good quality but that is some great AS right there.

:)

staaffy
May 21st, 2005, 09:16 AM
wow that is great although the examples didn't look that good quality but that is some great AS right there.

:)

Actually, the rendering resolution is variable. By default, it's set to a medium quality for performance consideration. But you can increase the rendering resolution with the 'resolution' control in the top-right corner in the examples.

DDD
May 21st, 2005, 12:45 PM
So it can read 3d frmats from max and LW?....Looks good. If it can use complex models that would be great. Or it is just used to make basic primitives?

staaffy
May 21st, 2005, 01:11 PM
There is a command-line program called '3dsMaxImport' which converts ASE format to 3DFS's XML scene description format. The two examples above have been created in 3DS Max. All I did is 'Save as...' in 3DS Max in ASE format and then run the importer. The next step could be a MAX format importer which could avoid to pass by the ASE format.

The main limitation is the Flash Player itself. Indeed, with more complex scenes, the engine tends to be very slow because of the Player. I really hope that Flash Player 8 will interpret ActionScript 2 a lot faster and allow pixel level manipulation.

senocular
May 21st, 2005, 03:02 PM
if its any hint, read the last paragraph in
http://processing.org/faq/#flash

thoriphes
May 21st, 2005, 03:18 PM
if its any hint, read the last paragraph in
http://processing.org/faq/#flash
I see you got that e-mail as well.

senocular
May 21st, 2005, 04:08 PM
I see you got that e-mail as well.
email? :huh:

Phlashman
May 21st, 2005, 04:28 PM
Good job! I really wanted a 3DS Importer. I'm still kind of stuck on how to use it though :D

Especiallly, the 3DS Importer automatically encounters an error and is forced to quit each time I run it.

staaffy
May 21st, 2005, 08:07 PM
I fixed a little bug. Sorry about that. You can download the importer once again and it should work.

3dsMaxImport.exe your3DSMaxSceneFile.ase your3DFSSceneFile.xml tri

or

3dsMaxImport.exe your3DSMaxSceneFile.ase your3DFSSceneFile.xml quad

The 'tri' mode keeps the triangular faces and the 'quad' mode tries to convert the objects' triangular faces into quadrilateral faces (better performance but not always possible).

Finally, it is recommended to convert your objects as editable poly before.

I know that it's not yet a very pratical importer but it works ;)

senocular
May 21st, 2005, 08:29 PM
You did good staaffy ;)

Phlashman
May 21st, 2005, 10:17 PM
Sorry, staaffy, but I'm still getting the problem. That is, if the link at your first post was updated with the new importer. It basically says that it has encountered a problem and needs to close. Here's some debugging info:

My OS - Windows XP SP2
My Ram - 768 MB
MY Video Card - ATI Mobility Radeon 9200 PRO 64MB
My Processor - Intel Centrino 1.6 GHz

Hope that helps ;).

After further investigation, it seems that the file sizes of the two Importer files have not changed. Have you uploaded it yet?

DDD
May 21st, 2005, 10:23 PM
This is very cool, but I am trying to think a god use for it. Other than like a virtual thing where you can rotate and object, but then most 3d apps have the ability to export that. Could you shoot me a good practical use for it? It is more curiosity than anything. But I am into 3d but suck AS or AS2. So this tool may be way out of my league basically.

Phlashman
May 22nd, 2005, 09:35 AM
Basically, I viewed it as an opportunity to allow the viewing of a 3d object. Or, you can have it walk around a 3D world, clicking things to open windows or manipulate "where you are". It is all very possible, I just hope 8Ball processes this much more efficiently. DDD, did u get a problem with the 3DS Max Importer?

thoriphes
May 23rd, 2005, 09:04 AM
email? :huh:
oh, i received an update e-mail from processing after it's been so long since hearing from them.