Jump to content

RenderWorldEvent in new versions


hohserg

Recommended Posts

In version 1.7.10 exists RenderWorldEvent: https://github.com/MinecraftForge/MinecraftForge/blob/1.7.10/src/main/java/net/minecraftforge/client/event/RenderWorldEvent.java

Event handling of this can be used for bake some world chunks render

Any ways for analogue in new versions?

 

Something about my task:

I have RenderWorldLastEvent handler with some world rendering which do not change until next chunk rebuild(like until blocks change). And I think that may be good idea that bake it render in chunk like block render

 

Thx for answers in advance)

Link to comment
Share on other sites

7 hours ago, hohserg said:

Up

There doesn't seem to be an appropriate event for what you are wanting to do on 1.15.2. I'm not sure what you want to do, but there is RenderWorldLastEvent in 1.14.4

  • Like 1

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

1 minute ago, hohserg said:

Yes, but it are not provide way to bake custom render to chunk

There is no way for me to know what you want to do if you don't explain it. Please explain what exactly you want to do.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Ok, step by step. Abstractly, ok?

I have some render code in RenderWorldLastEvent handler.

It render dependent on some my state(mutable variable, as example).

It state can change only with changing blocks in chunk.

So render can change only with changing blocks in chunk too.

 

Therefore I want to bake it render in chunk like baked blocks models.

In version 1.7.10 it may be implement by using RenderWorldEvent, because it event fire before and after chunks render and baked with him

 

Plz, tell me moment with which it is not clear

Edited by hohserg
Link to comment
Share on other sites

24 minutes ago, hohserg said:

Therefore I want to bake it render in chunk like baked blocks models.

This part is where I lose you. You want to bake your rendering data into the chunks rendering data?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

4 minutes ago, hohserg said:

Yes, I want it!

There is no event for that. You will need to bake your data somewhere else.

  • Like 1

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

2 minutes ago, hohserg said:

What are some ways to add custom vertex data into chunks rendering data?

You could look at ChunkRenderDispatcher, RegionRenderCacheBuilder, and WorldRenderer to figure out where and how.

  • Thanks 1

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.