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

EvilWeebl

Members
  • Content count

    84
  • Joined

  • Last visited

Community Reputation

126 Neutral

About EvilWeebl

  • Rank
    Member
  1. If I have a model, such as a robot, I am able to swap its limb meshes out and replace them with other robot limb meshes by merely removing the limb mesh from the skeleton and attaching the new one to the appropriate bone.   Now I want to essentially do the same thing but with a skinned mesh, say a human/monster character. For example I want to swap a normal human arm for some bad-ass demon arm. How do I go about doing this as I believe I need to take into account skin/bone weights etc.   A great example I have found is the game Impossible Creatures
  2. [quote name='Brother Bob' timestamp='1347627942' post='4980041'] To summarize; seven digits of accuracy does not mean that any value with seven or less significant digits can be perfectly represented, it means that values are not exact but accurate to seven digits. [/quote] Ahh I see where I went wrong now, thanks for summing that up for me. Also laztrezort that link was a good read so thanks for that.
  3. Thanks for the reply, Sorry I should have been more specific, the numbers I provided are examples of my bound.Height and bounds.Y values, bounds being another RectangleF so they will be floats and not doubles. Well It's not too important its just causing it to crash when I set some other values that rely on it clamped between 0 and 1 but as you say I can just clamp that myself. I was wondering if using decimal here would be preferable? Or at least casting them to decimal and then the resulting answer back to a float?
  4. Hi all, More than just solving this problem I'd love if someone could explain to me the cause for this: I'm doing a winforms projects and have a picture box with an image. I drag a rectangle over that image and get the bounds of that rectangle. The thing is that I need to store these bounds as UV coordinates and as the picture box Y is at the top and UV's Y(or V) starts at bottom I need to flip them. I do this like so : return new RectangleF(bounds.X, 1.0f - (bounds.Height + bounds.Y), bounds.Width, bounds.Height); I should mention that X and Y range from 0.0000 - 1.0000. Now the problem occurs when I select most if not all the box and the equations looks something like: return new RectangleF(bounds.X, 1.0f - (0.9886 + 0.0114), bounds.Width, bounds.Height); Now obviously 1.0f minus this sum should make 0, but instead I'm getting -0.0000000158324838. Now I've seen that a float has a 7point accuracy but as you can see I'm not using that, so what is the problem? Any help would be much appreciated.
  5. But level 100 would be the maximum level, so whether it would continue to rise or not is not important as the character is capped at level 100. I realise that in my example to exponent is greater than 1, but changing the curve amount given a different exponent. a curve amount between 0 and 0.5 gives a positive curve and between 0.5 and 1 gives a negative curve. If anything this is a great help for defining growth rates of different characters. Am I right? Of all the googling I've done on rpg stat leveling formulae why haven't I come across anything like this? Makes me think I'm missing something.
  6. Hi all, sorry I've been away so long. I just discovered something called Ken Perlin's bias that seems to suit my needs well and is adjustable on the growth. I am having a problem trying to fit in the base stat though so if I could get some help that would be great. This is what I have so far : stat(level) = (level/maxLeve)l^(log(curveAmount)/log(0.5)) * MaxStat In the following example the stat is 0 at level 0 and 500 at level 100. [url="http://www.wolframalpha.com/input/?i=plot+x%3D+0+to+x%3D100+%28x%2F100%29%5E%28log%280.2%29%2Flog%280.5%29%29*500"]http://www.wolframal...)/log(0.5))*500[/url] Now as I said I'm not sure where to be fitting the base stat into this equation to ensure it starts at say 50 but ends at 500. Any help much appreciated. Edit : actually could this be it? stat(level) = ((level/maxLeve)l^(log(curveAmount)/log(0.5)) * (MaxStat - baseStat)) + baseStat
  7. Wow such a lot of info to take in at once and I hardly understand any of it. Away from the computer at the moment but will look into it as soon as I can. Also I believe your right about logaritic curves not being for me as I checked them out and I did notice it can't be influenced between a maximum and minimum.
  8. Hi all, I'm making a game where the character levels up and stats need to be increased. Now its a bit dull if every level got +1 for each stat so what I want is an exponential curve. The thing is I keep finding millions of things about making it start slow and get faster but can find sod all on the opposite, as in many rpg's you gain pace quite quickly and then at higher levels ease off. Now I'm not really an expert on this side of maths and have heard many terms such as negative exponential curve, logarithm etc. What I want is to take a min and max value and curve between them over 100 levels. Say at level 1 I want attack to be 1 and at level 100 I want it to be 1000, but at level 50 I don't want it to be 500, rather more like 600. I'm sure you understand. I've been trying formulas in wolfram alpha but not really getting anywhere. Could some one help me out. Any help much appreciated.
  9. Hi all, I want to build an animated character for a 2d game but I want the limbs to be interchangeable. Imagine like a cardboard puppet where all the limbs are attached by pins. In essence what I want is for sprites to be attached to an animated skeleton system, understandably this isn't possible and I definitely don't want to be manually animating the character. Instead what I figure is I'd make some planes in 3ds max or something and attach them to an animated skeleton. My question is how do I then import that into my android project and animate?
  10. I have 3 projects in my solution; a native engine that produces a lib, a managed interface that uses that engine lib and creates a dll, and a managed Editor that uses that dll and accesses the engine through the managed interface. Ive recently been trying to implement assimp the asset importer into my engine and as soon as I have all the include and lib directories included and include the headers its all building and compiling fine. As soon as I try and utilise even the first bit of assimp my managed editor decides to through out this error at runtime: System.IO.FileNotFoundException: Could not load file or assembly 'ManagedInterface.dll' or one of its dependencies. The specified module could not be found. Its fine when I comment out the single line of code relating to assimp and runs perfectly but as soon as I uncomment it it will crash at runtime again. It's probably not directly significant but this is the line of code in my engine: Assimp::Importer importer; I figure it must have something to do with the way my include or lib directories are set up or something with assimp isn't getting built correctly. Any help would be much appreciated.
  11. I figured it thanks, I wasn't including the DX include and lib directories in my other projects. For some reason I always thought if you referenced the lib of a project that included the directories then it was ok but no, you have to set the directories up again for that project. It was in D3Dcommon.h though so thanks for your help.
  12. I'm building an Engine lib and have a function in my Engine.h that looks like this: HRESULT CompileShaderFromFile(WCHAR* szFileName, LPCSTR szEntryPoint, LPCSTR szShaderModel, ID3DBlob* ppBlobOut); This Engine project itself doesn't produce any errors but two other projects that access it by its lib produce the error: error C2061: syntax error : identifier 'ID3DBlob'. Probably a simple answer but I'm not very good with including libs and dll's and stuff into other projects.
  13. We can forget this ever happened, consider this discussion closed. The libs weren't included in the linker *facepalm* Thanks anyway
  14. Ok so I included the Directx include in the other projects and then included d3dx11.lib and the whole blobs error went away. I should have been more specific about that second problem it wasn't my helper function it was having the problem with it turns out its this directx function it doesnt like. [code] D3DX11CompileFromFile(L"shaders.hlsl", NULL, NULL, "VShader", "vs_5_0", NULL, 0, NULL, &VS, NULL, NULL); [/code] it seems to be producing these errors in the projects that are importing the lib: error LNK2019: unresolved external symbol _D3DX11CompileFromFileW@44 referenced in function "private: void __thiscall Engine::InitPipeline(void)" (?InitPipeline@Engine@@AAEXXZ) C:...\NativeEngine_Sample\NativeGame\NativeEngineLib.lib(Engine.obj) NativeGame error LNK1120: 1 unresolved externals I've included just about every header that my lib uses such as d3d11.h, d3dx11.h, d3dcompiler.h, d3dcommon.h and yet still get same errors. Any ideas?
  15. Thanks for the quick reply. Excuse my ignorance but which file? The engine.h file in my Engine lib or the files in the projects that are importing them? Im sure ID3DBlob is under ID3DX11.h which is included in my Engine lib project and compiles fine, its just the projects that import it are complaining. I presumed projects that imported the lib would also import the headers the lib is using, no? I have to #include all the headers again? It seems in the Engine lib project's external Dependencies it has D3DX11.h (hence I can #include it) but other projects that import the Engine libs are lacking it(although amongst the list seems to be most other DX headers). How do I add an external dependency? I'm sorry if these are brutally noobish questions but my experience is as much as starting a new project and going properties/include directory/ add DX. Also this solution was sent to me as a starting point and I have no idea how it was set up.