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

Started by sumeshi0216 on

Topic category: Plugins and third-party tools

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
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know if I did…
Tue, 10/17/2023 - 00:08

I don't know if I did something wrong, but using any of the provided global triggers (like, for instance, Render Sky) lead up to compiling errors.

This is the procedure I'm trying to run:

[Image Link]

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Edit, I was using MCreator…
Tue, 10/17/2023 - 02:53

Edit, I was using MCreator 2023.1. I moved to 2023.3 and it all seems to work nice now.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I am trying to run a…
Thu, 10/26/2023 - 19:40

Hello! I am trying to run a more complicated procedure where a skybox gets more or less transparent the more far away the player is from an entity, and it works for a few seconds before crashing the game and giving me a "Pose stack not empty".

Is there any way to fix this? Thank you!

{Using 2023.3 1.20.1 by the way)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, im having a bit of…
Fri, 10/27/2023 - 17:08

Sorry, im having a bit of trouble understanding. Is it possible to change the sky color while a variable is equal to a certain value?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why this not working…
Thu, 11/02/2023 - 20:28

Why this not working?

Executing Gradle task: build
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 16317 MB, Windows 11, JVM 17.0.7, JAVA_HOME: F:\Program Files\Pylo\MCreator\jdk, started on: 2023-11-02-17:25:29

> Task :compileJava FAILED
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:99: error: package Axis does not exist    pose.mulPose(Axis.YP.rotationDegrees(180.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:105: error: package Axis does not exist    pose.mulPose(Axis.XP.rotationDegrees(180.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:111: error: package Axis does not exist    pose.mulPose(Axis.YP.rotationDegrees(-180.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:112: error: package Axis does not exist    pose.mulPose(Axis.XP.rotationDegrees(-90.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:118: error: package Axis does not exist    pose.mulPose(Axis.ZP.rotationDegrees(90.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:124: error: package Axis does not exist    pose.mulPose(Axis.ZP.rotationDegrees(90.0F));
     ^
F:\MCreatorWorkspaces\Gemultiverses\src\main\java\net\mcreator\gemultiverses\procedures\SkyRenderProcedureProcedure.java:130: error: package Axis does not exist    pose.mulPose(Axis.ZP.rotationDegrees(90.0F));
     ^
7 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 5 seconds

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
really loving the plugin!!!…
Thu, 11/09/2023 - 06:08

really loving the plugin!!! just 2 small questions on it 
1) when using shaders like bsl, shadows are projected into the skybox as if it was a solid thing, any clue how i could fix that or if thats something that happens because of how the plugin is made?

2) i know how to give a sky an abyss, but is there a way to get rid of the abyss without using a full skybox?

 

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its ready for 1.14.4?  
Fri, 11/10/2023 - 14:49

its ready for 1.14.4?

 

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when i try to set a texture…
Sun, 11/26/2023 - 04:52

when i try to set a texture for the sky, no matter what texture i choose, it sets it to the minecraft grass texture in game. 

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh man this look fantastic i…
Sat, 12/02/2023 - 04:25

oh man this look fantastic i must take a look! do you need a mod dependency for it after you export your mod from Mcreator?

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Soo I want to render only…
Wed, 12/13/2023 - 01:35

Soo I want to render only stars without moon or sun, any chances for that?

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, if you tweak…
Wed, 12/13/2023 - 01:38

Nevermind, if you tweak order of by puting render sky first and then render stars, it will work as intended

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you please tell me how I…
Thu, 12/14/2023 - 03:01

Can you please tell me how I can make the rendering skybox during creature generation?

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is it possible to render the…
Fri, 12/15/2023 - 19:21

is it possible to render the skybox in a block?

 

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this look so sweet, where do…
Tue, 12/26/2023 - 11:05

this look so sweet, where do i see what version i need for mcreator 2023.3 and 2023.4 ?