#view_range

1 messages · Page 1 of 1 (latest)

hazy ivy
#

I'm trying to make sure a block display is always seen
(I'm doing it through execute as @e[type=block_display] run data merge entity @s {view_range:<val>f}), but it doesn't matter if I put a value too high or just above view_range, it always renders at about 10 chunks only. Is there something I'm doing wrong?

hazy ivy
#

version: 1.21.1

forest fiber
#

What's your client render distance?

hazy ivy
untold saddleBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

south frost
#

what about other entities?
have you tried putting something like sheep next to the block display to see if it renders?
there is a chance that something else in render system prevents displaying all entities from cirten distance..
this is just the guess.. i might be wrong

but, anyway.. this is a good test to determine what coses the problem

forest fiber
#

What value are you setting view_range to exactly? The wiki seems pretty clear on how it works, though doesn't list a maximum

hazy ivy
#

hey, sorry for the delay
the view_range only seem to work with values between 0 and 1 (inclusive)

hazy ivy
forest fiber
#

Ah, if the max is 1 then that's your problem

#

Like I said, the wiki is very clear, the visible range for an item display is the view_range x 64 (x the entity render distance scalar, which defaults to 1). You can't make an entity render from farther than that

#

However, there is a workaround. You can summon the entity somewhere near where you want it to be visible from, but give it transformation data to translate it way far away to where you want it to appear to be

#

Of course if you want it to be visible from all over, you may need many of those origin entities that are each translated differently to show the model at the render location

hazy ivy
#

wouldn't that mess with its rotation?

#

also, in my case I'm using a stained glass, so multiple entities would stack the alpha ig

#

or cause some Z fighting afaik

#

its a really clever solution though

forest fiber