Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

126 Neutral

About gnomer

  • Rank
  1. Quote:Original post by Emergent Is this first-person? Top-down? Over-the-shoulder? Top down.
  2. Quote:Original post by SimmerD What you are describing is very similar to casting shadows. When you are computing shadows, either via render to texture or via the stencil buffer, you are just marking some areas of the scene as 'in' and some as 'out'. What you do after something is marked 'in' or 'out' is up to you. For instance, you could use one of several shadow map techniques ( with the 'flashlight' standing in for a spotlight or point light ) to mark areas of the scene where things will show up. Then you can do the lighting effect on just those areas of the scene. Alternately, you could light the whole scene first, then darken or remove the effect everywhere that's NOT marked, but this usually breaks down if you ever have > 1 'flashlight volume' on screen at a time. Your second solution sounds like what I'm after. There should only ever be one of these "visibility lights". I'd like to black out anything not in it's line of sight. So I guess there would be a standard lighting pass for all lights in the scene and then a second pass that omits whatever isn't in this visibility light? Is there an easy way to determine if something is being lit by a specific light source?
  3. I'm still trying to get my head around shaders. Would it be able to achieve the effect I'm looking for. What I want is this: Imagine a game level, lit by various light sources. You have a device similar to a flashlight that whatever it "see's" will be the only areas that light up. Everything else is blackness. I don't know if this makes sense, I'm not trying to make a flashlight but that is closest example I could think of. This "flashlight" devices doesn't actually cast light it only allows the areas it sees to be able to receive light from the other light sources, if that makes sense. Is this crazy idea something I would do with shaders and/or postprocessing? I just want to focus my study in the right area. Thanks for any feedback.
  4. Thanks Zahlman. I ended up getting it to work a bit different. It's good to see it another way and helps me understand. :) Here is what I used: (?P<id>( .(?!/xyz>)\s* )*) Yours looks much better :)
  5. I'm trying to figure out these regular expressions =( I'm trying to match all the text on a line that is not followed by "</xyz>". If it's not followed by that get next line and keep matching lines until it finds "</xyz>". How can I do this? I've tried a few variations but I can't figure it out. The below does not work. p = re.compile(r""" (?P<id>(.*(?!</xyz>)\s*)*) """, re.VERBOSE)
  6. Quote:Original post by let_bound Just changing the pattern from *.* to * should do the trick. ah, can't believe i missed that. Thanks that works! :)
  7. So I have file1.txt and a file called noext . I can open both with text editor so no problem with the files. f = open("noext") works but I want to be able to get a list of these files in the dir and open them from that list but the problem is they don't show up when I list the contents of the folder. When I do: print glob.glob(".\\files\\*.*") It lists only the .txt file. I'm going to try another way of listing the dir contents. Thanks for help so far. :) edit: this seems to work: os.listdir(path) Thanks again!
  8. Noob question: So I'm teaching myself python and I'm getting into some file parsing. I had a bunch of files I was going to test on but they have no extension. For the sake of learning I am wondering is there a way to open files with no extension or how can I programatically add extensions to files without them. I know I can manually add extension in windows but assuming I had thousands of these files and wouldn't want to do it manually.
  9. gnomer

    [web] crawl / parse help

    thank you both. Will give it a shot! :D
  10. First, I hope this is the right forum to ask this. If not please direct me to the right location. :) I am curious about crawling some links on a website and parsing some info that I want to put into a excel .csv file. So for example start at http://www.sitename.html/stuff/ and follow all links on that page and links within each of these pages while parsing needed data as I go. I'm just not sure where to start, what kind of tools or language I should use for this. It's nothing really important other than for learning and just to see if I can make it work. Any help would be appreciated. Thanks!
  11. gnomer

    computer parts

    a computer show maybe?
  12. When I load it the game is paused. I can hit P to unpause and play a bit but then it will pause on the next score and gets stuck there. P no longer unpauses it.
  13. gnomer

    math out of practice

    Thanks, nilkn. I will check this one out.
  14. gnomer

    math out of practice

    Thanks guys. I guess I'll need a few books then...
  15. Well, I haven't used a lot of math for many years. I know I'm going to need to improve the deeper I get into any AI or collision stuff etc. I'm wondering what the essentials are and if anyone could recommend good books. I prefer to keep it short and to the point if possible. I don't wanna be a math wiz. I just want to know what I need to make some decent games later on.
  • 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!