Rendering 2D and 3D Graphics inside a Revolution Window

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cmenge
Posts: 11
Joined: Thu May 18, 2006 4:18 pm

Rendering 2D and 3D Graphics inside a Revolution Window

Post by cmenge » Fri May 19, 2006 5:01 pm

Hey Guys,

We have a 3D game engine used to create interactive games / simulations. With this 3D graphics engine (DirectX based) we get a handle to a Win32 window which then allows us to specify a window to render our 3D graphics in. Is it possible to use DirectX with Revolution?

What about DirectInput, DirectX I/O control for hardware like Joysticks, Wheels, etc?

Thanks!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri May 19, 2006 6:08 pm

No, it is not possible to use DirectX in Revolution.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

cmenge
Posts: 11
Joined: Thu May 18, 2006 4:18 pm

Post by cmenge » Fri May 19, 2006 6:30 pm

Mark,

Thanks for the update, much appreciated. For now all we want is joystick control so my thought is to wrap DirectInput in the Revolution SDK and create a simple DLL to read and or poll the current joystick position.

Regards,

Christian

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Location: Chicago
Contact:

Post by Obleo » Fri May 19, 2006 8:33 pm

cmenge wrote:Mark,

Thanks for the update, much appreciated. For now all we want is joystick control so my thought is to wrap DirectInput in the Revolution SDK and create a simple DLL to read and or poll the current joystick position.

Regards,

Christian
This may or may not help you.

I been programing IOUSB control for use with Revolution from OS X( I am not filmier with the different of Mac OS X over Windows, core sets. so this may not help)

Using a IOUSB Family kernal from Apple / Darwin -BSD .I was able to map 12 positions off our controller* Then In shell gone back and started writing a new Core Kernal to drive the movements so They can used from the do as shell script command in revolution and pushing the data to them.

for those following Apple IOUSB debug kits can be found here
http://developer.apple.com/hardwaredriv ... debug.html

I got most of the info I needed from both USB.org and from the darwin/apple developer mail list for IOUSB. If you can do this from a DLL over shell more power to you.

I am not total finished with all the programming. But so far got * Gravis 1.0 IO -Xterminator Force to poll all directional movements and 8 buttons. This controller also uses Immersion direct feedback driver witch I have had no luck so far getting to work to this point.

Finally I am setting the plug in for revolution much like GamePad Companion works by taking the Revolution key-Down controls and input data into the kernal. That way it can be custom set per game.

So yes that answers your question I think.

So if using a DLL or kernal it can be done, also if you have more knowledge on this subject I sure it will help you, It tock me 3 months to get the darn thing to work, but I came into this project green on the subject of IOUSB kernal building and am also new to transcript..

I know windows uses shell and that all I really know about the core of that OS so again this most likely does not help. In case it maybe does help somewhat is the only reason I wrote a reply.

This also has me needed the intel build files as the IOUSB kernal for Intel Macs are completely different for Mac. so my current kernal does yet work with Intel processors for revolution because I am unable to test it.

Will I could talk all day about this subject. I hope this helps answer your question, if you want to talk on IO - USB more I have some much info.
that may help.

Good luck.

obleo

cmenge
Posts: 11
Joined: Thu May 18, 2006 4:18 pm

Post by cmenge » Sat May 20, 2006 2:09 pm

Obleo thanks for the note.

Guys, what about 2D Graphics, graphs, charts, etc?

Cheers!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat May 20, 2006 2:54 pm

For 2D graphics and animations, check out ArcadeEngine.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Talking LiveCode”