[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 Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying to render stars…
Thu, 02/08/2024 - 01:31

I'm trying to render stars and they all appear during the day. How could I avoid this? Am I missing something?

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you. But how can you…
Sun, 02/18/2024 - 09:06

Thank you. But how can you make the skybox appear in a specific dimension?

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry i don't understand…
Tue, 05/14/2024 - 21:09

Sorry i don't understand. How do I get texture id and do I set the image as all faces?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Moreover, a texture with 6…
Wed, 05/22/2024 - 04:57

Moreover, a texture with 6 faces as above should be used. 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, i need help, i render…
Sat, 06/22/2024 - 21:11

Hello, i need help, i render a moon, i have to use "Additional" blending, but my moon is translucent and stars are visible through the moon

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Render it with default…
Sun, 06/23/2024 - 13:46

Render it with default blending and then do it once again with additive blending.

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it dosen't work, it's cool…
Thu, 07/04/2024 - 12:02

it dosen't work, it's cool at night but ugly at day

 

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no better way
Fri, 07/05/2024 - 13:58

There is no better way

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what is the procedure set up…
Sun, 07/07/2024 - 12:38

what is the procedure set up dimension has been replaced with?

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey! Thank you for this…
Wed, 07/10/2024 - 10:32

Hey! Thank you for this useful guide! But i have a question, how do i render a specific skybox in a specific dimension? Because i have multiple dimensions and if i use this procedure, all dimension will have the same skybox.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nvm, figured it out myself,…
Wed, 07/10/2024 - 11:14

Nvm, figured it out myself, you just have to make an if statement for each skybox, you can make more than 2 if statement like this.

Hope it's readable. 

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for me it just shows the…
Sat, 09/14/2024 - 20:21

for me it just shows the skybox of the certain dimension I put in the "with effect type" part, when I wanted it to be a custom one, but it still doesn't show up even if I put my custom one, can anyone help please?

  1. https://imgur.com/a/c8nVVMx
  2. https://imgur.com/a/VqCbh5p
Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello are the setup…
Mon, 11/04/2024 - 19:11

Hello are the setup dimension and render sky diff procedures if so can you show me how to link em together and how to import textures i used my mod id and names of images It didn't work D: