Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

140 Neutral

About latent

  • Rank
  1. latent


    Same story over here. Plus my focus at work is shifting a bit and that tends to affect what I do in my 'spare' time. Looking forward to more updates in the new year.
  2. The GUI is single-threaded. I simply check a flag at the start of the draw. If clear, I set it, draw, and clear it. No control's message processing within the draw can then cause the draw to restart. Taken further, if you're animating the draw from a timer or something, you can test the flag to see if you've already got a draw message in the queue.
  3. latent

    About state machine

    That's effectively the sort of state machine I've most often needed to use. Of course, you can code it any old way, such as swapping in a different state object, or a state function pointer, or whatever. The decision usually depends on how the rest of your application has been structured, and whether you want all state handling in one file or want it spread across several source files or classes. [source lang="cpp"] //in main loop pOnStateTick(this); //... //state function void StateWait(MyApp *app) { if (DoWaitStuff() == FINISHED) app->pOnStateTick = StatePathFind; } void StatePathFind(MyApp *app) { if (DoPathFindTick() == FINISHED) app->pOnStateTick = StateWait; } [/source]
  4. Another point of view - it's likely that 99% of a given developer's career will be spent modifying an existing codebase - whether that's adding new functionality or fixing issues. This is generally why the 'system analyst' role doesn't exist per se, because there's rarely giant new superstructures to design. This is also reassuring for the new developer, because when you start out, you start out working on existing code. So you learn coding and design practices as they apply to that product, and frankly it's pretty hard to stuff up one-liner new-guy tasks like "Change the form where it says 'Csutomer Sales' to 'Customer Sales'". And most places I've worked they expect the new guy to take like days to complete that job while he figures out their specific IDE, location of the code, how to fill out the job sheets and so on.
  5. That's sad. Though I suppose it's good motivation to learn to teach yourself, which in the tech industry is something you do year in and year out anyway.
  6. latent

    Game Development Langauge

    You can program a game on anything with a programming language. So the list could include C#, HTML5, VB, Javascript, Lua, Ada, Pascal, your programmable calculator, yada yada yada. There's like a discussion a day on programming language or game engine choices - and as there's obviously never so definitive an answer that it doesn't get asked again tomorrow, then I just suggest that you go with whichever one you're having the most fun with when you try it out. If you learn to program competently enough in that, moving to another language later will be easy.
  7. While I don't have an ebook to recommend, have you reviewed hplus0603's interpolation demo found via the FAQ?
  8. latent

    Skyrim's procedural clouds

    looking at the way they're warping, it looks like they're just a couple of texture layers blended on top of each other. Also your original link doesn't seem to work for me unless I remove the embedded tag.
  9. First, be open to these discussions of experience and time. Learning 'syntactical' skills and keywords and so on is a little like learning just enough French to understand sentence structure and/or find a word in a dictionary. Speaking it for years yields fluency and the ability to use common sayings that are outside the scope of educational material. In programming, we tend to develop 'patterns' - common approaches to problem solving which we can pick up and reuse to address similarly structured problems in future. While computer science education does tend to include a discussion of design patterns, there's no substitute for learning by doing, so just keep hacking away at it secure in the knowledge that even when you don't appear to be making progress, your skills are developing. Second, I also started young - maybe a little younger than yourself, and that was 25 years ago. My first programs were all games, and I still write games occasionally as a hobbyist. Programming taught me problem solving and analytical skills (and a little pragmatism) which I couldn't get in the classroom and which have resulted in a more than adequate income source and satisfying career. So if you can build it slowly and just have fun while you're doing it, you could put yourself into an enviable position when it comes time to hit the workforce.
  10. latent

    A couple of questions...

    You could google for how to find the intersection of a parametric line with a plane, but for your purposes a simpler solution may suffice. Create an offscreen selection buffer, and render the closest (say 3 tiles out) blocks. Then just use the cursor position to get the pixel colour in the selection buffer, and use this as an index into the nearest blocks. The advantage with something like your minecraft clone is you're only ever going to pick the closest geometry so you'll never have to waste time rendering everything to the selection buffer. Some OpenGL references - 1, 2 - though something similar will likely apply to any library.
  11. The blank screen is pretty normal and usually a result of one of the following - camera transform is pointing in the wrong directionscene is outside the clipping frustumwe're culling the wrong side of faceslighting is enabled but the scene is not litsomething is outside/inside glbegin/glend when it should be inside/outsidemissing glcolor In the past I found a good solution is to start with the obligatory triangle sample code, then tweak one parameter at a time until I end up with the code I want - somewhere along the way I'll find the offender.
  12. latent

    A couple of questions...

    Is everything in a single vertex buffer? Could you instead have a vertex buffer per chunk? Have you profiled your rebuild code? If the issue is transferring the (relatively huge*) updated VBO to the graphics card, then transferring only the smaller, modified VBO may be far more efficient. (* how big is the area you're transferring?) And out of personal interest, are you computing only the visible chunk surface for your a VBO or does your array include occluded geometry?
  13. For those of us that don't want to download code and compile it, can you describe how 'can't get OpenGL to render my data' presents itself? Do you get a black screen?
  14. latent

    A new video

    Loving the art style, but that falling/raising effect for terrain leaving/entering the player's area looks very distracting.
  15. ^ this. Some random examples, from your original post: [source lang="cpp"] vector<Widgets>::iterator widgetsEnd = m_widgets.end(); for(vector<Widgets>::iterator iter = m_widgets.begin(); iter != widgetsEnd ; iter++) { float width = iter->getWidth(); float viewAspect = getApplicationContext()->getScreenDimensions().getViewAspect(); //(1) float val1 = (56 * 90 + width) / viewAspect; //(2) float val2 = (57 * 90 + width) / viewAspect; float val3 = (58 * 90 + width) / viewAspect; } [/source] 1) viewAspect never changes per iteration, so why not declare it outside the loop? 2) division can be much slower than multiplication. Why not define viewAspect as 1/... and then multiply? You could continue going ad nauseum (cache hits?)
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!