Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

887 Good

About japro

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Wasn't checking if "glGetString(GL_VERSION)" returns null the way to do that? (null meaning there is no context...)
  2. japro

    Support OpenGL 4.0

    Wasn't OSX 10.9 announced to have OpengL 4.1? On current versions you can create 3.2 core contexts at best.
  3. Actual console APIs (curses?) tend to be very restrictive and not very portable depending on your requirements (color...). As a result a lot of "ascii games" like roguelikes or Dwarf Fortress actually run their own console emulation in OpenGL. Also its most likely faster. I can run a full screen "console" in OpenGL on my crappy netbook (GMA3150) at a cost of less than a millisecond per frame while doing the same in a console API is significantly slower.   btw. modern style dx/ogl are really just general purpose graphics APIs and using them for non 3D isn't overkill at all.
  4. For a monospaced console font just use a "spritesheet" Its fairly easy to then create a console by either instancing those or doing it via clever texture lookups on a fullscreen quad (see how libtcod does it for example).
  5. japro

    Smart Pointers Gotchas

    I feel it should be mentioned that if you want to dynamically allocate arrays you should probably use a std::vector to begin with. You can usually afford those two size_t for size and capacity...
  6. Yes, an actual 1/d^2 falloff for arbitrarily low d would be unphysical... but so is the concept of a point light source ;). Now if you have a spherical light source you can integrate the 1/d^2 over the sphere surface and will find that it is equivalent to having a point light source at the center of the sphere as long as you are observing from outside the sphere (edit: to clarify i think you have to integrate over the whole sphere surface, so this would be a "transparent" light emitter). Also notice that while moving arbitrarily close to a theoretical point light source the energy doesn't go to infinity, the energy density does... Generally when we speak of point light sources we mean that the radius of the light source is a lot smaller than the distance we observe from. If for example you had a linear light source then you will find a 1/d falloff and and if you have a light emitting plane there is no falloff at all (assuming the plane/line is infinite, or we are so close to it that we can consider it infinite for practical purposes)   Here you are mixing up relative and absolute measurements. You quoted "doubling the distance cuts the intensity by four"... now how do you go from doubling the distance to "2 feet"? Or more specifically, which distance did you double? Doubling the distance would mean to go from 1 foot to 2 or from 0.3m to 0.6m in both cases you doubled the distance and quartered the intensity...
  7. So? Doing 2D means you are using a orthogonal projection, or at least its equivalent to doing that. You can always treat 2D as a special case of 3D.
  8. You usually don't actually scale any objects, you just change the "camera transform".
  9. japro

    A Daft Statement

    I don't even know what that means... So when i encounter a problem that is inherently mathematical I'm supposed to solve it in a "non formal way"? what would that be? Applying numerical solutions to everything instead of searching for a closed form solution?
  10. At least under linux I can use GLSL 1.0 on my Atom N550 netbook (which has said GM3150). Performance is obviously questionable at best.
  11. OpenGL will run on almost anything, but the feature level will vary. Intel based netbooks report as OpenGL 1.4 I think but support extensions that almost make them OpenGL 2 compatible (most of the missing extensions are multisample related afair). I think some of the AMD based netbooks even had OpenGL4 support but don't quote me on that.
  12. I can't remember where I read that but there was some article about building a "safe environment for kids" in a online game by having a sentence construction toolkit that only consisted of "safe words". Apparently within minutes of playtesting with actual children someone had come up with something along the lines of: "I want to stick my ice cream into your fluffy bunny"... so no matter how you do it time-to-penis is always finite and usually really short
  13. Which is what I found so infuriating about most OpenGL resources... They claim to teach OpenGL in their name but in reality try to teach Graphics Programming while wierdly working around the math and just happen to use OpenGL for that. But that is apparently the main audience I guess . So if you don't need someone to simplify the math for you and have some idea about how computer graphics work you are better off diving into the specs.
  14. The best way for me to learn OpenGL was/is to get examples from somewhere and cross reference them with the specification and reference pages. That is also why I wrote a bunch of examples myself (see my signature) that i regularly consult and copy from as a starting point.
  15. Also not ussing a quadtree at all is probably even faster :p. I don't get why everyone instantly jumps to quad trees for broad phase collision detection. Just grids/cell lists are often easier to implement AND perform better. Especially in the asteroids case where the domain is limited.
  • 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!