Topic category: User side tutorials
World Renderer allows you to render sky, clouds, weather, etc. However, you will need to learn some things. This is a guide about the plugin.
Procedures and Event Triggers
World Renderer has many procedures and event triggers. Here is a list of those
Graphics - Compute FOV
It can set FOV. Procedure "Viewport - Set FOV" is available.
Graphics - Compute camera angles
It can compute camera angles with yaw, pitch and roll values. Procedure "Viewport - Set camera angles" is available.
Graphics - Compute fog color
It can set a fog color. Procedure "Viewport - Set fog color" is available.
Graphics - Compute light color
It can set light colors. Procedures in the list "Lighting" are available.
Event trigger "Graphics - Set up dimensions" is also required to make it work.
Here is a guide.
Graphics - Render clouds
It can render clouds. Procedures in the list "Clouds" are available.
Event trigger "Graphics - Set up dimensions" is also required to make it work.
Here is a guide.
Graphics - Render fog
It can set a fog distance and shape. Procedure "Viewport - Set fog distance" and "Viewport - Set fog shape" are available.
Graphics - Render models
It can render texts, block, item and entity models. Procedures in the list "Model" are available.
Graphics - Render overlays
It can render overlays. Procedures in the list "Overlay" are available.
Graphics - Render shapes
It can render shapes like triangles, quads, etc. Procedures in the list "Shape" are available.
Here is a guide.
Graphics - Render sky
It can render skyboxes, sun, moon, etc. Procedures in the list "Sky" are available.
Event trigger "Graphics - Set up dimensions" is also required to make it work.
Here are guides.
Graphics - Render weather
It can render weather like rain and snow. Procedures in the list "Weather" are available.
Event trigger "Graphics - Set up dimensions" is also required to make it work.
Here is a guide.
Graphics - Set weather particles and sounds
It can set weather particles and sounds. Procedures in the list "Weather particles and sounds" are available.
Event trigger "Graphics - Set up dimensions" is also required to make it work.
Here is a guide.
Graphics - Set up dimensions
It is required to work some event triggers. Procedures in the list "Setup" are available.
Here is a guide.
Other procedure lists
Color
Those procedures can get various colors. They are available on all rendering events.
Data
Those procedures can get game/world data. They are available on all rendering events.
Others
They are available on all rendering events.
Render effects
Those procedures is used for rendering. They are available on the following events only.
- 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 a procedure list "Graphics procedures - Render effects."
- 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".
Moreover, you will need to use the procedure before rendering.
Textures need to be imported as "Other textures."
In order to make sure of your mod ID, open an item "Workspace > Workspace settings" from your workspace, and see the following part.
Common Mistakes
If you get errors or bugs, try to check the following.
Dimension is not set up
Event trigger "Graphics - Set up dimension" is required to work some event triggers.
Use wrong event triggers or procedures
In order to render objects, you will need to use event triggers and procedures properly. See the above.
Call procedures from non-rendering events
If this example were run, your Minecraft or the server would be crashed. It is not possible to call procedures and run rendering.
Modify game/world data on rendering events
Game/world data modifying should not be run on rendering events. That includes block/entity modifications, NBT setting, etc.
However, it is possible to get data of blocks, entities, NBT, global variables, etc.
Neat!
What is the best way to render items on a block? I know that the render model feature works with the player cordinates, but I am wondering if you have a procedure to render it on a block that is nearby the player
Save positions to global variables, and render items with the variables. If there are multiple positions, use other plugins like Array Lists.
may just dont know how to use array list plugin, but it crashes if i try to render item with
Try to check whether an event trigger "Graphics - Render models" is used.
Can I use custom textures to render mob models? I want to render an entity but with a different texture and it doesn't work.
If this is not possible at the moment, is there a chance that this will be added?
MCreator can add model layers.
Yes but I want to use this vanilla mob and player. Mcreator does not allow adding layers to the player and vanilla mobs, right?
World Renderer is not going to support modifying vanilla entity and player models. Other plugins should be used.
Is there a way to set fog at a certain time of day? I'm hoping to set fog from dusk until dawn if possible. Also is it possible to have a skybox render from dusk to night? I'm trying to get a cool sunset but having no luck. Awesome plugin tbh.
Star level can be used, but It needs calculation.
Are you saying star level can be used for the fog? Or just the dusk skybox?
Also, do you have a rough idea what that would be? I’ve followed your star, sun and moon tutorials but I’m not sure how to calculate the time scale.
Star Level is a value which is 0.0 during the day and 1.0 at night. It can also be used for RGBA values.
I see, so theoretically I should be able to put the color of the fog and then set the A to Get star level to have fog that only comes at night correct?