Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Nov 2006
Offline Last Active May 03 2016 01:52 AM

#5277431 How do I integrate server reconciliation in such a platformer game?

Posted by Ashaman73 on 22 February 2016 - 06:13 AM

One thought. Instead of sending direction commands, send absolute positions (client is now at postion P there with velocity V). The server accepts this movement as long as it doesn't violate some rules/thresholds (moving too fast, ignoring barriers etc.). The same for the client, if the server sends his view, the client can ignore it as long as it is inside a valid range.

This way the client is the leading entity and the server trust in the client most of the time. The advantage is, that the client control is really fluently, the disadvantage is, that it is not 100% secure versus cheating (speed hack = move entity as far as possible, but still in threshold of server check).

#5277423 What AI Problems do YOU want discussed at the AI Summit?

Posted by Ashaman73 on 22 February 2016 - 04:28 AM

One thought:

How do two(multiple) individual entities, following their own tasks (no squad), cooporate to solve a (unforeseen) new task ?

1st example(RTS/Tactical): A group of soldier, one soldier get wonded and is immobile and you need two soldiers to carry him away (not unforeseen).

2nd example(RPG/Sim): Town folk doing their daily chores. A fallen tree, defect cart etc. is blocking an important route. You need at least two entities to get rid of the barrier (unforeseen, but not undefined).

3nd example(Sim): Worker entities, who can use a machine to increase their working efficiency. Problem: they can do their work either solo or use together a machine. Waiting for an other worker to help would reduce the efficiency.

#5277234 Interstellar trade at a relativistic timescale?

Posted by Ashaman73 on 20 February 2016 - 11:57 PM

- What does trade look like when a round trip takes 24 years? While the timescale is extreme, the situation is not unprecedented: early colonies in the Americas often waited a year between ships bearing needed supplies. How does supply and demand work, when demands are 12 years out of date, and supplies won't arrive for another 12 years?

Maybe it would look like oil trading. The oil is being shipped to a habour which will arrive in weeks/month but the oil is already traded as "futures".




What are the cultural and political effects on a colony of being isolated in time as well as space? News, fashion, scientific advancements... all arriving 12 years after they were new, with no ability for the colony to influence the culture or politics of the solar system inside of another 12 year span.

There will be most likely their own culture, based on raw resources which will not change (a stream of raw resources will be delivered by a stream of trading ships). Like gold. Some very unique items will be traded as valuable antique, but only for the rich.




What effect does time dilation have on the spaceship crews? Their families would grow old and die within a couple of voyages, while they themselves remain young. Fashions change, languages evolve, nations rise and fall within the span of a single voyage. Do crewmembers make one voyage and then reintegrate back into society, or do the crews become a separate culture, permanently travelling among the stars?

Maybe the crew will only consists of young or independent people hunting for quick money and adventures. An other model would be, like the small container ships on the Rhine (Germany).A river where small container ships transports goods, most often a whole familly own the ship and dwells on it. This could be similar, whole families living on interstellar ships, depending on the size of it.

#5275887 instancing with multiple meshes

Posted by Ashaman73 on 16 February 2016 - 04:22 AM

Although look into http://www.opengl.org/sdk/docs/man/html/glMultiDrawArraysIndirect.xhtml if you use OpenGL. DirectX will for sure provide something similar.

#5275864 arbitrary texture coordinates

Posted by Ashaman73 on 16 February 2016 - 12:47 AM

What exactly are you trying to do ?

There are several pitfalls in your shader code.
1. float3 = col.Sample(texturesampler, uv).rgb;
This will not compile, will it (ok, I'm not familiar with hlsl) ? Do you want to sum it up, average it or get the last color ?

2. float2 uv = float2(x, y);
This will always contains integers, that is 0,1,2,3...
So, using clamp this will always sample the border of the texture ! You should apply an offset/scale accordingly, depending on what your goal is.

#5275856 Is it worth it to learn LUA scripting for the AAA game industry?

Posted by Ashaman73 on 15 February 2016 - 11:15 PM

Even smaller games like WoW use LUA (->UI) ;-). Considering, that LUA is a very simple(!), robust, fast, powerful scripting language, I would even encourage to learn it without some big AAA title backing it up.

#5275260 Blur

Posted by Ashaman73 on 11 February 2016 - 05:58 AM

You seem to sample the light depth map with the same texture coords with which you sample the screen depth map. You need to transform these coords into light space first, much like sampling the depth map for the shadows.

#5275251 Blur

Posted by Ashaman73 on 11 February 2016 - 04:30 AM

In general you should check out gaussian-bilateral filters: https://en.wikipedia.org/wiki/Bilateral_filter ... but in your case it seems, that you have bound the shadowmap (=depth map of light source) instead of the depthmap of your camera to the sampler.

#5275092 Visual scripting vs Coding?

Posted by Ashaman73 on 10 February 2016 - 01:14 AM

Visual scripting is more for people uncomfortable with coding. Coding is more flexible in the long run and a good coder will produce better results in less time.

But many people interested in doing game design are not good enough with coding or aren't able to code at all. These people will love VS, because it will open up new opportunities. Think of the artists who wants to design a game or a game designer who wants to prototype a new game mechnism (thought a game designer should be able to code to some degree :P )

#5274956 Advice on troublesome partner in profit share setup

Posted by Ashaman73 on 09 February 2016 - 04:08 AM

Best to take your contract and consult a laywer. If you dont have a contract, then consult a laywer too.

#5274931 Limiting light calculations

Posted by Ashaman73 on 09 February 2016 - 12:17 AM

I added a range dependent falloff to ensure, that a light source only lit a limited, spherical area.

intensity *= max(0,1 - square_distance_to_light/(max_distance*max_distance))

#5274181 Modifying the Map before Playing a Match

Posted by Ashaman73 on 04 February 2016 - 12:10 AM

Multiplayer games on randomly generated maps is quite old (most often found in older RTS games).

But there are two major issues with them in competitive matches:
1. Modern maps are designed to focus on certain strategically/tactically features. This is really hard to generate.
2. Competitive gameplay is all about training and developing certain strategies. This is incredible hard and frustrating in a ever changing environment and strategies are often tailored to certain maps.

Just take a look at the number of competitive maps in SC2, they are limited.

#5274176 Making objects solid

Posted by Ashaman73 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 Ashaman73 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 Ashaman73 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 !).