Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

322 Neutral

About Nickie

  • Rank
  1. Thank you for your replies-oppinions.   What I'm going to do is to prioritize the collision response of the objects that have largest area overlapped. This is most likely to solve the other problem(I hope).   P.S Randy nice tutorial you have written. It was really easy to follow and everything took place in my head. Good job.   MARKING THIS AS SOLVED.
  2. Illustration: http://s22.postimg.org/7agd30vap/Untitled.png So the little box is my character. The red arrow shows the current velocity(Some force to right + gravity). Below it are 2 blocks which has the same height. The problem is that my algorithm would solve the collision normals with error.(You can see them in green). These would mean that my character would not slide, but will stop in one place.  In this place both collision normals should have been UP(0,1).   Implementation details: I'm following this tutorial: http://gamedevelopment.tutsplus.com/tutorials/how-to-create-a-custom-2d-physics-engine-the-basics-and-impulse-resolution--gamedev-6331     Is there something I miss and how can I fix this problem?  
  3. Nickie

    Good Electronics Projects for Beginners

    Raspberry PI is fun but its tricky to power it if you are not lucky like me. All of the charges in my house were giving ~4.70V and raspberry was constantly getting into random kernel panic.  Its fny that after I powered it with arund 5V it still didn't work. I found that the low voltage had erased random bits on the SD card and the image was corrupted... And I need to travel ~40 minutes to the closest electronics shop... Yet I'll try to power it by batteries using a linear voltage regulator. If I have time to buy one 0_0... Still I would recommend it.. Its nice to have linux in your pocket.
  4. Nickie

    Oh my glorious code!

    The feeling of finding old code is awesome. Last week I found my old naruto(cuz there are sprites ) arena game in Visual Basic. Hah I wrote it when I was 13 or 14. Srsly I had multiplayer and 2 characters , though I didn't know what function is and everything was in one large, really large function(automatically generated from a timer I think, I had found that if I double click it shows me editor and I can start typing )   PS. I used the deprecated direct draw for drawing... . My greatest achievement was the moving camera that is following the character. Ohh also I found a vid of my game:  hope you like it
  5. Find an option in VS project settings where the default is Multi-Threaded DLL or Debug Multu-threaded dll. Change it to simple "Multy-Threaded". That should work.
  6. Hello there! For some reason I don't really understand what you mean but I will try to answer your question...   What is you framework? How is everything working? +There are many good articles about stuff like this: http://www.gamedev.net/page/resources/_/technical/game-programming/how-to-structure-a-game-r3113 for example... Just pick 2 and read them.   I assume you don't want yout whole game to be in one file and you want to split the things up. First it makes common sence the core game's main loop to be after the initialization function. I wouldn't spli them up. Though every other component would get its own file. I'll give an example on how to do this.   objects.h #pragma once class Entity { public: virtual void update(float deltaTime) = 0; virtaul void render(/* render context */) = 0; }; class Player : public Entity { public: void update(float deltaTime); void render(/* render context */); }; //... and so on... objects.cpp #include "objects.h" void Player::update(float deltaTime) { if(key_pressed('W')) { move_forward(); } //... and everything else you would like to see in your player } void Player::render(/* context */) { if(player_visible()) { context->render(get_player_vertex_data()); } }   main.cpp #include "objects.h" void init() { } std::list<Entity*> objs; void loop() { while(1) { //handle events while(there are messages) { } for(auto i = objs.begin(); i != objs.end(); ++i) { (*i)->update(time); (*i)->render(context); } } } void kill() { } int main() { init(); loop(); kill(); return 0; } Everthing declared can be used, if it is defined somewhere in any of the .cpp files
  7. Hello everyone, I would like you to define some words. Model - does it consist of just one mesh? Or multiple meshes? Mesh - does it contain multiple objects. I mean should the mesh contain more than one pair of index/vertex buffers for example. Node - It may be scene node, and it contain pointer to the mesh/model?, the texture, shader, etc.(to allow using the same mesh with different textures). It contain also parent(if the scene is tree oriented), relative position, etc..   Where does the animation goes to? There are thousands of ways that come to my mind to handle animation. Is the character represented from long list of verticles(just one buffer)? If so, I guess animation would go into the mesh object.   These questions may seem easy to answer by some people but I would like to make the things clear for myself. There may be different interpretations of the words I mentions, but what do you understand/imagine when you see these words.
  8. Boost's shared pointers are now part of the C++ standart(11) if I'm right. Before that you could still find it in tr1. So bascially the standart library has some code to help you manage the lifetime of your objects altough its not language feature itself.
  9. Nickie

    Voxel engine load times

    Well I had the same issue. I was loading everything at program startup. If I use vectors for the chunks/blocks it takes around 30 seconds to load everything. VS told me that I'm stuck at the allocations. Moved to raw array and the result was fantastic. You could not even feel that its allocating ~150MB. I was shocked then, now it seems quite normal.Allocating(searching in the heap) is not that heavy operation if you request single block of data. Searching multiple time is the problem.
  10. Well, I my problem is that I cannot find a good book, because I don't know what keywords to use to the search engine, for example. I don't have problem understanding english tech literature. I've already read game coding complete. The guys seem to know what are they talking about. And still many of the stuff is not suitable for real world code. Game Engine Architecture - Thats was my next choice after GCC. Well, I guess most of the stuff were already coverted in GCC and it was really easy book. The only thing that I didn't know about was the character animation. Currently I'm reading a random book on design patterns hoping it will help me produce good code.   Khatharr - nope. There is only one or two books about programming(in general) in my native language. Even the student's books in school about programming related classes are in english.   P.S. If everything I need is experience then thats good. I already coded one engine(completely refactored/rewritten 3 times) and I guess I'm getting better and better. I was just looking for a way to speed up the process. From my point of view: Code can always be better. Even after I have passed the stage "everything should be perfect" I still have the feeling I miss something.
  11. Hello everyone. I'm catching a bad tendency about my code. Short after the piece of software grow at 20-25+ files the code seems to be hard to follow and understand. But with proper comments I can remove the last statement "understand". I'm trying to use some kind of patterns to achive better code however everything end up a big mess at the end. So... I fail to hide the complexity in my code. However I don't know how to google about books on the subject. I'm not native english speaker and I canno find good keywords.   My question is: Can you recommend me a good book that can help me write good code?
  12. Simply, no. The standart implementation of python(CPython) compiles the code only to bytecode.   For freeze - It saves the python bytecode as a C array and compile it in exe. then It simply run it by the interpreter. I guess py2exe use a similar way(as far as I know it does not require compiler). P.S. http://stackoverflow.com/questions/2912404/how-does-py2exe-actually-and-simply-explained-work If you don't want to read this: It still uses the standart interpreter to execute python bytecode. It is not turned into machine code.   Basically if someone decide to read your code or modify it, you cannot stop him. (Even if its in machine code/bytecode)   Also python bytecode keeps variables and function names, so I guess the source can be completely recovered from bytecode(without comments).
  13. Nickie

    MSVCR110.dll is missing on executable

    Well as far as I know, windows/your app should check the running directory for dlls from that kind. You can just google the name of the dll, download and put it in the same directory.   -or-   http://msdn.microsoft.com/en-us/library/aa278396%28v=vs.60%29.aspx check this out. Use /MT (I'm not really sure will this work, but I managed to run my app some years ago on a PC without almost any runtime libraries.)
  14. Nickie

    Character Animation.

    Thank you. Everything I needed.
  15. Hello! Which is the right way of implementing skeletal animation? Does it worth? Hardware vs software? The first thing that pop into my mind is getting all data in memory and one dynamic vertex buffer. Each frame calculate new vertex position in software and update the buffer? Is this the right way of doing this? Yes or no? If no,can u give me a hint if 1-2 sentences. I don't deserve more.. after all I ask before I have tried anything ;/
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!