Jump to content
  • Advertisement
  • entries
  • comments
  • views

Progressing slowwly

Sign in to follow this  


I finally started the layers system. For now, I only have "objects" layers.
In the following images, one layer is set to add trees, a second one to add grass and a third to add two types of rocks.
The layers here only add objects on the ground. It is possible to use them to populate a "box" with floating objects (for an asteroids field for example). The layer definition indicates the volume of a layer chunk (size is chosen to be compatible with the terrain chunks), the number of objects to add by chunk, the min/max distance between two consecutively added objects, a "spread" factor, a list of object ID (one layer can add multiple objects types) and the option to get objects on the ground.
The layers not only generates positions for objects but also 2 random values. The first one is for now hard-linked to the rotation around Z and the second one is meant to be used as a "color factor" to add diversity. I would like this "randomness" feature to be configurable for each layer.

A second layer type is planned: the terrain "patch" layers as I did in a test application. This type will allow to add random features to the terrain.

I did a video capture.
Sorry for the quality, the upload to youtube killed it. I will have to capture at a bigger resolution the next time...

See you soon.
Sign in to follow this  


Recommended Comments

Looks good. Some kind of shadow system on the terrain would really take this to the next level.

Share this comment

Link to comment

Thanks. I did close to nothing for now on the rendering side. I am currently adding lights to the level definition and world update functions. I hope to have a lighting system in a few weeks.

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!