Jump to content

[1.7.10][1.8.9] Rendering of "phantom" blocks...


OreCruncher

Recommended Posts

Before I go too far down a rat hole I figured I would ask some questions.

 

What I am looking to do is render client side effects as blocks.  These "phantom" blocks could occur anywhere in the world, x, y, or z.  These blocks do not exist in a chunk and are not accessible using the standard world.getBlock()/world.getBlockState().  In some cases they will be generated on the fly based on criteria.  State does not have to be persisted between world restarts.  These blocks would have no collision box as they are just visual effects.  Yada yada yada...

 

So, my questions...

 

  • How should I go about integrating my phantom block rendering into the Minecraft rendering system?  I have Googled examples of what others have done and some of them listen for rendering events in order to do rendering.  Seems straight forward if it is the right approach.
  • What I am not sure about is clipping - will my blocks be properly clipped if they happen to be behind other blocks or blocks that have transparency (leaf blocks)?

 

Thanks!

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.