Here is a new manic gadget from your Prof. Monster.
This time I want you to grab for the stars … This is much easier (theoretically) when you can see them.
Prof. Monster presents:
The STARMAP BAKERY
to create your own STARBOX
The Starmap bakery allows you to create a random star map texture. You can adjust the input channels and bake it to a texture to get some nice stars.
Never forget to save your skymap to file after baking. Otherwise it gets lost.
I used a 3x2 UV texture wrapping. It is not a default one, but save a lot of texture space.
The starmap needs to be pretty large to allow high detail background image.
The bakery contains a little demo that allows to watch the generated skymap in action by applying it to a skybox.
- Hover over the 3D window
- press P and
- turn the camera with the mouse.
- Esc to exit.
Skybox from library
The bakery comes with a ready-to-use skybox. After baking and saving the skymap to file the group Skybox shows your skymap. I suggest to save the StarmapBakery under a different name (e.g. Starbox.blend), that it persists the assigned map within the blend. Then you can directly link the skybox from that file.
- Open your game’s blend.
- Go to File/Link
- Navigate to your saved Starbox.blend / Scene / _starbox.lib and
- click [Link from Library]
Now you can add a starbox to your scene via
Shift+A Group Instance/Starbox
You can parent the instance to your camera, to avoid seeing scaling effects or to leave the skybox area.
Skybox without library
If you do not want to use the above library you can append the Skybox mesh or Skybox object from the bakery. This way you get the UV-coordinates, but you need to apply the sky map texture manually.
Maybe you find it useful.
StarmapBakery.blend (479 KB)