[Logo]
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Register] Register / 
[Login] Login 
Having trouble importing scale data correctly from 3ds file.  XML
Forum Index » Flash
Author Message
Sebaa


Joined: 14/04/2010 07:52:17
Messages: 4
Offline

Hey all,

I'm currently importing a 3ds file into my flash application. The file imports without issue, and looks as expected. Within the model there are various points defined by planes that I would like to display sprites.

Currently, I iterate through all the Object3D's in the 3ds file. When I find the specific plane I wish to replace with a Sprite, I generate a new Sprite3D object and place it at the same x,y,z coordinates as the plane. I then do not weldTheVerticiesAndFaces of the plane.

This is where I start to run into problems. If I then set the Sprite3D to be the same scale as the plane I'm replacing, the Sprite3D is HUGE. I have to manually define its proportions. In addition, although the x and y coordinates seem fairly accurate, the z positioning seem's slightly out. However this is possibly due to the reference point of the Sprite3D.

The scale is so dramatically out of proportion that I am almost certain I am going the wrong way about achieving what I want.

In short, what I wish to do is thus:
To iterate through a 3ds file and replace certain Object3D objects. Then use the coordinates and scale values of the Object3D to position and scale a dynamically generated Sprite3D object.
davidejones

[Avatar]

Joined: 23/07/2010 13:30:42
Messages: 125
Location: London, United Kingdom
Offline

would it not be easier to convert the .3ds to actionscript classes using the meshutility and do it like that?
[Email] [WWW]
 
Forum Index » Flash
Go to:   
Powered by JForum 2.1.8 © JForum Team