[Tutorial] How to render the sun and the moon [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 the sun and the moon [World Renderer]
Fri, 08/16/2024 - 03:30 (edited)

In order to render sun and moon, 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 procedures allow you to render the sun and the moon. There are the procedures in the list "Graphics procedures - Sky."

  • Size: It's a texture size.
  • Color: It's a texture color.
  • Phase: It's whether the texture has phases like the moon. If you need the phases, a texture with 8 mapped textures as below is required.
  • Constant: If it's false, the texture will be invisible when it rains or snows. If it's true, the texture 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

 

In order to set the angles, you will need to use the procedure "Render texture in the sky."

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

  • Size: It's a texture size.
  • Yaw/Pitch/Roll: The are texture angles.
  • Color: It's a texture color.
  • Constant: If it's false, the texture will be invisible when it rains or snows. If it's true, the texture will always be visible.
Edited by sumeshi0216 on Fri, 08/16/2024 - 03:30
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I remove the light…
Thu, 01/11/2024 - 10:45

How do I remove the light from the sky? 

https://imgur.com/a/WlpyOdG

When i turn around one direction the sky is normal, but when I turn around the other way, it is brighter.

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I select which…
Thu, 01/11/2024 - 23:00

How do I select which texture the moon should be
(I have 4 different moons and I want to make different dimensions with them)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i call the textures ?…
Fri, 01/12/2024 - 04:13

how do i call the textures ? just like on the older versions?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if i want a moon and a sun,…
Fri, 01/12/2024 - 04:44

if i want a moon and a sun, both with custom textures, do i need 2 procedures (renderSky) or can i set both on same procedure?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To BryAstro: The colors of…
Sat, 01/13/2024 - 02:34

To BryAstro:

The colors of sunrise and sunset are defined with the fog color. So you will need to alter the fog color using an event trigger "Compute fog color"

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To Hygerian: The texture of…
Sat, 01/13/2024 - 02:41

To Hygerian:

The texture of the moon phases need to be 8 textures. So for 4 textures, you will need to line up two each of same textures

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To ninjawizard1234: Textures…
Sat, 01/13/2024 - 02:51

To ninjawizard1234:

Textures can be used using a procedure "Set texture". Also, it is possible to use different textures before each of rendering

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thats pretty good man, again…
Sat, 01/13/2024 - 05:23

thats pretty good man, again congratulations for this work, this plugin is awesome

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to use the Set texture…
Sun, 07/21/2024 - 02:13

How to use the Set texture procedure to replace sun texture with one i made?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Texture replacement is not…
Fri, 08/02/2024 - 06:00

Texture replacement is not possible. You will need to render the sun with your texture.

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the default moon texture…
Thu, 09/05/2024 - 13:20

the default moon texture renders over my custom moon texture, can you please help

 

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my moons are layering over…
Mon, 09/09/2024 - 13:11

my moons are layering over eachother, how do i stop that?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i cant get this to work…
Tue, 11/12/2024 - 19:24

i cant get this to work right for some reason

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so ive managed to get…
Sun, 12/01/2024 - 00:20

ok so ive managed to get most of the things down right but im having issues with sunrise and sunset. while i can change its colour, it looks way off from the standard sunset and the fog colour doesnt change to reflect it, instead staying at the vanilla red colour.