Jump to content
  • Advertisement

sprite_hound

Member
  • Content Count

    673
  • Joined

  • Last visited

Community Reputation

461 Neutral

About sprite_hound

  • Rank
    Advanced Member
  1. sprite_hound

    How to include SOIL in Code::Blocks?

    [font="Arial"][/font] [font="Arial"]SOIL is meant to be used as a static library (as it's tiny and in the public domain). You can use the static library file included in the zip (libSOIL.a works for MinGW and Microsoft compilers...feel free to rename it to SOIL.lib if that makes you happy), or compile the library yourself. The code is cross-platform and has been tested on Windows, Linux, and Mac. (The heaviest testing has been on the Windows platform, so feel free to email me if you find any issues with other platforms.) [/font] [font="Arial"]Simply include SOIL.h in your C or C++ file, link in the static library, and then use any of SOIL's functions. The file SOIL.h contains simple doxygen style documentation. (If you use the static library, no other header files are needed besides SOIL.h)...[/font] [font="Arial"][/quote][/font][font="'Times New Roman"][size=2] [/font] [font="Arial"] [/font] [font="Arial"]So... either use the static lib in the zip file, or compile your own static lib. Link to it (presumably you need to tell C::B where the lib file is, and add it to the list of libraries you're linking) and #include the header file.[/font]
  2. sprite_hound

    How to include SOIL in Code::Blocks?

    This page has instructions on how to use SOIL: http://lonesock.net/soil.html
  3. sprite_hound

    Preventing thread reviving

    Thread Title: Preventing Thread Revival ... *Looks forward to further irony in a few months time.*
  4. sprite_hound

    Spectrum Analysis with SFML

    I think FFTW is also prohibitively expensive for a commercial (non-GPL) license (several thousand dollars - I can't remember the exact figure).
  5. sprite_hound

    c++ vector and bitset comparison

    std::unique() with (if necessary) a custom predicate?
  6. Yup, sounds like this is your problem. If the light were straight in front of the wall, the normal and surface to light vector would be the same. This way round, the light is more or less "behind" the wall. Not sure it's the problem, but how are you transforming your normal into view space in the first place?
  7. sprite_hound

    GLSL get vec4 component

    Actually, you can indeed use the subscript operator to index vector elements (at least, my GLSL v400 specs tell me so - I don't know what version this was introduced): Array subscripting syntax can also be applied to vectors to provide numeric indexing. So in vec4 pos; pos[2] refers to the third element of pos and is equivalent to pos.z. This allows variable indexing into a vector, as well as a generic way of accessing components. Any integer expression can be used as the subscript. The first component is at index zero. Reading from or writing to a vector using a constant integral expression with a value that is negative or greater than or equal to the size of the vector is illegal. When indexing with non-constant expressions, behavior is undefined if the index is negative, or greater than or equal to the size of the vector. [/quote]
  8. sprite_hound

    String:gmatch in lua problem

    I'm really not sure if I understand what you're asking, but you probably want something like this: -- Assuming input file is just a list of file names + extensions, with only one per line. local input = io.open("test.txt", "w") local output = "" for line in input:lines() do local textfile = line:match("(%w+)%.txt") if textfile then output = output .. textfile .. "\n" end end input:close() print(output) I leave outputting things in the exact way you want for you to do. Note that gmatch is for iterating over a string, but you probably want to use match instead if you just have one text file per line in the input. Note that there are two ways to call the string.gmatch function: string.gmatch(input_str, pattern) and input_str:gmatch(pattern). You seem to be mixing these in ways that do not make sense. I would also be surprised if just putting +1 as a parameter to output does what you want.
  9. When you erase something you invalidate the iterator. Try this instead: //... if((*i)->checkIfOverDeletionThreshold(xDeletionPoint)) i = lObjects.erase(i); else ++i; // ... EDIT: was waaaay too slow
  10. In photoshop, paste the image into a layer, create a mask for that layer, and then copy / paste the same image onto the mask (black is transparent in the mask layer, and white is opaque). You will almost certainly have to fiddle with the mask to make the image as similar as possible to the original (stick another layer filled with black under the masked layer to compare).
  11. sprite_hound

    Text Loading problem prehaps?

    As a side note, this is not how you check a shader is "working" or not. Look into glGetShaderiv.
  12. sprite_hound

    What is this?

    Cool. Thanks for the replies.
  13. sprite_hound

    What is this?

    From a BBC article about the viasat-1 satellite: [attachment=5806:viasat-1.png] I've seen it before in pictures of satellites, but what actually are all those spiky blocks, and what do they do?
  14. sprite_hound

    Unity Pro License

    According to the EULA: [color=#444444][font=Helvetica, Arial, sans-serif][size=2](d) A company, educational institution, incorporated entity, or individual may not license both Unity Pro and Unity at the same time.[/font] So I think you're ok as long as you're separate individuals, and only one individual actually uses the pro license (say to put everything together). If you become a company, you'll all need to have the pro license.
  15. sprite_hound

    Unity Compiling

    I imagine it does exactly what your gui code tells it to do. Post it and we might be able to point out why... It might also help to tell us what you actually want it to do.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!