Jump to content

[1.16] 3D render in a Screen


Iterator

Recommended Posts

Heyo! So I'm trying to code some kind of space planet UI and I need to make some sort of impression that player is orbiting a planet while selecting it.

What I need to do it is to render a planet texture and then rotate it 90 degrees on Z axis. Didn't find any examples in MC code close to that so that's why I'm asking here.

Any OpenGL professionals? Any help will be appreciated.

Link to comment
Share on other sites

Not an expert in rendering stuff but..i don't think you "rotate" a 2d texture to get a 3d effect. You either rotate a 3d model or render a sequence of 2d images represeting a planet that is rotating, each one drawing your planet in a different angle

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

The player is rendered in the inventory, which counts as rendering in a GUI.

But if you want a planet rotation effect, you can achieve it with a 2D scrolling image and a mask:

https://gamedev.stackexchange.com/questions/147193/imitate-a-textured-sphere-in-2d

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.