#Ring of Peripheral Invisibility

68 messages · Page 1 of 1 (latest)

scenic vessel
#

Okay so this might've been yoinked from watching a Doctor4t video but I'd like an item that allows the wearer to only be seen when not being directly looked at, preferably for Fabric if possible!

#

Honestly a lot of the content SMP mods would be amazing to have or remake

#

Maybe this could be an NBC Heroes addon for a power,...

high hare
#

Hmm it would use the mechanic of the creaking hmm not sure how it will be implemented

scenic vessel
#

I’m not really a coder so I have no idea how it’d work sadly

pale sierra
#

Might be relevant?

junior raft
#

I don’t think so
Looks like that mixin stops rendering players if they are too close to you

pale sierra
junior raft
#

Requester wants someone only to render when at the edge of the camera frustum (so invisible when directly looked at)

pale sierra
#

Yes.

#

There are other ways to not render something, but this is one.

#

I agree with jaai's assessment on the example for frustum

scenic vessel
#

hopefully there's some progress on this, would be sick as hell

scenic vessel
#

.

snow geyser
#

@scenic vessel what version do you want this for

#

i might know a way to do this

scenic vessel
#

oh? 1.19.2 preferrably, got a pack im building for that version

snow geyser
#

i have a few questions, do you want it to have a max distance, and do you want it to work through blocks @scenic vessel

scenic vessel
#

no max distance, and yeah working through walls would be good

#

unless thats an issue, too big of a hassle and I can live without it lol

#

Sorry for the late reply, was at work for a bit

junior raft
#

So I was thinking about this and I might have discovered an easy solution

#

The idea is to create a copy of the camera,
somehow translate it in the player’s look direction, then render the player if and only if it’s in the original frustum and not the translated frustum

#

I’m sure it could be optimised/optimized further

#

I’ll do some experimenting later

frank pumice
#

What if you drew a line from the "invisible" player's head to the camera, then another line straight from where the camera is looking. You could then use trig to find the angle of difference and set a threshold for rendering the "invisible" player

junior raft
#

Okay well I’m braindead

#

I still like camera translation more because I think it automatically accounts for FOV

#

And F5

junior raft
#

Depends on whether we want F5 to intentionally bypass the invisibility
@scenic vessel any thoughts?

frank pumice
#

ah, yeah, I didn't think of those

scenic vessel
#

The f5 issue might be a bit too much of an issue, but it could also be the only way it’s getting done if other methods are too complicated

snow geyser
#

I got a working version using a raycast

junior raft
#

Ah nice

snow geyser
#

@scenic vessel do you want it to only work when held or just in your inventory?

scenic vessel
#

In your inventory, possibly a curios slot if that’s possible

high hare
#

Curios is for forge i think

#

It would be trinkets or accessories

snow geyser
#

currently it makes the player visible when the player looks at the hitbox, but i made that a thing before i realized it was periphal vision. i could expand the range of the raycast to make it more likely to be like periphial vision

junior raft
#

I think that’s the opposite of what we want lol

#

Only render if on camera edge

#

I’ll go ahead with the camera shenanigans then

snow geyser
#

ok

junior raft
#

Yep pretty much

#

Now try F5

snow geyser
#

oh wow that

#

doesnt work well

snow geyser
#

the only downside is anyone on an ultrawide monitor gets a bit of an advantange

#

@scenic vessel what do you think?

scenic vessel
#

oh hell yeah! that second video looks more correct with the player being a bit more in view, but I think you've done it! :D

#

actually it might be a bit far in, but at the same time I assume thats just because of the resolution? @snow geyser

#

also sorry for the late responses </3

junior raft
snow geyser
#

I also implemented a ring slot with trinkets that it can go into

scenic vessel
#

either way its not an issue

#

yee thats fine, wouldnt it be just a compatibility and not neccessarily required for it?

#

dunno why those sent in the wrong order

snow geyser
#

Oh wow that looks so much nicer than mine