• 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

298 Neutral

About ginkgo

  • Rank
  1. That looks as if the time at which you render the frame doesn't coincide with the time you render the shadow map.   Did you render the shadow map in a previous frame or update the camera settings between sm and frame rendering?
  2. Might it be possible to do raycasting along vertical lines but then setting the resulting pixels along diagonal lines using Bresenham's algorithm?   The Bresenham pattern would be the same for all lines, so there should be no holes. It could also be stored and reused. The angle of the lines should be the inverse of the actual roll. You also need a height offset, otherwise you just get a skewed image. I guess there might be some artifacts due to the Aliasing in the Bresenham, but that should be acceptable.
  3. Z is the z coordinate of the vertex.
  4. If z = 0, then you have a problem with your perspective. A vertex is located on the eye-plane.   This division by zero problem can't happen in regular graphics pipelines because the depth-division happens after near-clipping.   I guess my first attempt for avoiding this problem would simply be adding a very small bias value to z if it's 0.
  5. You can do perspective correction yourself by interpolating iz=1/z and iuv=uv/z as varyings and reconstructing uv in the fragment shader as iuv/iz.
  6. We use a very simplified software rasterizer for voxelizing triangle-meshes. We set up an orthogonal projection of the model and rasterize it into a simple A-buffer data-structure. (A-buffers are framebuffers with per-pixel list of fragment depths) After we did that we can just sort those lists, move through them from front and back and set ranges between fragments to either inside or outside in the voxel volume.
  7. Short answer: You can't really. Representing a point-light requires an infinite number of coefficients. Long answer: You can approximate it using a circular shape. The paper "Algorithms for Spherical Harmonic-Lighting" By Ian G. Lisle and S.-L. Tracy Huang gives a method for calculating the coefficients for this directly.
  8. This is something that is not usually done using shaders. Instead you just set the viewport to the split-screen area and update the scissor rectangle accordingly. (At least with OpenGL; I guess it's pretty much the same with D3D, though) Afterwards you just render using the standard shaders.
  9. Take a look at this: [url="http://www.iquilezles.org/www/articles/volumesort/volumesort.htm"]http://www.iquilezle.../volumesort.htm[/url] This uses different indices for different view directions. This should work pretty well for your problem. You can reduce the amount of necessary index data by using instancing or something like that.
  10. Maybe this article might help you: https://lva.cg.tuwien.ac.at/ecg/wiki/doku.php?id=students:fill_rasterization
  11. If you have a way to sort the particles from back to front you can use the particle depth to scale and blur them according to their circle of confusion and mix them all together with alpha blending. You could do the scaling of the bilboards in the geometry shader. The DoF particles wouldn't really interact with the DoF of the rest of the scene but this shouldn't be too apparent depending on how the particles are used.
  12. OpenGL

    Those black artifacts are often indicative of NaN Pixels which get drawn as black on most GPUs. NaN mostly results from divisions by 0. One typical example being 0/0. Since any operation with a NaN value results in a NaN, you then get those black block artifacts when applying a filter. You can test this in GLSL at the end of you shader with this code snippet: [code]if (any(isnan(color))) { color = vec4(1,0,0,1); }[/code] This will set NaN pixels to red.
  13. You can create a glossy highlight by clamping the phong-lobe. [url="https://lva.cg.tuwien.ac.at/cg1/wiki/doku.php?id=students:glossy-highlights"]https://lva.cg.tuwie...ossy-highlights[/url] Image based lighting is even simpler and creates great results: [url="https://lva.cg.tuwien.ac.at/cg1/wiki/doku.php?id=students:image-based-shading"]https://lva.cg.tuwien.ac.at/cg1/wiki/doku.php?id=students:image-based-shading[/url] This works as long as you don't change the viewing angle. You can also do reflection mapping with sphere maps: [url="https://lva.cg.tuwien.ac.at/cg1/wiki/doku.php?id=students:sphere-mapping"]https://lva.cg.tuwien.ac.at/cg1/wiki/doku.php?id=students:sphere-mapping[/url]
  14. You should use lighting to calculate alpha. Just normal lambert lighting should do the trick: [code] light_dir = normalize(light_dir); normal = normalize(normal); float alpha = max(0, dot(light_dir, normal)); [/code] You will need to interpolate the normals for that.
  15. [url="http://www.iquilezles.org/www/articles/patchedsphere/patchedsphere.htm"]http://www.iquilezles.org/www/articles/patchedsphere/patchedsphere.htm[/url]