[Tutorial] Render Effects [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] Render Effects [World Renderer]
Fri, 08/16/2024 - 03:22 (edited)

The procedures in the list "Render effects" allow you to get advanced rendering effects.

They can only be used on the following events.

  • Graphics - Render clouds
  • Graphics - Render overlays
  • Graphics - Render shapes
  • Graphics - Render sky
  • Graphics - Render weather

 

Textures

The procedure allows you to set a texture for rendering. There is the procedure in the list "Graphics procedures - Render effects."

Note that texture strips are not animated.

  • ID: It is your mod ID.
  • Name: It is a texture name. ".png" is not necessary. For example, if a texture name is "custom_skybox.png", set a name "custom_skybox".

 

A texture needs to be set before rendering.

 

Textures need to be imported as "Other textures."

 

In order to make sure of your mod ID, open item "Workspace > Workspace settings", and see the following.

 


 

Blending

World Renderer allows you to configure how two colors are blended.

Here is a list of blend modes

  • ADDITION: It adds two RGB values ​​based on the alpha values.
  • ALPHA: It merges two RGB values ​​based on the alpha values.
  • DEFAULT: It's the same as ALPHA
  • MULTIPLICATION: It multiplies two RGB values ​​based on the alpha values.

 

 


 

Culling

If the culling is enabled, the back faces of polygons will not be rendered.

It is enabled by default for shape rendering. If you require back faces of polygons, you will need to disable it.

 


 

Depth Test

If the depth test is enabled, objects behind other objects will be hidden just as they would be in the real world.

If it is disabled, objects will always be rendered without being hidden by other objects.

 


 

Depth Mask

If depth mask is enabled, the depth values of objects are written to the screen's pixels.

The depth values are used in the depth test.

 


 

Color Mask

The procedure allows you to set the RGBA components that can be written to the screen.

The components that are set to false will not be written to the screen.

 

Edited by sumeshi0216 on Fri, 08/16/2024 - 03:22
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a problem with the …
Thu, 09/05/2024 - 08:44

I have a problem with the "Color Mask" procedure block where the "loading terrain" text and dirt background gets stuck on my screen and won't go away, it also does it with the inventory and pause menu and I can't figure out how to fix it, please help! D:)

Minecraft version is forge 1.20.1 and MCreator version is 2024.2

 

images:

image1image2

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Render effects can only be…
Sun, 09/08/2024 - 03:23

Render effects can only be used for certain event triggers. See the list of event triggers above in this tutorial.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You may fix the problem by…
Sun, 09/08/2024 - 03:27

You may fix the problem by setting all the color components to true after rendering the objects.

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the reply, I…
Sun, 09/08/2024 - 05:28

Thank you for the reply, I did end up eventually figuring out how to get the effect I was looking for after some trial and error, I managed to narrow it down to the "Calculate fog color" trigger in which I put the "Color Mask" procedure block by itself! :P

I ended up having to create an overlay texture to trick the game into getting rid of the "loading terrain" text, it's not perfect and it's still seriously bugy, but all I really needed it for was as a video effect for something I plan on making for youtube so it should be good enough for that at least!! :D lol

 

Images of the final results I was looking for: 

image1

image2

Also, I found what I think is a glitch/bug where calculating the light color of blocks and sky doesn't change the color of the block light of blocks that have both block light and sky light, which is the whole reason why I went down this rabbit hole anyways!

IDK just thought I'd mention it as well just in case it is a bug or something that can be fixed in a future version of this plugin, I really do love this plugin BTW, besides this I've never had any problems with it and it's super useful!! :D

Image example:

with "Calculate fog color" procedure:

image3

image4

without "Calculate fog color" procedure:

image5

image6

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why am i getting x-ray now …
Sun, 11/03/2024 - 20:28

why am i getting x-ray now :DD is the nether effects type broken?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh finally changed every…
Sun, 11/03/2024 - 20:36

oh finally changed every flag and return to true