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

mrhyperpenguin

Members
  • Content count

    20
  • Joined

  • Last visited

Community Reputation

468 Neutral

About mrhyperpenguin

  • Rank
    Member
  1. OpenGL

    Why would MS have to do anything? They don't support OpenGL, Mantle, OpenCL and CUDA and yet they all work just fine... this is no different.     I was trying to bring up the fact that some people believe that Microsoft sabotaged the OpenGL implementation on Windows to increase DirectX adoption. And whether Microsoft will allow Vulkan and Mantle to be first-class citizens with DX12 (if it's even possible) and whether Microsoft will keep their open-source friendly ways up (like Promit mentioned).   IIRC, Apple has to explicitly allow support for new APIs because they write their own drivers. So "it just works" isn't always possible.
  2. OpenGL

    Looks like Khronos finally got their API redesign, pretty good timing too.   But in order for this to take off there needs to be good drivers. Not sure if Apple will keep up-to-date drivers (past bad OpenGL support, Metal) and not sure how Microsoft will cooperate (DX12 still not available). So it's mostly up to the GPU manufacturers (NV, AMD, Intel, PowerVR) to maintain good drivers. From [0], it looks like there's still a lot of work to be done.   [0] - www.youtube.com/watch?v=KdnRI0nquKc
  3. Thanks guys. With your help I have been able to compute what appears to be the correct normals (when compared to the central differences method.)     I don't have too much background in these topics so it's completely possible I'm using the terminology wrong. But yes, I am dealing with B-spline surfaces. I'm just assuming that all the weights are one (for now).     Thanks for the clarification. It was actually the website you posted that initially confused me. Their definition for \(Q_i\) involves a difference in control points but I see now that that is from a simplification and not from the derivative.   I actually found the computation of the basis functions and their derivatives to be pretty simple. I just took a dynamic programming approach and computed the values from their definition directly. As long as you compute them from the "bottom up" and store the values as you go, the code is relatively simple and straight forward. Though, I haven't looked at the algorithms you guys posted, so maybe there are gains to be made somewhere.   I don't have a particular use case for B-spline surfaces in mind at the moment. I'm more experimenting with GPU tessellation and decided to use B-splines. Now I'm going to come up with an intelligent level of detail scheme and see how many I can render at once.   I would be interested in hearing what you guys are doing with them though.   Thanks again, Victor    
  4. I'm trying to compute the analytic normals for a B-Spline surface. I know the normal is the cross product of the partial derivatives of the surface but I'm not sure if I'm taking the partial derivatives correctly.     Since a B-Spline surface is just the sum of the basis functions in each direction multiplied by the control points (2), I should just be able to take the derivative of each term and add them up (3), correct?   I'm getting the derivative of the basis function from [0].   What about the control points? Are they constant with respect to u and v? How do I take their derivative?   Thanks, Victor   [0] - http://members.gamedev.net/skyork/pdfs/Bspline_Construction_Summary2005.pdf
  5.   I would say use DirectCompute to update your 3D texture, it might be better suited for that type of computation. 
  6.   If you want to roll your own engine then an option for cross-platform development is to use Xamarin. It allows you to develop for the Android, iOS, and OSX SDKs (including OpenGL ES API) in C#. That way, you can have one codebase that you have total control over and that can deploy relatively easy to each platform.   I personally have not tried it but I am looking into it. I believe there are no restrictions on the license once you buy it. And if you are a student then you can get a license for each platform for $99.
  7. Once you're ready to get into DirectX, I would recommend Introduction to 3D Game Programming with DirectX 9.0C A Shader Approach as a book to read/reference material. It goes from mathematical foundations to shaders and all the way to shadow mapping. It even includes a (short) section about Win32 API programming as it relates to game programming.
  8. The largest component of the normal vector tells you which face it intersects. Next divide the normal vector by the absolute value of the largest component. Then scale and shit the other two components into the usual range for uvs ([0, 1] on each axis). For example if you had the vector <-3, -1, 2>. First it intersects the negative x face. Then <-3, -1, 2> / |-3| = <-1, -1/3, 2/3>. Finally just scale the remaining two components from [-1, 1] to [0, 1], <-1/3, 2/3> * 0.5 + 0.5 = <2/3, 5/6>. And similarly for each other face. Victor
  9. Try this and see if this works. In Main, delete the "using (Game game1...) { ... }" block, create your own GraphicsDevice (you have to use WinForms), and copy and paste the code from the article. [CODE] static void Main(string[] args) { GraphicsDevice device = new GraphicsDevice(); <code from the article> } [/CODE] Then make sure you call GraphicsDevice.Present() in your render() function [CODE] void render(state, GraphicsDevice) { GraphicsDevice.Clear(); <render using state> GraphicsDevice.Present(); } [/CODE] Hopefully that should work. If you want your gameloop to integrate better with the Windows message loop you can read this ([url="http://blogs.msdn.com/b/tmiller/archive/2005/05/05/415008.aspx"]link[/url]). Let me know how it works out. Victor
  10. Hi, You might want to read how Valve did wounds in Left 4 Dead 2 for inspiration. [url="http://alex.vlachos.com/graphics/Vlachos-GDC10-Left4Dead2Wounds.pdf"]http://alex.vlachos.com/graphics/Vlachos-GDC10-Left4Dead2Wounds.pdf[/url] Victor
  11. Can anyone shed some light on how DICE did their profiling in Battlefield 3 like they show on slide 13 of their paper [font="Arial, Helvetica, Verdana, sans-serif"][size="2"]"Culling the Battlefield Data Oriented Design in Practice" [/size][/font]([url="http://publications.dice.se/attachments/CullingTheBattlefield.pdf"]link[/url]) or how I would make a profiling system similar to theirs for my applications? [url="http://imageshack.us/photo/my-images/822/bf3profiling.png/"][img]http://img822.imageshack.us/img822/4189/bf3profiling.th.png[/img][/url] Thanks, Victor
  12. It is possible to modify the individual pixels in a texture in XNA. It would go something like this: [code] Texture2D texture = Content.Load<Texture2D>(@"path\to\texture\to\blur"); Color[] textureData = new Color[texture.Width * texture.Height]; texture.GetData<Color>(textureData); // do something with textureData texture.SetData<Color>(textureData); [/code] You would have to replace the type Color with whatever you texture actually holds (you can figure out by looking at the Format property). The only drawback to this approach is that it's slower than using shaders. With this method you have to copy the texture from the graphics card to the cpu and back (with shaders the texture is modified by the graphics card and stays on the graphics card.) So with large textures this approach is not real-time friendly. What you could do is blur your texture at run-time and blend between the blurred and unblurred version of the texture. Though I would recommend you to learn HLSL since no other options exist in XNA or DirectX 10+. Victor
  13. Hi WarAmp, Looking at your results it seems like your analytical solution is correct. The strange thing is that in all of the atmospheric scatting papers I've read, none have mentioned that this integral can by solved this way. They always rely on look-up tables or different sampling techniques. Funny thing is that I think Sean O'neil was getting close to analytically solving the integral in the article itself (section 16.4.1). Inigo Quilez presents a solution similar to yours on an article on his website ([url="http://iquilezles.org/www/articles/fog/fog.htm"]link[/url]) if you would like to compare. Victor
  14. Inigo Quilez wrote an interesting article that derives the 2d rotation matrix from trigonometric identities ([url="http://iquilezles.org/www/articles/sincos/sincos.htm"]link[/url]).