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

Started by sumeshi0216 on

Topic category: User side tutorials

Last seen on 03:46, 8. Sep 2024
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
Last seen on 19:52, 23. Aug 2024
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?

Last seen on 15:36, 25. Feb 2024
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?

Last seen on 18:36, 3. Jun 2024
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?

Last seen on 03:46, 8. Sep 2024
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. 

Last seen on 14:15, 6. Jul 2024
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

Last seen on 03:46, 8. Sep 2024
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.

Last seen on 14:15, 6. Jul 2024
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

 

Last seen on 03:46, 8. Sep 2024
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

Last seen on 12:51, 14. Jul 2024
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?

Last seen on 11:37, 7. Sep 2024
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.

Last seen on 11:37, 7. Sep 2024
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.