FSIC Messageboard
  Tech Talk
  Setting up DOFs in OPS

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Setting up DOFs in OPS
Jaguar
Pilot
posted 02-13- 08:02 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
Hi,
I have been trouble with lining up DOFs in OPS. I just can't get the part to rotate the right way.... for example, the aileron on the dauntless. OPS crashed and took the aileron DOF with it, so I had to make a new one. I align the red/blue pole so it's parallel with the leading edge of the aileron. I then aligned the tip of the red/blue pole at the far outter tip of the aileron. then in the game the aileron moves all wacky! Has anyone got the hang of positioning DOFs in OPS?

Also I noticed a bug.... atleast i think it's a bug. If a child has a DOF, and you rotate the parent, the child's DOF goes off at a wierd angle, and you can't change it.... Like I re-position it, save, then load it up again and it's back to the other angle.... Anyone have this problem too?

------------------
Cheers!
Jaguar
The FS Hangar

[This message has been edited by Jaguar (edited 02-13-2000).]

IP: Logged

jedi
Pilot
posted 02-13- 08:23 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
One thing to try...

Open your wingtip .lod in your 3D program, and rotate it so that it's lying "flat", with the aileron leading edge parallel to the main coordinate axis (X-axis I think). Export it with this orientation.

Do the same thing with the aileron itself.

Now you should have a wingtip and aileron in OPS with the "aileron hinge" exactly on the x-axis. Move the aileron in OPS to match up with the wingtip. NOW put in the DOF, and manually edit the DOF axis. It should be exactly parallel to the x-axis, i.e. the DOF axis will be 1,0,0 exactly.

Now move the DOF using OPS so that it's exactly on the aileron hinge, centered on the aileron.

Now you have a wing that's perfectly level, with an aileron that's perfectly level, and a DOF that's perfectly level, but the wing will be "swept back" a few degrees because you oriented it so that aileron hinge point was along the x-axis. But you should now be able to rotate the WING in OPS so that the leading edge is at the correct angle for the SBD and give it the proper dihedral, and the aileron should follow its parent, with its DOF tagging along.

Or you can do it like I do--spend about 2 hours of trial and error on each part

------------------
--jedi--

IP: Logged

Pang
Pilot
posted 02-13- 08:43 PM     Click Here to See the Profile for Pang   Click Here to Email Pang     Edit/Delete Message   Reply w/Quote
Yeah, I've been beating my head against this all day, well ok, all weekend.

I decided to try doing this in AC3D building the plane by using Hippie's plugins and swapping the objects with his tool. Everything is lining up just incredibly well, very accurate, however the DOF's are all lost with the export to .asc and the numbers generated are off when I try to edit them in OPS. Also, the DOF tool either just sits there half the time, returning nothing or tells me I have to select two verices, when I just selected two. Very frustrating. Sometimes it will work, but the numbers seem dubious, giving me huge decimal numbers, where the axis should be 1,0,0.

A good tutorial on DOF's is sorely needed!

Pang

IP: Logged

Bryan Russell
Pilot
posted 02-13- 09:54 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Jag : The DOF's are in the parents co-ord space so this probably explains what you are seeing, either that or the parent has been rotated past OPS tolerance. I wish it was in the parts own co-ord space, it would make the DOF thing heaps easier..

Unfortunitly this might thwart jedi's theory (I havn't read it thoughly enough to say for sure...) .

If you look at the tutorial I did for MAX->OPS there is a DOF section, and although its written for MAX it will apply to other 3D editors. Unfortunitly I just discovered a strange bug when testing this out, it appears that occasionally only the first DOF you edit in a OPS session will work so I need to look at this one...

One other thing with the DOF function in OPS is that it doesn't like parts/parent/grandparents that are rotated excessivly, so make sure the part is setup in the 3D editor so that as little rotation in OPS is needed as possible.

IP: Logged

Pete Hawk
Pilot
posted 02-14- 09:37 AM     Click Here to See the Profile for Pete Hawk   Click Here to Email Pete Hawk     Edit/Delete Message   Reply w/Quote
Bryan,

for alignment, what would be soooo cool is if you could just say, ok, I want to add a DOF between this edge of the parent, and this edge of the control surface, highlight each edge, hit a magic button and boom, there is your DOF and parts, perfectly aligned. All you have left to do is the DOF properties. Or AT LEAST instead of the DOF showing up at the models origin, when you have a part selected and go into DOF mode and add a dof, it shows up right at that part.

Could that be done?

[This message has been edited by Pete Hawk (edited 02-14-2000).]

IP: Logged

jedi
Pilot
posted 02-14- 10:05 AM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
OK, here's one that I KNOW works good...

First, save your wingtip shapes as something you can identify easily, i.e. SBDWingT.lod and SBDAileron.lod.

Then, in OPS, DELETE the wingtip and aileron from your plane (yes, DELETE it).

Then, import the wingtip and aileron from an existing SDOE plane, for example, the Typhoon. Since you deleted your wingtip, all the goofed up DOF info is gone too. The Typhoon wing has "good" DOF info built into it. Save the .sm file. Now you have a Dauntless with a stupid Typhoon wing, but don't get excited...

Now, using Extractor, extract the new .sm file into its parts. Go into AC3D and open the wingtip.lod and the aileron.lod (the Typhoon-shaped ones). Now, also open the SBD wingtip and aileron you saved earlier. CAREFULLY modify the Typhoon wing/aileron to match the outline of the SBD wing/aileron, changing the points of the aileron hinge area as little as possible. This yields a not-quite-perfectly shaped SBD wing with a hopefully-perfectly-aligned aileron joint.

Now export your ex-Typhoon-now-SBD wing back out as a .lod, and recompile the .sm file using Builder. When you open this in OPS, the DOF info from the Typhoon should be retained on your new shape. You should then be able to move the wingtip without screwing up the aileron.

Now you have to change all the properties of the wing from Typhoon to SBD

May be easier in the long run to just use trial and error tho. What I do is build my aileron in AC3D in its correct position in relation to the wing. I know that's technically "wrong" but having the aileron exactly in position without having to move it any in OPS helps for me. Then make sure the DOF "cylinder" is exactly centered on the front edge of the aileron, with the blue/red vertex point as close to centered as you can get it. That way the aileron at least rotates around the right point. After that it's trial and error. I find that using the arrow keys to rotate the DOF instead of the mouse gives better initial adjustments. Once you have it "almost right," then you can make the little adjustments with the mouse. Be sure you check the view from several angles to make sure the DOF is perfectly lined up. Also, don't switch from rotational adjustment to lateral adjustment without clicking some other part first--it seems to make the DOF "jump" out of place.

No magic solution here, I know. Probably need to get a little finer adjustment capability in OPS, or else the ability to constrain adjustments to 1 or 2 dimensions.

------------------
--jedi--

IP: Logged

Jaguar
Pilot
posted 02-14- 04:46 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
You know what.... the dauntless uses the typhoon as a base! The wing is almost exactly the same! kinda freaky eh?..........anyways.

Thanks for the tips guys! I have some time to kill today, so I'm going to try the trial and error methind first. If that doesn't work, then I'll do as Jedi suggests. It makes sense to me , but I always haveto do things the hard way. It's just the way I am LOL.

I wasn't paying close attention, but I went back trough my backup files as I was making the dauntless I noticed that the point where I lost my DOFs where when I rotated the part. Not when it was imported, as I had first thought.

What is the OPS tolerance?

Thanks again guys.

------------------
Cheers!
Jaguar
The FS Hangar

IP: Logged

Whirlwind
Pilot
posted 02-14- 08:35 PM     Click Here to See the Profile for Whirlwind   Click Here to Email Whirlwind     Edit/Delete Message   Reply w/Quote
I never thought I would have trouble with DOF's until I read this post. I think I'll just use jedi's approach, or I'll use AC3D to find the parential coordinate position (just like SV suggests finding obBody points) for the DOF and edit the position by hand in OPS.

Thank goodness the Staaken only has 6 aileron's to deal with (well 2, two elevators, and two rudders... plus 7 gun mounts...one gunmount probably will be lowered with the landing gear toggle...hmmm...). No problems...

IP: Logged

bjorn
Pilot
posted 02-15- 05:50 PM     Click Here to See the Profile for bjorn     Edit/Delete Message   Reply w/Quote
I hate being unsupportive, but I've found that for my needs, OPS is not good enough for DOFs. I use OPS for adding DOFs, making an approximate positioning and (worst) angle. To get an exact position and angle, it's the hard work of LOD reading and linear algebra. Not difficult, really, but very time consuming. It's a good feeling to *know* that you have a DOF angle correct to 8 decimal digits, though :-)
_
/Bjorn.

IP: Logged

Tailslide
Pilot
posted 02-16- 01:29 AM     Click Here to See the Profile for Tailslide   Click Here to Email Tailslide     Edit/Delete Message   Reply w/Quote

I find the DOF editing to be pretty good except for the bug that makes you pick "save and reload" after each DOF change. I got my Yak gear retracting the way I wanted anyways.

TS

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c