Jump to content

Recommended Posts

Posted (edited)

Hello everyone!
I know how to draw a model using a custom texture.
In this example I draw a book like in the enchantment table in my method render in my BlockEntityRenderer:

		pose.pushPose();
		pose.translate(0.5D, 1.0625D, 0.5D);
		pose.mulPose(Vector3f.YP.rotationDegrees(0));
		pose.mulPose(Vector3f.ZP.rotationDegrees(67.5F));
		pose.translate(0.0D, -0.125D, 0.0D);
		bookModel.setupAnim(0.0F, 0.1F, 0.9f, 1.2F);
		VertexConsumer vertexconsumer = buffer.getBuffer(RenderType.entitySolid(bookTexture));
		bookModel.render(pose, vertexconsumer, light, overlay, 1.0F, 1.0F, 1.0F, 1.0F);
		pose.popPose();


Now I'm looking for a way to draw the book with its texture and with the added glint effect like that of enchanted items.
Can anyone tell me what is the right RenderType if there is any?
Or is there another way?

Thank you all

Edited by Zacomat
solved
Posted (edited)

Not my area of expertise, but this thread has some code for doing it with a block

https://forums.minecraftforge.net/topic/117560-solved-blockentity-rendering-too-dark/?do=findComment&comment=517765

I don't know enough about model rendering to say if it is correct, or it will work with what you are doing?

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

  • Zacomat changed the title to [SOLVED] [1.19] glint rendering

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.