posted 01-16- 05:11 AM
The script basically resets the matrix of the MAX objects to the identity matrix, exports the files and then reverts it back to what it was before. Since Matrices include scaling as well as rotational and positioning information what could be happening is that you have scaled the objects at some stage and this is being reverted when the script is run.I will be writing a full set of instructions for working with MAX and OPS, using the scripts and OPS import when I get the importing etc the way I want it.(It's close now, you're going to love the auto positioning thing
)
One of the fundamental things is to get the object while in its default state, i.e. when its matrix is the identity matrix, the way you want it to export to OPS.
Basically when you do any rotation, positioning and scaling mirroring etc, at the object level you are just modifying the objects matrix, not the actual mesh. To prepare it for OPS you need to get the scale, rotation and position right without modifying the matrix. Once this is done you can do all of the rotating and moving at the object level without affecting the way the object is exported, if you are using the script. To do this you can follow the following proc.
Note that type in means type in the MAXScript listener window.
1. Type in 'old_mat = $.transform' to save the currently selected objects matrix
2. Type in '$.transform = matrix3 1' to revert the currently selected objects matrix to the identity matrix.
3. Using edit mesh and sub-object vertex, scale and rotate until it looks the way you want it. The positioning part is achieved by the pivot point so it’s not necessary to move the vertices now, although you could if you want.
4. Get out of vertex edit mode and type in ‘$.transform = old_mat’ to revert the object back to its old matrix. Now you might need to do some rotation etc at the object level to get it in the right place. Alternatively you could just forgo this step and just move it from the ‘default’ position.
The ‘$’ just means the selected object(s). You could replace this with $name to deal with a particular object explicitly.
You might think that the reset Xform util will do the same as ‘$.transform – matrix3 1’, but it doesn’t appear to
If you need to know anything else let me know.
I don't have any bright ideas for the texture thing. Its possible that since they are showing up in OPS OK (i looks like that from here anyway) that you are using a format not supported by SDOE. I pretty much included all the TIFF encoders I could find, but they are modular and SDOE may only have the ones they need.
Bryan
[This message has been edited by Bryan Russell (edited 01-16-2000).]