Jump to content

[1.8] Help implementing an outline similar to the spectator 'Player Outlines'


Recommended Posts

Posted

Hello!

 

I am currently working on a mod which allows players to see certain information about other characters (Basically, if a player uses one of my mod's abilities, they make the sacrifice of everyone else knowing their position and what ability it is). I figure the best way of doing this is with something similar to the player highlighting feature of spectator mode.

 

So I have several questions: Where is the vanilla code for this located? I've been looking for a while and I can't find it.

How should I best go about implementing this? Is there any chance of me being able to use the default class, or will I have to make a copy?

 

 

Posted

I'd suggest trying to figure out how the "Glowing" effect in 1.9 gets rendered and backporting it.

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.

Posted

I'd suggest trying to figure out how the "Glowing" effect in 1.9 gets rendered and backporting it.

I'm betting it's a rim shader. You could probably find the .vert & .frag file sfor this in the snapshot, unless Minecraft builds its shader repository internally for whatever dumb reason. Tricky bit will be getting it in the right place in the pipeline

I think its my java of the variables.

Posted

I'd suggest trying to figure out how the "Glowing" effect in 1.9 gets rendered and backporting it.

 

Hmm. The thing is, I know the code has to be in 1.8, because the spectator Highlight Players button causes almost the same effect. It'd be a lot easier if I could just find that code, but I can't even find mention of the keybind in the code (well, I can find it in the mappings csv file, but that's all). I've poked around in every logical place -- render classes, player classes -- but nothing.

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.