OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

OSG and SDL


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
mcindafizzy
User


Joined: 24 Sep 2010
Posts: 27

PostPosted: Tue Sep 28, 2010 5:33 pm    Post subject:
OSG and SDL
Reply with quote

Hi,

I am using SDL to get input from a joystick so that I can integrate joystick control in OSG (I have tried the VRPN approach and right now SDL is looking better for my needs).

I have searched for as much information about integrating OSG and SDL as possible, and so far it appears that I must use SDL windows and have OSG draw to SDL windows, instead of OSG using its own windowing system.

Does anyone know if this assertion is accurate? Is there any way to connect SDL through an OSG Viewer? All I care about are the input events associated with the joystick...


Thank you!

Cheers,
Matt
Back to top
View user's profile Send private message
brcain
Newbie


Joined: 01 Apr 2010
Posts: 15

PostPosted: Tue Sep 28, 2010 5:59 pm    Post subject:
OSG and SDL
Reply with quote

If you just want to use SDL to read joystick inputs, you don't have to
use SDL windows. You can use SDL for joystick inputs, and render OGS
to windows managed by Qt, CEGUI, or whatever meets your needs.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
mcindafizzy
User


Joined: 24 Sep 2010
Posts: 27

PostPosted: Tue Sep 28, 2010 6:37 pm    Post subject:
Reply with quote

/* EDIT */

My prev response here was based on a mistake - I will investigate using non-SDL windows as suggested. Thanks.
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12263

PostPosted: Wed Sep 29, 2010 8:21 am    Post subject:
OSG and SDL
Reply with quote

Hi Matt,

I'd recommend using SDL for joystick input and osgViewer for windowing
as the later has far more flexible and powerful windowing and
threading support. An example of mixing SDL for joystick input and
osgViewer for windowing can be found in the applications/present3D
application.

Robert.

On Tue, Sep 28, 2010 at 6:33 PM, Matt Caron <> wrote:
Quote:
Hi,

I am using SDL to get input from a joystick so that I can integrate joystick control in OSG (I have tried the VRPN approach and right now SDL is looking better for my needs).

I have searched for as much information about integrating OSG and SDL as possible, and so far it appears that I must use SDL windows and have OSG draw to SDL windows, instead of OSG using its own windowing system.

Does anyone know if this assertion is accurate?  Is there any way to connect SDL through an OSG Viewer?  All I care about are the input events associated with the joystick...


Thank you!

Cheers,
Matt

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32147#32147









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP