• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


  • Content count

  • Joined

  • Last visited

Community Reputation

714 Good

About 3TATUK2

  • Rank
  1. shouldn't you be passing something like glGetAttribLocation(shaderProgram,"vNormal") to glEnableVertexAttribArray ?   Also, see exactly which line allows something to be rendered again if commented out, i'm guessing it's the three lines following "NEW below" ?
  2. Autodesk's FBX SDK: http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=7478532   The Open Asset Import Library might be worth looking at . . . http://assimp.sourceforge.net/   Also, my personal opinion is that if you're building a custom engine from scratch, might as well implement your own model parsing, and using, ie, Wavefront OBJ is a good starting point... Since it's well documented, simple, ASCII, and basically supports anything you'd need to get going.
  3. recursive hierarchical spatial partitioning
  4. OpenGL

    http://www.arcsynthesis.org/gltut/ http://ogldev.atspace.co.uk/ http://www.opengl-tutorial.org/ http://lazyfoo.net/tutorials/OpenGL/ http://open.gl/ http://antongerdelan.net/opengl/ http://www.mbsoftworks.sk/index.php?page=tutorials&series=1 http://www.lighthouse3d.com/tutorials/glsl-core-tutorial/ http://www.ozone3d.net/tutorials/
  5. OpenGL

    take a look at gnash/gameswf, or librsvg
  6. http://www.lighthouse3d.com/tutorials/glsl-tutorial/
  7. OpenGL

    Well, a few things here... First off, I just added an extra glewInit() call after my existing one, and there is no crash or problem whatsoever. Both calls return GLEW_OK and everything works identically.   Furthermore... If you really need this kind of information in your engine - you *should* keep track of it.   Finally, not exactly what you're asking for, as I'm even guessing GLEW doesn't have a flag or way to check whether it's already initialized... But, glewInit() is *supposed* to be called AFTER a GL context is created.   If you're doing it the proper way. Doing it in that order allows it to be crossplatform. So, assuming you're doing it correctly like this, then that mandates that in order for GLEW to be initialized.. there must be an existing GL context. And you can check this by looking at glGetString(GL_VERSION)
  8. You know that glReadPixels just reads what's on the screen already, so what are you actually trying to do? Copy the screen for re-rendering at a later time?   What are you considering "the standard way"?   Modern, you would populate the texture with the pixel data, and render the texture with a shader.. But then again you also wouldn't be using glReadPixels.   So - maybe glDrawPixels?
  9. Mm... my rotatePoint will probably work, assuming the centerpoint is origin (0,0,0), so you can temporarily readjust for that, try something like this maybe.. void rotatePoint( float* x, float* y, float* z, float xRotation, float yRotation, float centerX, float centerY, float centerZ ) { *x -= centerX; *y -= centerY; *z -= centerZ; float sinPitch = sinf( xRotation ); float cosPitch = cosf( xRotation ); float sinYaw = sinf( yRotation ); float cosYaw = cosf( yRotation ); float sinPitch_y = sinPitch * *y; float cosPitch_z = cosPitch * *z; *x = cosYaw * *x + sinYaw * sinPitch_y - sinYaw * cosPitch_z; *y = cosPitch * *y + sinPitch * z; *z = sinYaw * *x + -sinPitch_y * cosYaw + cosYaw * cosPitch_z; *x += centerX; *y += centerY; *z += centerZ; }
  10. Keep in mind, FBO is not core to 2.1 - so *if* you're using pure 2.1+shaders for legacy card support, you might consider not using FBOs. Yes, most modern cards that still use 2.1 also have FBO extension, but not all of them. PBO would be what's needed.
  11. void rotatePoint( float* x, float* y, float* z, float xRotation, float yRotation ) {     float sinPitch = sinf( xRotation );     float cosPitch = cosf( xRotation );     float sinYaw = sinf( yRotation );     float cosYaw = cosf( yRotation );     float sinPitch_y = sinPitch * *y;     float cosPitch_z = cosPitch * *z;     *x = cosYaw * *x + sinYaw * sinPitch_y - sinYaw * cosPitch_z;     *y = cosPitch * *y + sinPitch * z;     *z = sinYaw * *x + -sinPitch_y * cosYaw + cosYaw * cosPitch_z; } // ... float x1, y1, z1, x2, y2, z2, u1, u2, v1, v2, textid; // x1 = ..., y1 = ..., z1 = ... // x2 = ..., y2 = ..., z2 = ... rotatePoint( &x1, &y1, &z1, xRotation1, yRotation1 ); rotatePoint( &x2, &y2, &z2, xRotation2, yRotation2 ); DrawHouse( x1, x2, y1, y2, z1, z2, u1,  u2,  v1, v2, textid ); Rendering and collision systems can be related, but are still different.   What kind of collision system are you using?   It's possible (and I'm guessing probable - partially based on observation of your code) that you could be going about it in a less-than-optimal fashion - meaning, direct vertex manipulation probably shouldn't be necessary.
  12. OpenGL

    Google?   http://www.clockworkcoders.com/oglsl/tutorial10.htm http://www.lighthouse3d.com/tutorials/glsl-tutorial/toon-shading/ http://www.sunandblackcat.com/tipFullView.php?l=eng&topicid=15 http://en.wikibooks.org/wiki/GLSL_Programming/Unity/Toon_Shading
  13. OpenGL

    It's an arbitrary format using raw flat data...   The file is "loaded" into `polyData` with a simple fread() call, and the layout is specified using primitive structures POLYGON, VERTEX, VECTOR . . .   *Haha*.   Yes, NeHe isn't the greatest. One good way to start with hands-on model loading is implementing a Wavefront OBJ parser, because it's simple. Besides that you might want to look into something like http://assimp.sourceforge.net/   Also:   http://www.arcsynthesis.org/gltut/ http://ogldev.atspace.co.uk/ http://www.opengl-tutorial.org/ http://lazyfoo.net/tutorials/OpenGL/ http://open.gl/ http://antongerdelan.net/opengl/ http://www.mbsoftworks.sk/index.php?page=tutorials&series=1 http://www.rastertek.com/tutgl40.html http://www.lighthouse3d.com/tutorials/glsl-core-tutorial/ http://www.ozone3d.net/tutorials/
  14. I'm pretty sure PNG "supports" having a proper RGB value. Obviously - there is still data there, regardless of whether it's "garbage" or not.   What determines whether it IS "garbage", is the editing application you use.   For example, I just tested with GIMP and it preserves the RGB just fine when you turn something into alpha.   Not sure about photoshop, etc.