Jump to content
  • Advertisement

Tangletail

Member
  • Content count

    695
  • Joined

  • Last visited

Community Reputation

2915 Excellent

About Tangletail

  • Rank
    Advanced Member

Personal Information

  • Interests
    Production
    Programming
    QA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This would be a stupid idea. But you can set up a contingency server. The idea here would be that the main server sends data to the disk periodically, and sends data to it's contingency process/server. If we're going with a backup server, then the data drives must be located else where. The back up server is just receiving duplicates of the data that the main server gets. If the backup stops recieving packets from the main server. Then all users will be immediately rerouted to the backup server. Data will be immediately saved, and users will be safely disconnected after being informed of some problems.
  2. ID3D11Buffer** tempBuffer = new ID3D11Buffer*[this->totalSumMeshes + FBX.meshCount]; tempBuffer = { nullptr }; This isn't safe. It's probably not the actual problem. But ID3D11Buffer does not actually delete it's self. You're creating data in your heap, and then lost the ability to delete it. Even if this was correct, this still shouldn't work. Reason at the end. for (int i = 0; i < this->totalSumMeshes; i++) { tempBuffer[i] = gVertexBufferArray[i]; } So you're copying pointers into your tempBuffer now. gVertexBufferArray = tempBuffer; Not entirely sure what's going on here. This seems utterly redundant.   But anyways... The function you need to correctly create a buffer in Directx 11 is... CreateBuffer(...) Create buffer will give you I11D3DBuffer objects that have been correctly created and initialized on the device.   I also don't believe that I11D3DBuffer is safe to actually copy, as it's data is typically managed by the Driver.
  3. The game you are looking for is called economics.   When someone first discovers a popular product, there will be a huge demand, and Low supply for now, so prices are high. As the initial man reaches demand, prices drop but the volume is high enough that he still gains a profit more massive than when supply is low.   Now enter the other players. They all see the profit and want in on the action. A few of them will drop profits as options are introduced. But more players will evetually tag in. So demand is low, and supply is high. In fact the profits continue to fall till they are marginal or loosing money.
  4. Keyboard/Mouse, but always make Gamepad an option.   Depending on the game, it may be significantly easier to play the game with a controller. So you'll eliminate some bitching and moaning in advance if this is the case.
  5. Tangletail

    OpenGL 2D RPG examples/source code

    You can take a look at the Godot engine. It's only in OpenGL, and it's cross platform compatible. There's also the Flare game which uses SDL.  
  6. Tangletail

    GameObjects and Code Structure

    Honestly, an easy way to handle this is to make a generic container that is basically a bag of holding It will hold anything of an item interface. Then to access data or to lost specific items, you allow the generic to filter out types.
  7. Tangletail

    Transfer of spin from one circle to another.

    When two circles collide, the angle of collision will NOT matter as they both will be met tangential to one another assuming that gravity is not a factor.   The topics you want to study is torque, angular momentum, and friction. For friction, typically what will happen is that the ball will be launched off using the static friction coefficient between the two surfaces in a perfect world. In an imperfect world, there will be an amount of "slippage" changing the static coefficient of friction to it's weaker cousin kinetic coefficient of friction. During this time, a large amount of rotational energy will be gained by the circle, but it will not be equal to the one that gave it unless it happens to be fixed in place.   It can be difficult to calculate this. So what you can do instead is approximate it. For instance, on contact you can say that the initial energy gain is going to be about 87% before kinetic friction kicks in, and then it slowly ramps up to maybe 89% before it disconnects.
  8. Sounds like you're doing some pretty interesting fluid dynamics. I recalled reading a book on this topic. It might be a bit wasteful to concider every particle in this manner as the solution develops,  you could very easily have infinitely many particles in one point at any given time if you are trying to go for a physically based reaction in a non-vacuum medium. You might want to try using a vector field of some resolution if you are trying to simulate a medium. This can give you an amount of history for curent forces, and can help you simulate interacting particle clouds and clusters. This will also give you information pretty cheaply to rotate the cloud if necessary.
  9. IF you are using a physics engine, there will normally be a flag that you can set for this. Otherwise, you need to manage this yourself. For a vehicle constantly on the ground, you can actually just take the normal of the ground and use that to detemine how upright you are. To give some room to let it bounce and jolt, you'd want to place this under control of foces, but also apply a dampening mechanism to prevent the vehicle from suddenly flipping off into space.
  10. Tangletail

    Character sate machine

    no, i draw a hierarchical fsm for character controller, but i want to find a true way to show attack in hierarchical fsm and communication with character movement, for example player are moving forward and want to aiming and fire or  crouch and aim and fire or . . . . in state machine now way to show this state!!!   im sorry for my bad english   I don't think you want a rigid state machine for a player character, or AI logic in general. Did you mean you wanted a state machine to swap between the animations of a character?
  11. Dynamically allocating everything is not necessairly a bad thing, if you mean you are asking the OS for your data. The process is slow, but it is not -that slow-. And it is not likely going to be the area of your bottle necks so soon.   In most circumstances, the biggest reason you'd avoid dynamic allocation are going to be for a few things. When you have thousands of a little single but small type. So you convert it into one big allocation and reuse the memory slots that they currently take up. This is called pooling. Many small allocations at once tend to be horridly slow. When you have a very small amount of memory. I don't believe an OS will typically try to defrag your memory on an embedded system. So you could potentially only have two gigs to use and that's shared between the GPU and the CPU. Fragmenting your memory will only leave small clumps of free space available that becomes unusable due to it being so small.   Or when you will be constantly allocating and deallocating in real time.Then obviously you will need to take some steps to not only speed this up, but to also keep track of your memory usage.
  12. Right now, I'm working with the unreal Engine, and I ran into an incredibly annoying problem that'd need to be smoothed out eventually.   Posted just above is a video of my current project, and it shows the problem in full view. I am working on a game that runs with spider physics. And the only sane way I could come up with to do this was by modifying the tug of gravity. But this lead to an issue, which was that at a large speed the object tends to launch it's self off of slopes and the gravity will pull it back down, which is where that jitter and bunny hop comes into play. Going up the slopes is just as jarring. Anyone have any ideas on how to fix it? I couldn't use the regular Character Movement Controller, as it's gravity is pretty much set in stone. And also that the way it handles slope movement is by always assuming that the character's up vector is in one direction, it then uses height to basically force the character in the right direction.   So I had to inherit from another movement controller with pretty much nothing done for me.
  13. Are you sure the nebula's are actually 3D or volumetric? Remember that Nebulas are super massive clouds of particles lit by many stars. If you were to look at a nebula storm from afar, for the longest time it'd look like one big flat picture because you can't tumble it without traveling a large distance. And it's also massive and far away enough that the concept of depth appears to be flatter. Remember that for us to see a nebula, from lightyears away, it needs to be so massive that if you were inside of it, it'd feel like it's going on to infinity. That being said I doubt that they are creating an actual volume. Just the apperance of volume.   http://www.gdcvault.com/play/1012551/Rock-Show-VFX-The-Effects Here's something you want to look into. To make some of the most beautiful and practically unrivaled weather effects, they practically painted the sky with artist controlled particles and sprites.     If you were trying to make a universe sandbox on the other hand....     If you sit back, you'd realize that there's a bit of cheating you can actually do. First, a nebula is dense enough that you can pretty much treat it like a solid object and model it as such. Second, we know that it is a volume, but it does not necessairly mean that at a scale where we can tumble it, we need to treat it as a true volume. Instead, you can treat it as a subsurface and get some interesting results when you play with the parameters. Third, it is surrounded by thinner but still dense clouds of gasses. You can play around a bit with this one by using a mixture of adding, and actual geometry with the same techniques just thinner and more varience. Finally, add some invisible sprites with add, multiply, clip, and subtract shaders to shape the image up a bit. Think of them like 3D photoshop layers.
  14. Tangletail

    Sending out heroes on quests

    If I am a guild master and I hire a flood of new recruits, but I also want to save the world. I'm just going to skip past the bullshit and treat them as fodder. Send them flying into the enemy at full force. Might as well launch em out of a cannon if I have to. The strong will survive, and they will get progressively harder missions. There can be only one hero. And the player must prove himself.   Reason for this approach? The more dead soldiers, the less you gotta pay. But the brute force method also works pretty well at chipping away the enemy stand.
  15. Tangletail

    Character Animation book

    For books? I'm no programmer but I think most 3D artist learn from the basics which would be hand drawn animation. Start there first. But I seriously recommend you look up videos.
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!