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

Started by sumeshi0216 on

Topic category: User side tutorials

Active 1 month ago
Joined May 2021
Points:
791

User statistics:

  • Modifications: 4
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 200
[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
Active 11 hours ago
Joined Oct 2020
Points:
675

User statistics:

  • Modifications: 1
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 136
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?

Active 10 months ago
Joined Feb 2023
Points:
176

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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?

Active 7 months ago
Joined Aug 2022
Points:
302

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 30
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?

Active 1 month ago
Joined May 2021
Points:
791

User statistics:

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

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

Active 6 months ago
Joined Jun 2024
Points:
28

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 1 month ago
Joined May 2021
Points:
791

User statistics:

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

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

Active 6 months ago
Joined Jun 2024
Points:
28

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

 

Active 1 month ago
Joined May 2021
Points:
791

User statistics:

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

There is no better way

Active 6 months ago
Joined Oct 2023
Points:
82

User statistics:

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

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

Active 1 month ago
Joined May 2023
Points:
156

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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.

Active 1 month ago
Joined May 2023
Points:
156

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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. 

Active 2 months ago
Joined Aug 2023
Points:
233

User statistics:

  • Modifications: 4
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 38
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
Active 2 months ago
Joined Nov 2024
Points:
8

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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: