• 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.

dchristopherfennell

Members
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

132 Neutral

About dchristopherfennell

  • Rank
    Member
  1. My degree is math with a minor in computer science. I fell in love wiith graphics programming when I was doing simulation work for a defense contractor. I started off using DirectX and learned OpenGL on my own. I am completely self taught, with a lot of help from these forums. I never had a mentor so I am always wondering if what I did was really the correct way to do it. You will have to get used to doing a lot of online searches for tutorials/examples. The graphic APIs (DirectX and OpenGL) move at a fast pace. I am in awe of people who are able to keep up with it all. I was in gaming for 12.5+ years and now I am back to simulations.
  2. Running on ATI, if my shaders are compiled with 12.1 drivers and loaded with 12.2 drivers, glBinaryProgram will crash. I assumed that I would get an invalid link, which will let me know they need to be recompiled. I ran another application which had the same thing happen. Anyone else experience this?
  3. For anyone else reading about this problem, the answer appears to be related to NVIDIA cards with the beta glIntercept. You can read more about it here: [url="http://blog.podvilla.com/?p=41"]My link[/url] The latest glIntercept fixes the problem: [url="http://code.google.com/p/glintercept/"]download[/url] If you don't download the latest app, you can prevent this error from occurring by turning off "Threaded Optimization" under your 3D management menu in NVIDIA settings.
  4. Thanks for the input. I'm glad to know that it wasn't just me. I've contacted ATI about this too.
  5. Perhaps the statement should have been that glLinkProgram is slow with UBO's containing large arrays.
  6. Anyone have this problem with instancing? I have a uniform buffer object shared between shaders. The block looks like this: #version 150 #extension GL_ARB_uniform_buffer_object : enable uniform MatrixBlock { mat4 MVMatrix; mat4 NormalMatrix; mat4 ProjectionMatrix; }; uniform InstanceBlock { vec4 rotation[1000]; vec4 position[1000]; }; .... mat4 quatToMatrix(in vec4 q); void main() { mat4 world = quatToMatrix(rotation[gl_InstanceID]); world[3][0] = position[gl_InstanceID].x; world[3][1] = position[gl_InstanceID].y; world[3][2] = position[gl_InstanceID].z; .... } This causes glLinkProgram to take a very long time to link for each shader that uses this block. It's painfully slow. If I reduce the number from 1000 to 100 for the position and rotation arrays, the link is considerably faster. I'm compiling on ATI 5700 HD series. Is this the norm or am I doing it wrong?
  7. The target sent to glFramebufferTexture2DEXT to render a specific 'face' is GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB + face. For example: glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB + face, cubemapTextureID, 0);
  8. You are right about the texture matrix. I discovered that problem yesterday after I posted. The texture matrix needs to be set for the correct texture unit and the shadows now appear. ...Now to solve all the other visual anomalies :) Thanks for the input
  9. All the tutorial examples I see using shadow maps use one texture, the shadow map texture, and apply it to a scene with no textures The scene depth information is rendered to a shadow map The scene is rendered using a low ambient light The scene is finally rendered with the shadow map applied. I'm not using shaders for my shadows. I'm having trouble understanding how to apply this in a scene with multiple textures. All examples I see have the shadow map bound to glActiveTextureARB(GL_TEXTURE0_ARB), then apply the "compare R" to texture node and render the scene (spheres, boxes, pyramids etc...without textures) If you are rendering a scene that binds textures to GL_TEXTURE0_ARB texture unit (trees, buildings, etc), then I assume you can set the shadow map to glActiveTextureARB(GL_TEXTURE1_ARB) or higher (glActiveTextureARB(GL_TEXTURE7_ARB), for example) and it would work. However, I do not get any shadows. What if the scene is multi-textured? First Pass: Render the scene from the light point of view Copy the depth information to a depth texture Second Pass: Render the scene with a low ambient/diffuse light to make the shadow color Third pass: Render the scene by applying the shadow map Code for third pass (From one of the tutorials) glEnable(GL_DEPTH); glDepthFunc(GL_LEQUAL); glMatrixMode(GL_TEXTURE); glLoadIdentity(); glTranslatef(0.5f, 0.5f, 0.5f); glScalef(0.5f, 0.5f, 0.5f); glMultMatrixf(lightProjection); glMultMatrixf(lightModelview); glMatrixMode(GL_MODELVIEW); GLfloat splane[4] = {1, 0, 0, 0}; GLfloat tplane[4] = {0, 1, 0, 0}; GLfloat rplane[4] = {0, 0, 1, 0}; GLfloat qplane[4] = {0, 0, 0, 1}; glActiveTextureARB(GL_TEXTURE1_ARB); <----- HERE IS WHAT HAS CHANGED glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, _shadowtexture); glEnable(GL_TEXTURE_GEN_S); glEnable(GL_TEXTURE_GEN_T); glEnable(GL_TEXTURE_GEN_R); glEnable(GL_TEXTURE_GEN_Q); glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR); glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR); glTexGeni(GL_R, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR); glTexGeni(GL_Q, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR); glTexGenfv(GL_S, GL_EYE_PLANE, splane); glTexGenfv(GL_T, GL_EYE_PLANE, tplane); glTexGenfv(GL_R, GL_EYE_PLANE, rplane); glTexGenfv(GL_Q, GL_EYE_PLANE, qplane); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_R_TO_TEXTURE); glTexParameteri(GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE, GL_INTENSITY); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_FUNC_ARB, GL_LEQUAL); glEnable(GL_ALPHA_TEST); glAlphaFunc(GL_GREATER, 0.9); RenderScene(); // Reset states here I have not been able to find a solution for this that does not use shaders. Any help or insight is appreciated.
  10. Two readings helped me out with this intially. For the math, read up on Eric Lengyel. He gives a good explanation on this discussion forum: http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/011349.html He also has another example here: http://www.terathon.com/code/tangent.html This article is one that many people point to for a basic explanation: http://www.paulsprojects.net/tutorials/simplebump/simplebump.html