[Tutorial] World Renderer [MCreator 2022.3 / 2023.1 / 2023.3]

Started by sumeshi0216 on

Topic category: Plugins and third-party tools

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] World Renderer [MCreator 2022.3 / 2023.1 / 2023.3]
Wed, 01/03/2024 - 04:21 (edited)

This plugin allows you to render objects on the sky and world

Download:

https://mcreator.net/plugin/93491/custom-fog-plugin-forge-1182-1192

Source code repository:

https://github.com/Sumeshi2/World-Renderer

 

Event triggers:

World Renderer currently adds 5 event triggers (It is 6 if the version is for 1.14.4 / 1.15.2 / 1.16.5 / 1.17.1)

- "Render world"

- "Render sky"

- "Render fog"

- "Compute fog color"

- "Compute fog density" (Forge 1.15.2 / 1.16.5 / 1.17.1)

- "Compute FOV"


Event trigger "Render world":

It is possible to render objects on the world. You can use these procedures

- "Render entity"


Event trigger "Render sky":

It is possible to render objects on the sky. You can use these procedures

- "Render abyss"

- "Render deep sky"

- "Render moon"

- "Render regular polygon"

- "Render sky box"

- "Render stars"

- "Render sun"

- "Render sunlights"

- "Render texture"


Event Trigger "Render Fog":

- "Set fog distance": It can set fog distances of a start and an end

- "Set fog shape": It can set a fog shape to a sphere or a cylinder (Forge 1.18.2 / 1.19.2 / 1.19.4 / 1.20.1)


Event Trigger "Compute Fog Density" (Forge 1.14.4 / 1.15.2 / 1.16.5 / 1.17.1):

If you want to change fog density, use it (Forge 1.15.2 / 1.16.5 / 1.17.1)


Event Trigger  "Compute Fog Color":

It can set fog color. The transparency cannot be changed


Event Trigger "Compute FOV":

FOV value can be changed


Regardless of the dimension, suntime, or nighttime, these event triggers are always triggered. If your modding need these distinctions, you will need to use the condition like the following


"Clear all rendered objects":

If you want to remove the vanilla sky, before you render objects, use the procedure. On event trigger "Render world", It should not use because even blocks and entities will be removed


"Rotate pose":

Rotation will be needed to define for some procedures


""Set texture": 

Some procedures need to define texture. If necessary, you will need to use the procedure. If using your texture, You will need to import the texture as the type "Other"



""Set color": 

Only if Forge 1.18.2, 1.19.2, 1.19.4 1.20.1, you will need to use the procedure to set a color. Not required for other versions


"Render abyss":

This procedure can render an abyss on the bottom of the sky. It should be used on the event "Render sky"

- "constant": The vanilla abyss is usually rendered when player is at Y=62 or below. However, if this option is enabled, the condition will be ignored and the abyss is always rendered


"Render deep sky":

This procedure can render an deep sky on the top of the sky. It should be used on the event "Render sky"

If you want to use the vanilla sky color, use a procedure "Get sky color" in this way. The following is a comparison without and with deep sky



"Render entity":

This procedure can render an entity on the world. It can only be used on the event "Render world"

- "entity": It is entity to render

- "x/y/z": It defines a world position to render

- "yaw/pitch/roll": It defines a rotation of an entity model

- "size": It is a value which defines a size of an entity model. If the value is 2, the size of a model will be twice

- "brightness": It is the brightness of an entity to render. It is defined from values of sky and block lights

Only if it is in Forge 1.18.2 / 1.19.2 / 1.19.4 / 1.20.1, It is possible to change the color


"Render moon":

This procedure can render a moon on the sky. It cannot change the angles. It should be used on the event "Render sky"

- "constant":  it defines whether or not a moon disappears if it rains. If it is enabled, The moon will be always rendered

- "moon phase": If you enable it, moon phases will be used like the vanilla moon. Besides, you will need to use a texture such as the following

It is an example of setting a texture and a color. You will need to import your texture as "Other" and input a mod ID and a texture name


"Render regular polygon":

This procedure can render a regular polygon on the sky. It should be used on the event "Render sky"

- "pose": It defines the rotation of a regular polygon with a new variable "pose"

- "mode": It can change the appearance of a regular polygon to render

- "vertex": It defines the numbers of regular polygon vertices

- "constant": it defines whether or not a regular polygon disappears if it rains. If it is enabled, The regular polygon will be always rendered

The following is an example


"Render sky box":

This procedure can render a sky box on the sky. It should be used on the event "Render sky"

- "mode": It defines how to map a texture

  - "SIX_FACES": Different textures can be used for each face. You will need to use the texture like in the above image

  - "ONE_FACE": With one texture, a sky box is rendered

  - "END_SKY": Like "ONE_FACE", but texture orientation is a little different

- "constant":  it defines whether or not a sky box disappears if there are boss mobs in the world. If it is enabled, The sky box will be always rendered

The following is an example


"Render stars":

This procedure can render stars on the sky. It cannot change the angles. It should be used on the event "Render sky"

- "amount": It is the numbers of stars to render

- "seed": It is a seed value which is used for the random numbers to define star positions

- "constant":  it defines whether or not stars disappear if it rains. If it is enabled, The stars will be always rendered

The following is an example

You can use a vanilla star color like in the above image


"Render sun": 

This procedure can render a sun on the sky. It cannot change the angles. It should be used on the event "Render sky"

- "constant":  it defines whether or not a sun disappears if it rains. If it is enabled, The sun will be always rendered

The following is an example


"Render sunlights":

This procedure can render sunlights on the sky. It cannot change the angles. It should be used on the event "Render sky"

The following is an example

Other than the time that is sunrise and sunset, note that the procedure "Get sunlight color" return a transparent color


"Render texture":

This procedure can render a texture on the sky. It should be used on the event "Render sky"

- "pose": It defines rotation of a texture to render

- "size": It defines a size

- "constant":  it defines whether or not a texture disappears if it rains. If it is enabled, The texture will be always rendered

The following is an example

Edited by sumeshi0216 on Wed, 01/03/2024 - 04:21
Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, try to clear gradle…
Mon, 08/21/2023 - 16:17

Also, try to clear gradle cache like the following

"Builder & run" > "Clear all Gradle caches" > "Clear entire Gradle folder"

Last seen on 11:19, 15. Sep 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've done that, still get…
Mon, 08/21/2023 - 16:34

I've done that, still get the same compile error though.

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I've tried many…
Tue, 08/22/2023 - 00:23

Sorry, I've tried many things, couldn't reenact the bug. So far, I do not know ways to fix it 

Last seen on 11:19, 15. Sep 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No worries, if I manage to…
Tue, 08/22/2023 - 07:48

No worries, if I manage to fix it on my own I'll let you know. Until then I'll just manually lock and edit the code to import Axis every time.

Thanks for the help!

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, I would need some…
Fri, 08/25/2023 - 14:21

Hello, I would need some help. I would need assistance in removing the sky, the sun, and the moon from my dimension so that I can replace them with my own sun and moon. Essentially, I would appreciate it if you could provide me with a procedure to remove the sky, the moon, and the sun from my dimension, as well as three other procedures to add my own sky, moon, and sun. ^^

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You will need to clear all…
Fri, 08/25/2023 - 16:39

You will need to clear all objects, and render vanilla objects and custom sun and moon. However, due to the specifications of the current renderer, the number of procedures will be excessive

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do not have the "set color…
Fri, 08/25/2023 - 17:39

I do not have the "set color to" I am on version 2022.3.

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sure, that works. However,…
Fri, 08/25/2023 - 21:13

Sure, that works. However, without intending to boss you around, could you help me with my custom sky? I'm not quite sure how it works.

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The renderer is mainly…
Sat, 08/26/2023 - 00:10

The renderer is mainly possible to render textures on the sky. I want to know what you will need to render

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I would actually like…
Sat, 08/26/2023 - 00:54

What I would actually like to do is create a custom sky, with a custom daytime sky and a custom nighttime sky, including a custom moon and a custom sun.

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will try to explain myself…
Sat, 08/26/2023 - 00:57

I will try to explain myself better. Essentially, what I would like to achieve is a custom daytime sky featuring a custom sun and a custom moon, as well as a custom nighttime sky.

 


 

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you need to render custom…
Sat, 08/26/2023 - 01:24

If you need to render custom sun and moon, use the procedure template "Render a vanilla sun and moon"

Last seen on 14:26, 18. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, and then what do I…
Sat, 08/26/2023 - 01:33

Okay, and then what do I need to use to create a custom daytime sky and a custom nighttime sky?

Last seen on 10:08, 10. Sep 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using the template, add the…
Sat, 08/26/2023 - 01:46

Using the template, add the procedures below

"Enable blending" defines combination colors, which rendered object and background. You will need to set it to "DEFAULT"

Next, you will need to set a sun texture and, render the sun. "constant" defines whether or not a sun disappears if it rains. If it is enabled, The sun will be always rendered

After that, do the same about the moon. If "moon phase" is enabled, you will need to use a special texture as shown in the usage above