End_KG Posted July 19, 2018 Posted July 19, 2018 I wanna render player sign(like nameplate ) onto screen whatever how far the player is,but i've tried many ways to achive it but i was faild. There are two ways I tried but faild before. 1. use gluProject to map player location to screen pos,as a result,I got an incorrect screen pos. 2.render infos I need into world directly when RenderWorldLastEvent was fired,as a result,those infos didn't render when I am far away. i wonder that is there a way to let me cover 3d coordinates to screen pos and render onto screen whatever how far the player is? I am sorry for my poor english and thanks a lot! Quote
dwilby Posted July 29, 2018 Posted July 29, 2018 Have you tried creating an invisible entity which follows the player around and giving that a nameplate? Just an idea Quote
Cadiboo Posted August 8, 2018 Posted August 8, 2018 On 7/19/2018 at 8:25 PM, End_KG said: i wonder that is there a way to let me cover 3d coordinates to screen pos and render onto screen whatever how far the player is? GLStateManager.translate(x, y, z)? You probably will have to subtract two positions to get the render position. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Recommended Posts
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.