Open source portable/cross-platform video camera capture library [closed] - c++

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I like to know if there's a open-source, cross-platform library for capturing web-cam data. Any other suggestions are welcome in case such solutions are not available. I am looking for something similar to portaudio if possible but this is not absolutely mandatory.
Also open-source & cross-platform projects falling into this category are a good starting point.
Thanks in advance,
Iulian
Libraries found:
portvideo. Does anyone have any experience with it?
reactivision. This one seems to be pretty cool and well supported.
libvidcap. Didn't manage to test it under Linux for the moment.
opencv and its highgui project

Give a look at opencv and its highgui project.

I heard OpenCV can do that. Never used it myself, so please take this suggestion with a grain of salt.

I may be wrong but I think PortVideo is discontinued in favour of reactivision. Also here are a few others. I've never used either of them but plan on it soon. I also am looking for a good video capture API. These two also seem to offer processing and audio. I like PortAudio so much though that I'd like to stick with them for audio.
OpenML
FFmpeg

Related

C++ Game Sound Effects [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Is it possible to load in a wav file and play in during a game that's been written in C++ without the use of third party libraries?
I mean, is there a small function that can handle this?
Some third party libraries seem to use huge amounts of code to do it. I found the same thing when loading images. Some libraries use so much code when sometimes it's possible to do the same amount of work in a small function... I just wondered if it was the same for audio files?
If not, what are the best/most basic Audio libraries that you guys know of?
C++ by itself has no concept of multimedia. Unless you write your own multimedia code, then you have to use libraries or platform-specific APIs for working with multimedia content and output. For instance, on Windows, the simpliest option is the Win32 API PlaySound() function.
Let me answer your questions one at a time.
Is it possible to LOAD a wav file without using 3rd party lib.?
Yes, certainly it is. A quick search brings up: http://home.foni.net/~wkurz/dynaplot/applicationnotes/loadwav.htm
Is it possible to PLAY a wav file without using 3rd party lib.?
Again, yes it is possible. Provided you are willing to write drivers for all possible combinations of hardware and OSs you are targetting.
Allow me to suggest a solution: use some opensource lib. There are many excellent ones out there. I use following for my (non-gaming apps)
Loading wav: libsndfile
Playing wav: portaudio
hope that helps

Easy to use PNG lib? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Could someone recommend me a simple, easy to use PNG library either for c++ or .NET? All it needs to do is: load big PNG images (say 20000x20000), and tell me what color each pixel has.
Bitmap class in .NET can't load big images, throws an OutOfMemory exception.
I spent reasonable time on google looking through c++ libs, but all of them does much more than I need, and their usage is too complicated for me.
The defacto standard library for PNG files is LibPNG. It's not the best designed API in the world, but if you just work through the steps in one of their tutorials, it's pretty hard to mess up.
You'll probably find it easiest to wrap their API in a few simple functions (or class) of your own. Once you have that done, you should be good to go.
Try this:
http://nothings.org/stb_image.c
You can use it instead of zlib aswell.
If C# is an option, try PNGCS. It was done (by myself, in Java originally) for this scenario, it allows you to read and write line by line, no need to have all data in memory.
I have tested that it can read and write huge files (30000 x 30000 pixels, more than 2GB in disk), at least in Java
For C++:
Depending on the license you are able to use you may have a look at:
DeVIL: http://openil.sourceforge.net/(a bit outdated but a still good choice) (Linux, Win)
ImageMagick: http://www.imagemagick.org/script/index.php (well maintained, all platforms)
both support a variety of input and output formats.
EDIT: now also on Github: https://github.com/DentonW/DevIL

C++ Game Design - What Library/API? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am currently developing an rpg type game in C++. I have developed a few games in the past but have used heavily inclusive APIs. For this game I am looking into developing it more myself. I still want the graphic and animation functions to be (mainly) implemented using the library. Here is a break down of the game:
It will be a top down tile-based game when not in battle where the character is free to walk around and speed will be determined by a speed stat
Once in battle it will be a turn-based battle system with (not completely final) 3 man team on each side
Some information will be stored online and will be used in the game but that will not need to be checked often
What I am asking is; what would most likely by the best library or API for me to use for this purpose? I have searched and have been able to find a few that I believe may suit my needs but none that have been popular. Perhaps I am looking for something too specific but any help or recommendation would be greatly appreciated.
P.S. Along with a recommendation, a link for a decent tutorial or documentation would be most appreciated.
There is always the popular libsdl. There are many tutorials for this library online inluding the dedicated
http://www.sdltutorials.com/
You can always use as much or as little of a library's functionality as you like.
Have you had a look at this?
http://irrlicht.sourceforge.net/
If you look in the forums, people have written their own compatible libraries for AI, Physics etc etc that they seem to be happy to share. Also there are lots of compatible tools like this http://www.ambiera.com/coppercube/ and lots of language wrappers.
As an addendum to Caustic's answer, I suggest looking into Ogre3D. Like Irrlicht, it is primarily a rendering engine, leaving much of the work to be done by yourself. From personal experience, I cannot recommend one over the other.
I am sorry to swear. I believe you should use SFML because it is an all-around nice library for graphics development.

What are some good free, open sourced, cross platform game engines? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have a great idea for a 3D game, but I do not want to start from scratch with OpenGL. I also do not want to reinvent the wheel. I found OGRE, and it seemed like it was perfect for my needs, except it lacked physics and audio. I do not need crazy graphics, shaders or high polygon counts, but the world will be very big, so it needs good scene or LOD management. I also will probably want to bring in rigged characters so skeletal biped animation support would be needed. Any suggestions would be greatly appreciated.
Thanks
Have a look at some of the answers from this question. You may find some useful libraries listed.
If you're open to alternatives to C++, you can check out this answer on the game development stack exchange website. The answer covers lots of options for game engines, physics engines and Graphics/Sound engines. Most listed here focus on C# (because of the question obviously), but some of them are wrappers for C++ libraries (you can always check out the native libraries that are being wrapped).
Old versions of the Quake engine are released under the GPL.

What is the best library to manage a wiimote? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
There are many libraries that manage the wiimote but I am looking for the "best" one, or at least that has the following features:
open-source
portable (at least Win32 and Linux)
written and usable in c or c++
good coverage of wiimote devices
I rely on people that already used such library. Google is good source of information but it doesn't know which one is best library.
if you will use multiple wiimotes, don't use wiiuse library. i am working on a stereo system with two wiimotes using wiiuse library but wiiuse made me crazy( it gives delayed ir tracking data ) and i decided to change my library wiiuse from wiiyourself
Some friends of mine have had good luck with wiiuse. It's in C, for both Windows and Linux.
Have you seen this:
http://www.codeplex.com/WiimoteLib
http://blogs.msdn.com/coding4fun/archive/2007/03/14/1879033.aspx
It may not be exactly what you are asking for, but with Mono you'll have the cross platform part of it.
What about Johnny Chung Lee - it's .Net but it's open source and could converted.
I think this might be what your looking for:
http://wiiuse.sourceforge.net/
Open-sourced, multi-platform and written in C/C++. They are looking for a OSX developper though, so I'm guessing it doesn't support it yet.
Maybe https://github.com/MJL85/wiiuse will do? Seems to have a lot of features and supports Windows and Linux, AND it is c.