DirectInput MAXScript plugin for 3ds max 2011

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Display Modes
  08 August 2010
DirectInput MAXScript plugin for 3ds max 2011

Recently I made this little plugin linked to Window's DirectInput that adds a struct to MAXScript called DirectInputDevice

The members return values based on your controller input.
Example: by typing directinputdevice.x, the Listener returns 32767. Now, if I fully turn my joystick's left analog stick to the right, it returns 65535.

Currently, only one control is supported. I have got only a single joystick, so I don't have enough resources to add support for multiple controllers.

Note: IF YOU NOTICE THAT THE INSTALLATION OF THE PLUGIN CAUSED ANY PROBLEMS TO 3DS MAX, DELETE IT FROM THE PLUGINS FOLDER.

Download:
http://www.mediafire.com/?sharekey=n2rd4rrs3wbva

Last edited by CaioSantana : 09 September 2010 at 02:57 AM.
 
  09 September 2010
Nice! You should post this in the SDK/maxscript forums, you'd probably get some better feedback.

-Johan
__________________
Online: LinkedIn
 
  09 September 2010
Any idea if this will work with a spaceExplorer (3d mouse)?
__________________
----
fo co mo so
 
  09 September 2010
focomoso, I don't know how SpaceExplorer works. If it uses DirectInput just like a generic joystick like any other, then at least its basic functions are guaranteed to work.
If, however, it uses the mouse device in DirectInput, then I am afraid you won't be able to access the device state through the current version of the plugin (and yes, the mouse device has also a "Z" parameter, which is usually changed by the mouse scrollwheel).

I've enhanced the plugin considerably already, giving support for mouse and keyboard and making every function of these devices accessible, I just want to figure out some Struct issues from the SDK before releasing.

I also found out that for some reason 3ds max crashes if you install the (current) plugin and launch the program without a joystick connected, which is pretty bad. Well, it's my first plugin and the SDK is not well documented. It'll be fixed in the next version, of course.

Thank you.
 
  09 September 2010
Originally Posted by JHN: Nice! You should post this in the SDK/maxscript forums, you'd probably get some better feedback.
Thank you Johan. Maybe I would, I was not sure where to open this thread (I'm new to CGTalk ).
 
  09 September 2010
You should put it in scripts as there are a number of us there that just love playing with things like this.
__________________
Paul Neale
http://paulneale.com
 
  10 October 2010
Originally Posted by focomoso: Any idea if this will work with a spaceExplorer (3d mouse)?

to be able to use a SpaceExplorer a DirectInput-Joystick, you will need this special driver:
http://www.3dconnexion.com/forum/vi...der=asc&start=0

itīs aviable here for download: http://www.omniflux.com/devel/#rbc9

AFAIK, it only works good with a 32bit OS. There is a x64 build, but it doesnīt really work.

3dconnexion is supposed to work on a new driver wich will support the use of their devices as a DirectInput-Joystick. Itīs in closed beta right now.
 
  10 October 2010
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright Đ2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:54 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.