Dwiel

Members
  • Content count

    1897
  • Joined

  • Last visited

Community Reputation

365 Neutral

About Dwiel

  • Rank
    Contributor
  1. Wireless NAS with media player

    You might look into the rasberrypi. It isn't out yet, but it is moving along quickly and set to be released in November. It is cheap, can connect to a hard drive, your tv, and a wireless network (through usb dongle). The other good thing is that it is cheap. Only $25.
  2. FBO and 3d texture problem

    the linux/osx(windows?) command glxinfo will list all of the available extensions. I'm not sure if this is exactly what you are looking for, but it might help. with my card (nVidia GeForce 8400M GS) I get the following: $ glxinfo | grep framebuffer GLX_ARB_fbconfig_float, GLX_EXT_framebuffer_sRGB GLX_EXT_framebuffer_sRGB, GLX_NV_present_video, GLX_ARB_fbconfig_float, GLX_EXT_framebuffer_sRGB, GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_object, GL_EXTX_framebuffer_mixed_formats, GL_EXT_framebuffer_sRGB, GL_EXT_geometry_shader4, GL_NV_fragment_program2, GL_NV_framebuffer_multisample_coverage,
  3. Lua scripting.

    I've used lua for all kinds of applications. One way to determine what a language can 'do' is to see what libraries are available for it. If a language doesn't have a library containing functionality that you need, then you would be required to write it yourself first, if it is even possible. For many languages, there is a main repository which lists many libraries available for it. My favorite such repository for Lua is http://luaforge.net/ . You can also check sourceforge or google code to see what kind of projects other people are using that language for.
  4. debian/ubuntu in vague order of preference/use: Lua, perl, php, C++, java using Kate (and linux, so makefiles gcc/g++ for C/C++) luckily, my development is not of user apps (if it is its on the web) so I don't have to touch Windows. As for game development, I stick to cross platform libraries so that if I ever want to, it'll work with Windows.
  5. Which AI site's are best?

    As far as books go, the interlibrary loan system is your friend. At any participating library (which is most of them), you can request a loan from any other participating library. You may not receive it right away, but if you are willing to wait a little bit its great. Also check out worldcat. It will tell you the nearest library thats got the book that you want. Its nice to be able to tell the librarian that library xyz has the book you want and its available. This system has never failed me.
  6. WAV to MIDI converter

    If your the MIDI that you are trying to extract is from a very simple melody with little to no background noise, it's actually not too hard. It won't be perfect for sure, but depending on your needs, it might be good enough I'm actually working on using aubionotes [url]http://aubio.piem.org/aubionotes.html[/url] to pull out the beat and some basic freq info from full songs live. I'm really more interested in extracting the beat from a live sound feed to control a video sequence, so this may be a much more trivial problem than you are trying to solve. I'm planning on using some filters to get the sound down to just a kick drum or melody, but it's going reasonably well so far. It has quite a few options as to what kind of algorithm it runs to detect the frequency and a sensitivity parameter to adjust. aubionotes will deal with saved files or real-time (using JACK) This is all assuming you've got some linux to work on. I dunno if there is a win version.
  7. Trolltech's Qt

    I'm using QT for my current project and it seems to be working out quite nicely. I wanted something cross platform. I also wanted to be build something like pd, max/msp, yahoo pipes, reactor. Qt made this pretty easy. The license could be worrisome as others have pointed out, but it doesn't bother me a whole lot.
  8. Sure. you can use an SQL database if you'd prefer. This also means that you are going to need to want to write a script to make adding files to the database easier. You are probably not going to want to add each entry by hand every time something changes. It really doesn't matter a whole lot how all of the data is stored... on a filesystem, in a database, etc. All you really need is a list of the possible files for download along with a timestamp of when they were last modified which then point to a downloadable file which can be retreived if the local version does not exist or is out of date. I guess I would suggest reading up on how SQL databases and tables work and go from there. You should be able to set up a table with entries like: (unique_id integer, name char(255), modified datetime, file glob/blob)... The client could then do a very simply query essentially select all files from the table where datetime is after the last time I updated. Like I said before, read up on how SQL tables work. Theres not a whole lot anyone can help at this point if you have never looked at the technology you are planning on using to implement all of this. SQL would be a good start though.
  9. Random Sine Wave?

    The next question is if you want the pattern to ever repeat itself.
  10. My guess is that you want to change the test == 0 to == '0'. This is because in your text file with the data you write the character 0 not the data value 0. The character 0 is stored as an ASCII value/number in this case the decimal number 48. The same goes for all other characters. Read up on the difference between a text file and a binary file.
  11. I need airplane noises

    Assuming you are OK with the creative commons license that most of these are licensed under Free Sound Project
  12. What is being suggested here is to setup an http server just like you would if you were to setup a website. With a webserver all you will need to do is copy the files you want downloadable into a specific directory and add the name of the files to a predefined text file. Something like this: in the folder Z:/server/web/game/ the files would exist (copy game data here): list.txt world.map desert.map city.map ... in list.txt list all of the files that have game data on the server: world.map desert.map city.map ... this is all that is necessary as far as the server goes. For the client, download a windows copy of wget and include it when you distribute your program. in C/C++: system("wget http://yourip/game/index.txt"); file = open file("index.txt"); for each line/filename in file: system("wget http://yourip/game/" + filename); load(filename); close(file); I don't know what file I/O libraries you prefer, but that part should be simple.
  13. LUA scripts

    Hmm, very strange. What do you mean by "I load it into a LUA table in C++"? Here is some code that is working in my program that accomplishes what you are talking about. static int luamidi_getMessage(lua_State *L) { std::vector<unsigned char> message; int port = luaL_checkint(L, 1); RtMidiIn* midiin = OpenIn(L, port); double delta = midiin->getMessage(&message); if(message.size() == 3) { lua_pushnumber(L, message[0]); lua_pushnumber(L, message[1]); lua_pushnumber(L, message[2]); lua_pushnumber(L, delta); return 4; } return 0; } Again, I'm not sure what you meant by loading into a table, but it may have something to do with the problem. What code are you using to "load into a lua table from C++?"
  14. LUA scripts

    Thats really strange. That is exactly how you should do it as far as I can tell. I don't see any obvious bugs. Have you tried adjusting that exact code without the sendond and third pushnumber and returning 1 just to test to make sure that nothing else is causing problems?
  15. LUA scripts

    Yeah, no problem. I get most of my information from a few sources: I use this many times a day as a good reference: http://www.lua.org/manual/5.1/ I use this if I want something more than a reference. It's got some techniques and more explanation: http://www.lua.org/pil/ Here is a little tutorial about the C/lua API: http://lua-users.org/wiki/SimpleLuaApiExample there are quite a few good tutorials on the wiki: http://lua-users.org/wiki/ and tutorial section: http://lua-users.org/wiki/TutorialDirectory Glad to be able to help! Edit: forgot to linkify [Edited by - Dwiel on March 22, 2007 8:31:54 PM]