Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

How do you properly implement transparency within a TESR with OGL?  When transparent things are viewed through the glass portion of my model without the liquid in it, it's just fine, but when the liquid is put in, viewing the liquid filled model through the glass of another copy of this model does this:

 

width=500 height=383https://dl.dropboxusercontent.com/u/10036065/2015-08-19_16.13.48.png[/img]width=500 height=383https://dl.dropboxusercontent.com/u/10036065/2015-08-19_16.13.36.png[/img]

 

 

It seems that relogging fixes this for an unknown reason, however viewing an empty model through a filled model then doesn't sort properly, it's very strange.

 

 

 

L107'>TESR

 

 

(The order of rendering is at the very bottom, in 'renderTileEntityAt')

Hi

 

If your transparent pane is rendered first, it writes to the depth buffer, and then anything behind the pane that is rendered later (eg the second model, with the red liquid in your screenshot) is behind the glass, so it gets culled (doesn't render at all).

 

It all depends which model renders first.

 

It will help if you turn off writing to the depth buffer when drawing your transparent glass

glDepthMask(false)

and if you only render the panes which face the player (turn on back face culling).

 

The only robust way to fix it is to render all your transparent parts last, sorted in depth order with the other transparent objects in the scene.  This is a right pain in the butt.

 

-TGG

  • Author

Yeah, turning off the depthMask didn't really help, it seems to be an issue with newly placed models being viewed through models that were already placed.  The last part sounds like something the MC rendering engine is doing, and I can't touch it without something like an AT? (and that sounds like a very bad idea)

Yeah, turning off the depthMask didn't really help, it seems to be an issue with newly placed models being viewed through models that were already placed.  The last part sounds like something the MC rendering engine is doing, and I can't touch it without something like an AT? (and that sounds like a very bad idea)

It can be done.  But it is an awful set of hacks and I reckon it's almost certainly better if you change your model so that it's not so visually annoying.

 

-TGG

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.