Force Feedback API

Hello,

I was wondering if anyone is currently working on
force feedback support for SDL. If so, what is the
current state of it? Thanks.

-Michael__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Hey all,

Thanks for the help with the Vsync in Linux. I really appreciated it.

Anyway, Ive been learning OpenGL, using SDL, a great book (OpenGL Super
Bible) and the Lackluster, yet useful, NeHe tutorials. It’s a great API,
but it is obviously intended for 3D acceleration (duh!).

In any case, I wanted to know what would be the best approach to my
current game project which I am considering using OpenGL for.My game is
an RPG which shifts between two modes, an Isometric perspective like
Diablo, and a nice 3D dungeon crawl mode (using GL), much like the old
Eye of the Beholder games.

I’m considering doing both the 2D (isometric) portion and the 3D portion
using OpenGL. But I am wondering if I will see good speed results this
way? Will it be faster to do the 2d Part using regular blitting through
SDL, or OpenGL?

One of the main reasons I want to use OpenGL for this portion, is for
the simplicity in implementing lighting, scaling, rotation, etc. Also, I
want to do neat 3d spell effects, the whole gamut of nice 3d eye candy
on a 2d game board.

What would be the best method for going about this in OpenGL? Would the
best method be to render the 2D tile map onto an OpenGL surface every
frame, as you would in regular 2D? Or, am I better off just sticking to
2D methods?

I have never attempted something like this before, so excuse my
ignorance. But I am truly curious. Thank you very much.

-Mike

[…]

I’m considering doing both the 2D (isometric) portion and the 3D
portion using OpenGL.

That’s the only sensible way to do it, as switching between SDL 2D and
OpenGL displays would drive people insane with resyncing monitors,
desktops flashing by and stuff on some systems…

But I am wondering if I will see good speed
results this way? Will it be faster to do the 2d Part using regular
blitting through SDL, or OpenGL?

Hint: Why do you think glSDL was created…? :wink:

http://olofson.net/mixed.html

Speaking of which; you probably shouldn’t use it for this game. glSDL
is meant for applications that should run without OpenGL as well.
It’s not much point using it if you need OpenGL anyway.

One of the main reasons I want to use OpenGL for this portion, is
for the simplicity in implementing lighting, scaling, rotation,
etc. Also, I want to do neat 3d spell effects, the whole gamut of
nice 3d eye candy on a 2d game board.

OpenGL is the perfect tool for that job, I think. It has both the
features and h/w acceleration.

What would be the best method for going about this in OpenGL? Would
the best method be to render the 2D tile map onto an OpenGL surface
every frame, as you would in regular 2D? Or, am I better off just
sticking to 2D methods?

Just set up an ortho display matrix and render the tiles directly to
the screen. Note that filtered scaling and tiled maps don’t mix well,
unless you do something about the edges of tiles.

Have a look at “smoothscroll” for a simple example:

http://olofson.net/examples.html

It does filtered scaling and sub-pixel accurate scrolling - but if you
mess up the map (ie break the mysterious rules), it also demonstrates
the main problem with this sort of rendering.

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Friday 10 October 2003 04.00, MC wrote:

I’m also curious what’s happening along these lines. There is force
feedback interfaces available now for Logitech joysticks
(http://user.it.uu.se/~johannd/projects/ff/) and MS Sidewinders
(http://madfab.free.fr/ff/).On Thu, Oct 09, 2003 at 06:23:21PM -0700, Michael Dale Long wrote:

Hello,

I was wondering if anyone is currently working on
force feedback support for SDL. If so, what is the
current state of it? Thanks.

-Michael


Ryan Underwood, , icq=10317253