• 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

1152 Excellent

About BloodyEpi

  • Rank
  1. A few notes: - no need for "using namespace std", you are writing it anyway(which is a good thing) - virtual destructor in System - At some point you will want specify the order in which the systems are updated, currently you can control this only by the order in which they are added - Its hard to give advice without seeing how you will be handling the components
  2. I'd say both code snippets you provided should do the same eventually.   newLayout will be released at least twice, once with the direct call and once after it is destructed/overwritten in the vector.   How about GetInputLayout() simply keeps and returns a ComPtr itself? This way its also clear who should perform the cleaning.
  3. Why not just have an online compiler with basic IDE to try out some stuff? Either people get hooked and are willing to install some overhead needed to get started or they just close the browser tab.   While I was reading my last C++ book and had only a not so fast tablet available, this was the perfect solution to try out some snippets.
  4. http://web.archive.org/web/20020802074137/http://astronomy.swin.edu.au/~pbourke/modelling/polygonise/   This has a very good explanation and simple code (not dX specific though).
  5. If you use universal references(which sounds like what you need) you can also add an enable_if to limit the parameter type instead of a static_assert.
  6. - Getting a reference or pointer into a map which might just delete that element sounds like a bad idea - Also keeping pointers to components means that every time a system moves through a components vector, you'll have to dereference every single component (also true if getting a single component from that vector) - If you really need to use pointers and pass them around, use smart pointers, otherwise someone is going to delete a component and you'll have a lot of fun debugging that   Since you already have a vector for every type of component why not just have multiple vectors of type std::vector<ComponentX> and some template magic to have multiple of these within the same pool? After that a loop iterates over one of these vectors and calls some system with a reference to every component.   Theres also quite some ECS implementations available to look at or use.
  7.   Actually, m_ for members and g_ for globals helps quite a bit while reading a lot of unknown code. For example, when doing something with threading and you see that a member is used, but can't find a mutex anywhere around.
  8. This seems like something easily done using a debugger.   Also, it seems like parents can have only one child, but multiple childs can have the same parent?
  9. Did you check the headerfile of RakNet::SocketDescriptor? The member is in there?   Maybe its just a weird follow up error from something else, like missing include guards etc.?
  10. So, I guess putting my data into an RWStructuredBuffer and letting the CS do its work sounds good.   The internet says that, afterwards, I can use a UAV to directly stream a new mesh into a VertexBuffer using the CS and the previously created data. (Please correct me if Im wrong or this can be done somehow more effective.)   Thanks!
  11. Hi,   I came across this idea for Surface Nets (http://www.merl.com/publications/docs/TR99-24.pdf) and I was wondering if it would be a good idea to implement it using D3D11.   The algorithm would need to iterate over a net multiple times, however since it needs to know the coordinates of every voxels (up to) 6 neighbors for a calculation, a simple vertex buffer probably wouldn't do it.   So, is there a way to let a shader write into some kind of hlsl buffer? I've been looking for an answer but couldn't find much, I have been doing some stuff with the stream output, but I don't think generating a new mesh for every iteration is a good idea.   Or would this be something better run on the CPU, since there is probably some branching going on depending on how many neighbors a voxel has.   Thanks in advance
  12. Have you tried debugging it?   How sure are you that frameDelta is 1 / oldTime doesn't change? It sounds like only one of these can be true.
  13. Got it to work void ConstructEntity(const Entity entity, void* memory) needs to get a reference void ConstructEntity(const Entity& entity, void* memory)
  14. Hi, Im having some trouble calling an as method and passing an object per value.   This is my as code: class Object { Object() { } void OnUpdate(Entity entity, int deltaMs) { Print("Hello world\n" + deltaMs); } }; If I remove "Entity entity" (and other corresponding code) everything works fine. If I add it back in I get a weird error (see below), so my guess is that it has something to do with the entity class.   Here is the code I register it with: void ConstructEntityDefault(void* memory) { new (memory) Entity(); } void ConstructEntity(const Entity entity, void* memory) { new (memory) Entity(entity); } void DestructEntity(void* memory) { ((Entity*)memory)->~Entity(); } //later on r = m_engine->RegisterObjectType("Entity", sizeof(Entity), asOBJ_VALUE | asOBJ_APP_CLASS_CD ); assert( r >= 0 ); r = m_engine->RegisterObjectBehaviour("Entity", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(ConstructEntityDefault), asCALL_CDECL_OBJLAST); assert( r >= 0 ); r = m_engine->RegisterObjectBehaviour("Entity", asBEHAVE_CONSTRUCT, "void f(const Entity &in)", asFUNCTION(ConstructEntity), asCALL_CDECL_OBJLAST); assert( r >= 0 ); r = m_engine->RegisterObjectBehaviour("Entity", asBEHAVE_DESTRUCT, "void f()", asFUNCTION(DestructEntity), asCALL_CDECL_OBJLAST); assert( r >= 0 ); And here is the code to call it: void CallFunction(asIScriptFunction* func, void* object, Entity entity, int delta) { assert(func); int r = m_ctx->Prepare(func); assert( r >= 0 ); if(object != nullptr) { r = m_ctx->SetObject(object); assert( r >= 0 ); } r = m_ctx->SetArgObject(0, &entity); assert(r); r = m_ctx->SetArgDWord(1, delta); assert(r);  If I call the first SetArgObject method, m_ctx (asIScriptContext) becomes 0x0. More precisely, it happens when calling the copy constructor in ConstructEntity(...)   The constructor is defined like this: Entity(const Entity &other) = default; If you need any other information let me know.   Thanks in advance Epi
  15. Yes.