Adding a SkyDome

If we want to be in space, we will need to give our players a bit of context. We may want to add something similar to a SkyDome that represents where we are.

Getting the model

As mentioned before, there's a number of different ways to get 3D models. We will take the one SkyDome that is in the LibGDX tests, but you can model your own if you want and add your own charm.

Or you can get it from our repository



After pasting the files in the Assets folder, let's make the additions for the dome. Let's make the following changes to

public class GameWorld { ... private Entity dome; ... private void loadLevel() { ... engine.addEntity(dome ...

Get Building a 3D Game with LibGDX now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.