• 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

367 Neutral

About neonic

  • Rank
  1. Lucky dog...   :)
  2. Might also make sense to switch over to a spherical coordinate system.  Pick a random value from 0 - 360 for X, 0 - 360 for y, and a random value from 0 - radius for z. Then convert that to the cartesian coordinates.   http://en.wikipedia.org/wiki/Spherical_coordinate_system It's just what I would do, you don't necessarily have to.
  3. Without knowing the exact answer to your problem, might I simply suggest picking up & learning how to use gDEBugger.  It has been an immense help for me while debugging some pretty complicated GL issues.  With this tool, you can verify that your data in the VBO has been uploaded to the card correctly to make sure your resources actually exist.  It can also break on GL errors, which is mighty helpful.
  4. I wouldn't implement a drawLine in a pixel shader.   The way this would work is you would create a piece of 3D geometry representing the "line" in 3D positioning.  You could convert the 2D window coordinates to 3D world coordinates, and then render that.  For a shader to work, you need to have geometry that generates pixels that make up your object in screen space.   The fragment shader that you have bound during your draw call will only determine what color that pixel ends up being... the 3D geometry is still required.   Again, I point you to read the link I posted, and it may be a little more clear.  Before any rendering is done, you generate your Vertex buffers, which uploads all of the vertex locations to the Video card.  Once that data is in there, you can draw all of that geometry with a single function call.  You set your shader to active, then draw the geometry.  That's what executes the shader.   Shaders don't represent a "program" like you would normally think of a desktop program.  They're simply a tool to help you deliver high fidelity graphics.
  5. If this is for maintaining a build solution cross platform, have you looked into using CMake? While this may not answer your question about where's standard, but I thought your comment about there not being a good cross platform build solution warranted a comment.   You can write some cmake modules for Finding specific packages, some packages even include their own CMake Find modules.
  6. Yes, I think you may have a misunderstanding of the programmable pipeline.  It's incredibly powerful.   Fragment shaders are per pixel.   Read this: http://msdn.microsoft.com/en-us/library/bb205123%28VS.85%29.aspx
  7. What kind of variables are you having to feed from the Main Game class to the Unit?  This sounds to me like it's indicative of a larger design problem.  Can you give a little bit more information on how your current system is set up, what is being passed between, and what is the relationship of the main level & the unit class.
  8. This may not be the perfect solution, but what I'm reading of your system, to me it makes sense to refactor it a little bit.  I wouldn't have concrete classes representing states during the "transition" between two animation states.  If I were designing a system like this, I would likely create a generic class to describe properties of the animation.  I would also include several transition types... a cross fade blend, a directional blend, etc. These would operate on two AnimationStates: from & to.  It could accept information such as duration, weights, curves, etc.   Then just do the operation until duration & set the final resulting AnimationState at the end.   Edit: I think your question, upon re-reading it, may have been more about making the animation sequence look polished.  I would have an Idle, idle_to_walk, walk_to_idle for starters.  When you start walking your weight shifts forwards slightly, and when you stop, you will shift your weight backwards a little bit.  The effect is exaggerated when running.  Hope this helps, even a little bit.
  9. Could you use a dot product in the forward (relative to the ship) and the desired heading, and if it's less than 0, flip the sign?
  10. I did something similar only with WinForms for the editor application.  I wrote a C# winforms application that spawned my engine.exe (C++) with a command line argument.  This made the engine initialize without creating a window, and instead opened a network socket. It waited for the C# app to communicate with the engine, and when it did, the C# app passed in the HWND of a panel in my winforms app.  Then, from there, whenever anything was done in the editor, it communicated via socket communication any changes that needed to be reflected in the engine application.   It worked pretty well for my needs.
  11. The new Unity3D version will also work quite well now with 2D, as it was a major feature push for the 4.X branch.
  12. The way this is usually done is that you use some standard export format from the 3D tool to read it into your game.  In your engine, you should have some asset conditioning utilities, and this is traditionally where a conversion to a more efficient format takes place.  You bake all of the data down to a tightly packed binary file that you know the structure of.  This will remove all of the unneccesary information from the file, ensure that you can read the file in the order you initialize things, etc.   You can look into the FBX SDK from Autodesk, I've had some luck with that, or as Nanook suggests, Assimp is a good library that's really not difficult to use.
  13. This may help: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/
  14. It worked just fine for me.  The only thing that was odd was you need to be sending information such as when the C# application moves or is resized, you need to inform the C++ engine that the viewport has changed.     Otherwise, it's like sliding a piece of paper with a hole cut in it over a monitor with 3D content on it (if that makes sense).
  15. Bacterius' suggestion is exactly what I did.  I had an engine application that would run, and a C# based Editor application for composing the scenes.  When you started the editor, it started a process (it wasn't a child process, was just running on its own, doing its own thing) with the -editor flag.  This flag, in my engine, simply opened a socket & waited for a connection.  The Editor application would connect, and send a pointer to a HWND of a control in the WinForm (I believe I used a Panel? can't remember thought). This would allow my engine to directly create the rendering context & such using the HWND of the C# control.   The rest of the editor application worked by sending messages across the network to the C++ engine.   http://msdn.microsoft.com/en-us/library/system.windows.forms.control.handle.aspx