Jump to content
  • entries
    59
  • comments
    86
  • views
    40433

Weekly update #21

Sign in to follow this  
Ph4nt0m

1208 views

[color=#000000]

[font=arial]Procedural grass level of detail[/font]

[/color]
[color=#000000]

[font=arial]The world outlook from farther distance kind of felt boring and dull. Some games just increase the fog level just to hide this dullness. There was zero detail in the distance so I started increasing draw distance for trees and rocks. I have created a new simple mesh (actually a rectangle with two triangles) and populated it with a simple grass cutout texture. I proceeded with creating procedural LODs, placing both simple mesh and complex in one spot, baking the same ones together in patches and adding UnityaEUR(TM)s LODGroup on top of that. The distance is busy now which enables us to decrease the fog level. LOD levels (for world objects) and other settings (such as shadows) are going to be tweakable via config file.[/font]

[/color]

grass_lod_lowpoly_floatlands.png


[font=arial][color=#444444]

Busier look in the distance aEUR" more grass at the back, but with less detail.

[/color][/font]


[color=#000000]

[font=arial]Terrain Shader[/font]

[/color]
[color=#000000]

[font=arial]I have also managed to create a color variety on the terrain itself by writing a custom terrain surface shader. The shader enables us to input three different colors aEUR" one for the lowest points of the island, second one is meant for middle/ground heights and the last one is meant for hills and mountain tops. To interpolate colors smoothly I have transformed the colors from RGB to HSL space and used this code bit for interpolation (_Middle is a float [0, 1] that sets the aEURoemiddle groundaEUR? height):[/font]

[/color]float3 interpolatedHSL = lerp(bottomHSL, middleHSL, h / _Middle) * step(h, _Middle);interpolatedHSL += lerp(middleHSL, topHSL, (h - _Middle) / (1 - _Middle)) * step(_Middle, h); fixed4 tintColor = fixed4(hsl2rgb(interpolatedHSL), 1);

[color=#000000]

[font=arial]terrain_colors_shader_lowpoly_floatlads.png[/font]

[/color]


[font=arial][color=#444444]

Terrain shading with 3 different colors

[/color][/font]

[color=#000000]

[font=arial]Drone[/font]

[/color]
[color=#000000]

[font=arial]Me and Andrej added a new kind of non-hostile NPCs to the world that actually have no purpose as regards to gameplay aEUR" they will only make skies more busy and immersive. They are called Prospecting drones. They will fly around the island, stopping at the rocks and try to mine them with their laser. Yes, you can destroy and scrap them, but why would you do that to these beautiful robot creatures?

drone_lowpoly_floatlands.png[/font]

[/color]


[font=arial][color=#444444]

Non-hostile Prospecting drone in action

[/color][/font]

[font=arial][color=#000000]

Domen Koneski

[/color][/font]

[color=#000000]

[font=arial]Randomized human NPCs[/font]

[/color]
[color=#000000]

[font=arial]Since there will be a lot of NPCs that will populate various settlements, we decided to make a system that randomizes the characters by using shape keys (blend shapes / morph targets, whatever your software calls itaEUR|) on the face to change different facial features of the character and effectively makes each character have a unique face. Of course the character will also have a variety of different outfits.

farmers_NPCs_lowpoly_floatlands.gif[/font]

[/color]


[font=arial][color=#444444]

Randomized human characters

[/color][/font]

[color=#000000]

[font=arial]I started out by making a model with about average features and then modeled the extremes for every feature, so the game can blend between individual shapes, Then I made a script that randomizes the features and chooses a random combination of an outfit, shoes, a hat and facial hair. I also made a brand new animation rig for the human NPCs that will support the variety of animations that I have already started making for them. At the beginning of the week I concluded the work on aEUR~techiesaEUR(TM) buildings by finishing up the shop model.

shop_techies_model_floatlands.png[/font]

[/color]


[color=#444444][font=Roboto]Techies shop[/font][/color]

[color=#000000][font=Roboto]

[font=arial]Andrej Krebs[/font]

[/font][/color]

[color=#000000]

[font=arial]Adding lamps[/font]

[/color]
[color=#000000]

[font=arial]Every device that we have in our electricity starter pack needs proper implementation. Previously I worked on repair and charging stations, but this week I focused on bringing functionality to light lamps, actually two types of those lamps aEUR" wall lamp & standing lamp. A quick preview in the picture below:

light_lamps_lowpoly_floatlands.png[/font]

[/color]


[font=arial][color=#444444]

A wall light lamp & a standing light lamp.

[/color][/font]

[color=#000000]

[font=arial]We have improved the indicators, so those basic electric components are considered done for now. In this example I filled up the generator with fat, and it started to generate electricity. Very easy!

adding_fuel_lowpoly_floatlands.png[/font]

[/color]


[color=#444444][font=Roboto]Filling up the generator.[/font][/color]

[color=#000000][font=Roboto]

[font=arial]Vili VolA?ini[/font]

[/font][/color]

[color=#000000]

[font=arial]Icons for electric devices[/font]

[/color]
[color=#000000]

[font=arial]We are slowly finishing up the electricity which will be an exciting new addition to enhance the gameplay. The newly added electric devices will need icons to display them in the players HUD. Below you can see a set of new icons, including bolts which will have a special use in the game.

icons_electricity_lowpoly_floatlands.png[/font]

[/color]


[font=arial][color=#444444]

Icons for electric devices, wheat and corn.

[/color][/font]

[font=arial][color=#000000]

Mito Horvat

[/color][/font]

[font=arial]

[color=#000000]More about Floatlands: website, facebook, twitter, instagram[/color]

[/font]

Sign in to follow this  


3 Comments


Recommended Comments

Happy to see another post from you and your game!

Busy as always.

Share this comment


Link to comment

Don't forget to add women NPCs as well.  And different skin tones would be good too.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!