Jump to content

Dataref or Command


Kieran

Recommended Posts

Hi all,

 

I'm animating the cockpit of a plane and am using manipulators. So far I've only got to the baro knob on the altimeter and was wondering what type of manipulator is best to use (there will be many other similar knobs). I've heard that commands are better to use for interacting with the sim, but the command_axis manipulator doesn't seem like the best to use due to it's functionality in the sim.

Thoughts?

 

Thanks

Kieran

Link to comment
Share on other sites

Hello Kieran,

some years ago Ben wrote on the dev blog four articles about dataref vs command comparison, here're the links:

 

http://developer.x-plane.com/2009/04/datarefs-vs-commands-i-whats-the-difference/

http://developer.x-plane.com/2009/04/datarefs-vs-commands-ii-which-one-should-i-use/

http://developer.x-plane.com/2009/04/datarefs-vs-commands-iii-what-is-my-command-doing/

http://developer.x-plane.com/2009/04/datarefs-vs-commands-iv-duplication/

 

Personally I found them very interesting, so i hope those will be useful for you in the same way.

 

Angelo

 

 
Link to comment
Share on other sites

New problem, now the whole cockpit is the manipulator. Well I have the cockpit broken into 2 .objs and the one with the manipulator in it is completely manipulator (see the second image). I'm using Blender 2.5+ and the latest scripts, I don't know if that's the problem or not though. Is there some line I should add to the .obj?

 

Second problem (though this happened before), when I'm in the default cockpit view (even just after pressing Shift+9) I get this artifacting on the cockpit, but as soon as I move the view slightly it goes away. Any idea what might be causing it?

 

bEU0Mbz.png

 

Hh0hgMl.png

Link to comment
Share on other sites

Haha I just noticed that, it wasn't like that before, the export script when a little crazy. I got it fixed now and worked out that if I added an "ATTR_manip_none" after each manipulator in the .obj it worked perfectly.

 

The only issue left now is that graphical glitch, but it might just be that, a glitch.

 

But thank you for your time Jim, much appreciated!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...