[Tutorial] How to render a skybox [World Renderer]

Started by sumeshi0216 on

Topic category: User side tutorials

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] How to render a skybox [World Renderer]
Tue, 08/20/2024 - 05:25 (edited)

First, you will need to use the event trigger "Graphics - Set up dimension" and set up your dimension.

Next, add a new procedure element and use the event trigger "Graphics - Render sky."

 

The following procedure allows you to render a skybox.

There is the procedure in the list "Graphics procedures - Sky."

  • Yaw/Pitch/Roll: They are the skybox angles.
  • Color: It's the skybox color.
  • Constant: If it's false, the skybox will be invisible when the dimension has special fog. If it's true, the skybox will always be visible.

 

Moreover, you will need to set a texture before rendering as follows. There is the procedure "Set texture" in the list "Graphics procedures - Render effects."

Here is the guide for textures

 

Since a skybox has 6 faces, you will need to use a texture with 6 faces mapped as follows. Also, make sure each face has the same aspect ratio.

 


 

Advanced Rendering

Rotate a skybox like stars

Set the pitch to "Day level * 360."

 

Render a skybox only at night

Set the alpha to the star level multiplied by 255. As it gets darker, the skybox appears smoothly.

 

To render that only during the day, set the alpha to 1 minus the star level, multiplied by 255.

Edited by sumeshi0216 on Tue, 08/20/2024 - 05:25
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
pretty sure you need to…
Sun, 12/01/2024 - 00:33

pretty sure you need to return a logical true at the end of most graphics-related procedures

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
gotcha thank you for the…
Mon, 12/02/2024 - 06:24

gotcha thank you for the help i will try it

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hello im having a problem…
Fri, 12/06/2024 - 23:07

hello im having a problem related to use the render sky function in the version 1.21.1 neoforge using mcreator version 2024.3 do you know what could be possibly wrong?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
image died, uh can you post…
Fri, 12/13/2024 - 17:52

image died, uh can you post it again

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah unfortunately adding…
Mon, 12/16/2024 - 05:21

Yeah unfortunately adding logical true didn't work

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Whenever I join my world,…
Fri, 01/17/2025 - 03:41

Whenever I join my world, sometimes the sun will be hidden by the skybox but when I restart it might sometimes appear again but then another skybox at night won't appear. How do I fix this?

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried so many different…
Wed, 01/22/2025 - 19:30

I've tried so many different things to get this to work in my own Dimension but I just can't for the life of me get it to work.

It works perfectly fine, as instructed, when I do it in the overworld. But as soon as I set it to my dimension, nothing. Is there's something I need to have checked/unchecked in the dimension element?

https://imgur.com/a/mww7gMO

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same issue as…
Wed, 01/29/2025 - 03:38

I have the same issue as Aethrexal, did you ever find a solution?

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nope :c I still got that…
Thu, 01/30/2025 - 17:51

Nope :c I still got that issue, I just decided to work on something else while waiting.