• Register

Rivers Under Roar - Kon-Tiki


In Game footage - Indie DB

Travel with your newly found raft through the ocean and get to The River, fighting against anyone and everything in your way. They keep coming so do not rest. If some are harder, why not getting into some transportation mission and get help after? You will not win alone. Ask a friend or two, ask some natives. Ask for help!

raft01

Fight with increasingly harder vessels and environments, while improving your raft with the flotsam you find.

If you thought being alone in the middle of the ocean was difficult in My Daemons, getting near The River is hellish.

Don't quit, don't die, and you will hear the Roar of The River soon... Or later. If you can.

Kon-Tiki exists after My Daemons, after you have found your first vessel to continue the journey to the mouth of The River. It is a low poly, physics based shmup, taking place in water where you control some kind of vessel or raft. You have to fight your way against waves of enemies, either other vessels or natural events like tornadoes. You will have the options of having a NPC party or play in cooperatively.

Below you can see the wireframe mesh representing the physical ocean, for buoyancy purposes


Ocean Physics Mesh - Indie DB

And an "action" capture


buoyancy objects - Indie DB

Follow this place for the updates as we put them online.

In the mean time, follow us on twitter or like us on facebook


  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

disclaimer
Many moons have been up in the sky since our last development post. We sure hope to get up to speed with that… for the posts I mean… the moon stuff is out of our hands and its appearance is somehow fixed… just a guess.
end of disclaimer

When we started Rivers Under Roar, the Kon-Tiki (KTK) episode, we wanted to focus on a more tactical game play, and so our camera was set above and near our raft, with a narrow field of view. To make things a bit cozier, it took place during the night. The player would get some tips by reflections in the water and some lights coming from other parts of the set. Looked good, played badly. It was a bit claustrophobic in nature and maybe that is a good thing for some other games, but it would not fit our idea.

image

*night and narrow field of view


As the players have some kind of Islands that they need to travel to, they have to (should) see them in the distance, and so, we needed to open up the field of view so we visually needed sky!

image

*Island in the distance, Image from Expedia.com


Not a big fan of that seemingly transparent stuff usually called sky. Ahhh… that blue tinted air.

As we (and most of all developers except some NASA ones) are not trying to simulate the whole physical properties of the “infinite” sky and how we see it, we will just go with a visual sky, a traditional skybox, a shamefully fake one.

We’re using Unity and Unity has already prefabricated excellent skies for us all to use. Just get a nice looking panoramic photo (or painting), put it in a skybox, and voilà, you have a great looking sky.

image

*Original skybox texture


Well, it looks good, it behaves well. But it does not fit the rest of the visuals. We are working on a low poly faceted ambiance, so this sky is a no.

And as this are just some images painted on the background, there are no polygons to work with.

No problem here. As you might imagine, just get the original sky, and generate a faceted image, much like a stained glass window. There you have it!

image

*A faceted skybox texture


The result?

image

*Using a low poly faceted texture on the sky dome


Not quite. Remember this is only an image. Usually skies are spread all over the background and they are blurred, but if you look outside of your window now (is it day time?) you will see that clouds or other colors in the sky are in some blurred state (except for that eventual plane, but that can be simply an overdrawn sprite. Everything works well)
Now, imagine our faceted sky, and stretch it to 360 degrees and look at it again… no more faceted look, no low poly style. Just some strange looking blur, or blurred faces… neither realistic nor low poly. Maybe cool looking… who knows?
Simply extend and generate the faceted image big enough so that when stretched to our skybox, it still keeps its low poly appearance. We could do that, but it would give us an enormous image to paint the sky.
Quick math: If we are using a 60 degrees fov camera, with a 1920 horizontal resolution, we will need something like a 360/60*1920 (or 11560) pixels wide image. We could even halve that to say 5k or 6k pixels. Now add the vertical part and we’re talking about some extra-large kilomegatexture. No way. We would optimize it and so on, make it tileable, shrink it in size, but would ended up in the “blurred” sky we started with.
Or, we could as well create a shader that mapped a fragment to a voronoi cell as well (the faceted image above are just voronoi cells with the colors extracted from the original image), but we didn’t want to get some process in the fragment shader, so it was a not (but would be an yes from the visuals)

Back to the drawing board and make it quick and dirty: If we want a faceted sky, we should have faces! Polygons, triangles, n-gons, whatever makes us happy.

The solution is rather simple: create just the top half of a sphere anchored to our camera position, paint it in the background with some unlit shader, and sample some reference colors from some image. It could be the same image, you know? (We know, and it is)

Ah! Also, cut most of the top of the sphere sky dome as our camera will never look that high. Simple!

We just need a sphere object (3D Object|Sphere) and that’s it… wait… not that default one. We need something with higher polygons… Fortunately, we already had the scripts to create UV and Ico spheres (we chose the later one, of course). It was just a matter of creating the UV projection for “texture” mapping and that was that. Finito.

image

*Our skybox for several months


This was finished some time ago, but as we continue to work on other parts of the game we were continuously faced with the sky and something was not quite right. Our sky dome looked terribly perfect, linear or patterned.

Not a big issue. In our sphere, we just added some noise to the vertex positions and BAM! Got it! Well, to our surprise, it just looked the same, but wrinkled. We could still see the original perfect ICO Sphere.

While we worked on the health bars for the game, we designed a “crawling damage” that started on one side of a mesh, and wrapped voronoi cells around the object, adding extra cells as the damage increased. That looked more like what we wanted, so we entered a new day with a standard task: “Voronoi cells on a sphere”. While not trivial, two meta-methods do exist: create voronoi cells using “traditional” algorithms adapting it to 3D space, or create a convex hull and the needed points would be semi-randomly distributed on the sphere.

We never tried this path because we were not sure the result was as expected and we were already short on time. So we tried the “crawling” as we did before in the health, but applied to a sphere.

First, we create a triangle on the top of it. Then, using the line that surrounds that triangle, we lower the faces, creating triangles as we stretch the original one. As this is a sphere, as we go down (down to the equator), the triangles get so stretched that become “ugly” or too slanted. Before that happens, we divide the new slanted triangle into several ones, trying to keep them all similar to the first one on top. Of course, after the equator, for the opposite reason, we need to reduce the number of tris, but as nowadays we do not go below the equator, the source code has a comment reading “implement ONLY when needed”.

image

*a perfect sky dome geometry


Lastly, to remove the similar triangle pattern, as we create each new triangle, we “randomly” slide the new vertices on the sphere. At first, all operation on the sphere were using local Cartesian coordinates, but that introduced similar issues as encountered in UV spheres, so every math we use is polar based: we only deal with angles and all working vertices are “2d-polar”. It is from those polar references that we finally create the mesh… What we do not need on top is also cut from the resulting object, and voilà, a faceted vertex colored unlit sky dome (a vertex colored unlit and faceted sky dome?).

image

*that is more likely


There are other things to be done (mainly the dynamic sky), but this is our base mesh for the sky.

image

*our current sky dome


As usually, you can follow our work on Vosdal.com, Twitter.com Facebook.com Madewith.unity.com Indiedb.com

See you soon

A minimap update

A minimap update

News 2 comments

Besides giving you awareness of the area, the minimap was missing a direction tip. Not anymore.

The minimap

The minimap

News 2 comments

Well, we all need some kind of direction or minimap.... And any minimap must have some kind of background, or be completely transparent. As some systems...

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

X

Latest posts from @_r_u_r_, @vosdal

For all of you in need of a ton of sfx.... #gamedevf #indiedev #sfx Fb.me

Sep 1 2016 by vosdal

One last const pic before the animated gif. We still need to adjust the specular and reflective properties of... Fb.me

Jul 2 2016 by vosdal

Some of the latest tweeks on the wood shader, the ocean and the projectors.... The "worst" part? Projectors on... Fb.me

Jul 2 2016 by vosdal

New update on our procedural solid wood shader: From the basics, noise also added to ring separation, and... Fb.me

Jun 17 2016 by vosdal

Just IN... a shader for working with solid textures. No UVs here. Currently we're working on a procedural solid... Fb.me

Jun 14 2016 by vosdal

Good work :) T.co

Jun 14 2016 by vosdal

Something we're working on... for Raft06 (we call it A BOSS) #gamedev #indiedev #madewithunity Fb.me

May 17 2016 by vosdal

Last works on the terrain toolchain (procedural generation of underground terrain, based on existing dry... Fb.me

Apr 12 2016 by vosdal

WIP Visuals. Some "random" screenvideo of the area we're working on Fb.me

Mar 21 2016 by vosdal

Something to check out Fb.me

Mar 15 2016 by vosdal