Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16] 3D render in a Screen
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Iterator

[1.16] 3D render in a Screen

By Iterator, November 16, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Iterator    0

Iterator

Iterator    0

  • Tree Puncher
  • Iterator
  • Members
  • 0
  • 6 posts
Posted November 16, 2020

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.

  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    69

Beethoven92

Beethoven92    69

  • Dragon Slayer
  • Beethoven92
  • Members
  • 69
  • 556 posts
Posted November 16, 2020

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

  • Quote

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

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

Draco18s    2401

Draco18s

Draco18s    2401

  • Reality Controller
  • Draco18s
  • Members
  • 2401
  • 15917 posts
Posted November 17, 2020

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

  • Quote

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.

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DavidQF555
      [1.16.1] Rendering Glow Effect

      By DavidQF555 · Posted 16 minutes ago

      I'm still trying to figure this out, I just ignored it for a bit. I think I can render it for one player if I can just figure out where the glow effect is rendered in the first place. Anyone know where the glow effect is rendered?
    • kmann383
      Forge 35.1.37 crashes when i hit escape key

      By kmann383 · Posted 33 minutes ago

      Hola. My forge crashes whenever i hit escape to go to the options menu please help.crash-2021-01-15_09.41.53-client.txt
    • avbavey
      Can’t download forge on Mac?

      By avbavey · Posted 1 hour ago

      I tried downloading the launcher from the website, then I go to Finder and locate it and double click it. Then it shows a pop up that says “the java JAR file (name of the file) could bot be launched.” How do I open it?? Also, this sounds weird but the Mac keyboard stopped working so I have to use a Windows keyboard with the Mac computer. Please help ASAP!
    • Shrayzz
      Forge 1.4.7 : Problèmes d'installation

      By Shrayzz · Posted 1 hour ago

      Bonjour, j'aimerais me faire une partie en 1.4.7 moddé car certains mods ne sont disponibles que sur cette version. Récemment, j'ai acheté un nouveau pc l'ancien ne marchait plus. Le problème, c'est qu'étant donné que le fichier "minecraft.jar" du dossier "bin" de ".minecraft" n'existe plus. Le type d'installation de forge n'est plus le même qu'avant, je suis donc allé voir sur des forums pour savoir comment je pourrais faire mais tous sont obsolètes. Pourriez-vous m'aider à installer cette version, je voulais savoir si on pouvait toujours en faire des serveurs avec cette version? Merci de votre réponse.
    • PedreHenrry
      my minecraft crashed by "rendering overlay"

      By PedreHenrry · Posted 1 hour ago

      tomorrow i do this  
  • Topics

    • DavidQF555
      8
      [1.16.1] Rendering Glow Effect

      By DavidQF555
      Started August 24, 2020

    • kmann383
      0
      Forge 35.1.37 crashes when i hit escape key

      By kmann383
      Started 33 minutes ago

    • avbavey
      0
      Can’t download forge on Mac?

      By avbavey
      Started 1 hour ago

    • Shrayzz
      0
      Forge 1.4.7 : Problèmes d'installation

      By Shrayzz
      Started 1 hour ago

    • PedreHenrry
      4
      my minecraft crashed by "rendering overlay"

      By PedreHenrry
      Started 5 hours ago

  • Who's Online (See full list)

    • kmann383
    • Arcadeflip
    • Titan7272
    • vladislav
    • Godis_apan
    • DavidQF555
    • Pl00py_R
    • Reflector_10
    • Buecher_wurm
    • Babatunde
    • SxnpaiZero
    • Abdymazhit
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16] 3D render in a Screen
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community