Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setVisibleThroughObjects does not work on transparent widgets #91

Open
itsmeow opened this issue Mar 10, 2020 · 1 comment
Open

setVisibleThroughObjects does not work on transparent widgets #91

itsmeow opened this issue Mar 10, 2020 · 1 comment

Comments

@itsmeow
Copy link

itsmeow commented Mar 10, 2020

Describe the bug
If you set something to be visible through objects, it does not work with transparent widgets. Tested with Cube3D and Text3D

In which environment did the Bug appear?
Multiplayer server

To Reproduce
Steps to reproduce the behavior:

  1. Use code below
  2. Put wall in front of cube
  3. See lack of visibility through wall.

Expected behavior
When set to true, 3d widgets with transparency should be visible through walls.

Screenshots / Code Snippet
If applicable, add the code you used and screenshots of how your setup looks like

local component = require("component")
cube = component.glasses.addCube3D()
cube.setVisibleThroughObjects(true)
cube.addColor(1, 0, 0, 0.6)
cube.addTranslation(-5, 1, 0) -- put a wall on the -X direction

Without transparency:
image
With transparency:
image
image

Minecraft:

  • Mod Version: OpenGlasses 2.2-50
  • Minecraft Version: 1.12.2
  • Forge Version: Forge 14.23.5.2847
@ben-mkiv ben-mkiv added the bug label Mar 12, 2020
@ben-mkiv
Copy link
Collaborator

unfortunately this cant be fixed easily, i could make them visible behind walls BUT minecraft doesn't do depth sorting, so stuff would just overlap each other depending on what was drawn first.

if this will ever be fixed then after adding manual depth sorting for openglasses widgets, so i'll leave the bug open as enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants