Jump to content

  • Log In with Google      Sign In   
  • Create Account


SDL Arduino Port?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 kaktusas2598   Members   -  Reputation: 832

Like
0Likes
Like

Posted 27 September 2013 - 04:04 AM

Hey guys,

I wanna ask if SDL have port or some kind of binding to create games for Arduino? I can't find enough info on Google. Generally, for me it's enough any rendering library which has a port to Arduino. It should be sth similar like OpenGL, SDL, SFML and such.

THanks ;)


Behind every great fortune lies a great crime.
Honore de Balzac

Sponsor:

#2 krinosx   Members   -  Reputation: 471

Like
0Likes
Like

Posted 27 September 2013 - 08:45 AM

Sry, but are you talking about "http://www.arduino.cc/"?

 

I don't think there is a SDL 'port' to Arduino.. and I don't think it will be one...

 

May you explain why or how you intent to use something like SDL to Arduino?

Maybe you must look to RaspberyPI ( http://www.raspberrypi.org/ ) if you want do some 'embebed' game or something like that....


Edited by krinosx, 27 September 2013 - 08:47 AM.


#3 kaktusas2598   Members   -  Reputation: 832

Like
0Likes
Like

Posted 30 September 2013 - 01:22 AM

I don't have money for that stuff. We just want to create embedded game on Arduino and use something for input, sound and rendering like SDL or such.


Behind every great fortune lies a great crime.
Honore de Balzac

#4 Sik_the_hedgehog   Crossbones+   -  Reputation: 1467

Like
0Likes
Like

Posted 30 September 2013 - 01:26 PM

The problem is that porting SDL to Arduino is like asking to port SDL to a CPU... That alone simply isn't enough, and Arduino is meant to be used with pretty much any hardware configuration you can come up with. Basically, you'd need to make your own port, and your code would work only on your system.

 

I suppose you could find something that does software rendering, but don't expect anything to help you pushing stuff to screen or read input and such, because that'd be your custom hardware.

 

...or you could just tell us what you're using exactly, because I doubt it's just an Arduino.


Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

#5 Ravyne   Crossbones+   -  Reputation: 6472

Like
0Likes
Like

Posted 30 September 2013 - 04:08 PM

You need to build your rendering, sound, and input hardware around your arduino, then write the software routines to interface with it and do what you need. Arduino's are neat, but they're not terribly powerful, and unless you have hardware to actually offload the time-consuming task of generating the video signal, you're literally only going to have about 3% of the CPU to actually run the game. Uzebox is something quite close to what you'd end up with, using fairly minimal hardware. You can get good results with exceedingly clever programming, but the programming model ends up looking much like an old game console, where graphics are controlled by writing to specific memory locations rather than discrete blits, and you face similar 'hard' limits on the complexity of your scene. IIRC, the Uzebox has something like 6 CPU cycles per pixel to generate a color, including any reads from memory. even drawing the background color, (potentially) overlaying a sprite, and resolving the palette color consumes that many instructions.

 

You're just not going to get anything approaching SDL out of an arduino without complex additional hardware -- simple graphics and sound are doable with single hardware (like R2R dacs, video encoder), but its not going to resemble SDL at all. The practical minimum for anything resembling SDL is probably hardware with fast DMA and enough RAM to support a framebuffer, together with a video encoder IC.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS