posted 01-10- 10:34 PM
Tailslide: I'm trying to do the other side now, get the parts automatically positioned in OPS. Since I discovered how to get at the object matrix through my MAXScript stumbling, I figure I can just create a companion file for the OBJ file that has Matrices indexed by Object/Model name. Then read this into OPS and presto! Which actually make me think of something else... Does anyone know how to make objects children of another in MAX? I had a look at the hierarchy thing and couldn't figure it out. This will be needed to get nice relative matrices. It's not that big of a deal since I can probably work out a relative matrix, but it would save some time, coding wise.JT: The things that need to happen in MAX to successfully export to OPS are that the objects need to be moved so that their pivot point is at the world origin, and the objects reverted back to their identity matrices, i.e. all of the rotations and other matrix properties removed. The rotation thing in MAX2OBJ is (I believe) to rotate the model so that Z=Y and Y=Z this is sort of a simulated right hand co-ordinate thing, and since OPS does this conversion you don't need it.
Just to finish off your original question, If I can get my MAX matrix export thing to happen here would be the procedure to create a new aircraft, in looks at least.
1. Make the aircraft in MAX, name all of the objects to be equivalent to the ones you intend to replace in the target existing SM file.
2. Export to OBJ using MAX2OBJ and my or tails export scripts.
3. Use the Import button in OPS and press OK with all of the object names selected.
If all happens, as I want it to, you should end up with a model in OPS that now looks like your P47 (or whatever) all lined up and everything. The things to do next revolve around FM and DOF stuff mainly.
The reason I'm going to spend some time on this is that I recently had to restart the hurricane, OPS wise anyway, after having meticulously lined up all of the parts. I just couldn't face that time consuming exercise again! OPS has got a ways to go before the positioning thing is going to allow easy and accurate positioning , and MAX already has it.
Bryan
[This message has been edited by Bryan Russell (edited 01-10-2000).]