Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Nov 2006
Offline Last Active Sep 23 2016 12:54 AM

#5274176 Making objects solid

Posted by on 03 February 2016 - 11:31 PM

This is typically solved by steering behavior. There are different pattern of behavior, like flocking as mentioned by SotL, which will help you. Here is a good website about steering behavior: http://www.red3d.com/cwr/steer/

#5274006 An existing game engine that will....

Posted by on 03 February 2016 - 12:10 AM


Your requirements are too high and too generic. Most likely a MMORPG engine would come to mind, take a look at http://ryzom.com/ (open source, MMORPG), but there will be less focus on AI entities and world generation.

So, what are other requirements/limits etc. try to answer the following question to better estimate what engine would be useful:
1. Should it run primary on a single PC or server farm ?
2. What level of detail/quality do you expect from the generated world (roguelike/minecraft?) ?
3. What behavior do you expect from your AI (simple=Zombie, hard=autonomous citizin of a large society).
4. Turn based or real-time ?
5. What are existing games which (partly) cover your vision ?
6. If no game exists which covers your vision, why ?

#5274002 Basic matrix question

Posted by on 02 February 2016 - 11:45 PM

It depends how the matrix is ordered in memory, but if it is
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15

then your position will be at 12,13,14.

The trick about hormogoneous matricies in game dev is, that you can read the important vectors (position, lookat, right, up) directly from the matrix most of the time.

But, before you break your fingers by reinventing the wheel (aka writing your own math lib) , try to use a math library like glm (free, and header only lib, no lib linking necessary !).

#5273822 Low Poly vs. High Poly

Posted by on 02 February 2016 - 03:39 AM

You need to differ between a hi-poly ZBrush model and an higher poly in-game model. Right, if you want to add baked details, you should go for ZBrush, sculp them in and bake them to a texture. But if you need more polys for the ingame model, you need to remake your current model. Ask your employer what he is missing. Is it the silhouette of the model which is too rough, then you need to remodel your model most likely. Does he want more details, e.g. single fingers should be animated separately ? Or does he want more surface details, then you should go for the zbrush/bake approach.

#5273140 GLSL ES shader based camera question

Posted by on 29 January 2016 - 02:46 AM

Trying this: gl_Position = identity * world * vec4(in_Position,1);

#5273133 AEcology: Upcoming AI generation library

Posted by on 29 January 2016 - 01:31 AM

Game development is partly like movie making. You have a director (designer), you have scenes and a script (desired behavior) and you have actors (AI entities) and most of the time the actors need to performe in the boundaries of the given script and what the director want to see. The actor (AI implementation) will eventually decide about the quality of the performance, but at the end it is all fake.

You commonly can't take non-actors, put them into a scene, give them a rough briefing and tell your director, that they will learn to handle it eventually. This will not work for 99% of all movies.

My excursion with ML in my game was very frustrating, thought it sounds like a valid candidate for ML. Eventually Marks words hit the nail on the head:
1. Seeing unexpected behavior resulted in hours and days of analysing data (oh.. it is not a bug, it was a logical consequence).
2. Player didn't see any intelligent behavior at all, just stupid decisions perceived as bugs.
3. Modfiying this behaviour to meet your 'script' (expected behavior) resulted in special cases, additional parameters, more tweaking.

Eventually it was a maintainance hell with behavior which was perceived as buggy and bad.

#5272951 Recommendations for a Text Editor

Posted by on 28 January 2016 - 12:12 AM

I use https://notepad-plus-plus.org/ for all editing not done in VS. Similar to ultra edit, lot of plugins, easy, fast, free.

#5272100 How to calculate the difference between 2 quaternions?

Posted by on 21 January 2016 - 12:12 AM

>Then I don't have access to the offset matrix. I wonder why the offset matrix should be placed in
>the frame data structure instead?

Skeletal animation works on bone basis, that is, the mesh must be in bone space. E.g. if you want to animate an eye with a eye bone, the eye center must be at position 0,0,0 in the space of the eye-bone. When you look at the mesh, the eyes are most likely far away from the center position, therefor the offset matrix moves the eye from its original position in the mesh (mesh/model space) to 0,0,0 (bone space).

Now you could use this to animate two different mesh with the same animation data, even if the eyes of each mesh are at different position due to each mesh having its own offset matrix for the eye. The offset matrix ensures, that the mesh parts are at the right position, so that the animation data can be used independently of the mesh.

Thought, in general different meshes will have different bone structures and animation data, but this is the basic idea why the offset matrix is part of the mesh instead of the animation data.

#5271955 How to calculate the difference between 2 quaternions?

Posted by on 19 January 2016 - 11:39 PM

You want: q2 = q1 * delta_q
delta_q = inverse(q1)*q2
<=> (assumption you have only unit quaternions)
delta_q = conjugation(q1)*q2

That's it, create the conjuagation and multiply it with the other quaterion to get the difference. From the difference you can extract the angle and rotation vector if needed.

#5271218 So difficult to find 3d artists!

Posted by on 15 January 2016 - 12:33 AM

It is a matter of confidence.

If you look at art, you can rate the quality quickly and you have more confidence, that the artist is able to provide what is needed for your project. On the other hand, just by looking at code or a program, it is extremly hard to rate the quality of the work.

Is the coder able to finish the project ? Is he able to master technically issues ?

Being a 3d artist of certain quality requires years of work and dedication and a 3d artist will have good chances to get a paid job, whereas contributing to project for profit sharing is not really as attractive (and bears much more risk).

On the other hand, getting a small, but impressiv, demo running is not really hard for a skilled coder, but finishing a whole game project is an other matter.

#5271008 SRPG TRPG AI techniques

Posted by on 13 January 2016 - 11:37 PM

There's always a standard set of AI techniques which is used in almost every game:

1. Pathfinding (what is reachable, how to get quickly to goal area etc.)
2. Decision making (what is the best to do now ? )
3. Action execution (how to perform a certain action?)

Common implementation for these areas are
1. A* based on either waypoints or navigation meshes
2. From simple scripting over to behavior trees.
3. Motion controlling, animation synchronisation, sound synchronisation, steering behavior.

For a round based, grid based game I would recommend to look into
1. A* + waypoints (=grid cells).
2. Behavior trees
3. animation synchronisation/scripting

good luck :D

#5258468 When you Fix your timestep Do you need to change the physics

Posted by on 22 October 2015 - 12:35 AM

My question is when using a fixed time step can that timedelta be removed from the calculations.

That would make the forces larger and out of the fractions.

No. A fix timestep is just a fix delta time, nothing more. Basically you have:

currentTime = getTime();
lastUpdateTime = ...
timeStep = 20;//in MS

while(lastUpdateTime<currentTime) {

Physics will often jitter due to different number of steps per frame. Best to counter this by implement a kind of movement smoothing of the rendered object, not the physics object.

#5258039 Tessellation and Bullet Decals

Posted by on 19 October 2015 - 10:19 PM

Any ideas?

What rendering technique are you using ? If you use a deferred shading technique, then it doesn't matter how you build the g-buffer. Eventually you can project the decals into the g-buffer.

#5255079 Article on Voice Over

Posted by on 01 October 2015 - 11:55 PM

What game genres benefits most of voice over ?

How to avoid ruining a game experience with weak voice over ?

At what stage in your development process (early,mid,late, polishing,after release, beta?) do you add voice over to satisfy player expenctation while reducing cost explosion ?

How to you manage localization ?

What do you do when a certain voice over talent is not available in your price range, leaving your game with incomplete voice over otherwise ?

What part of your game should be covered by voice over (tutorial,messages,guides,NPC) ?

How much time do you need to manage voice over ?

What are additional development steps necessary to integrate voice over (e.g. lip-sync) ?

#5255077 Article on Voice Over

Posted by on 01 October 2015 - 10:24 PM

What is your target audience of this article ?

I can't see any benefits for a developer below AAA-indie level due to the height costs of voice over (talent+studio+frequently changing design common in the lower dev levels) and the top or flop nature of voice over.