When backface culling is off and material is alpha, an arbitrary winding order face gets rendered?

Hi, so here’s the PG

controls:
q: toggle face orientation debug - red is front face, blue is backface
w: make the mesh alpha/opaque


when the mesh is alpha, why do I see the backface of the highlighted face, even though it’s in the front?

is there a logic to how the backface gets chosen? is there a way I can still see all the front-faces when the mesh is alpha?

It’s messing with the lighting when the mesh gets alpha : /

tysm : )

In alpha mode, faces are not sorted and are rendered in the order they appear in the mesh geometry.

You can try to sort the triangles (Babylon.js docs), but even doing so, you will get artifacts if the triangles are too big.

See this doc page for a description of all the problems you get because of transparency, and how to mitigate them:

https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering

2 Likes

You can try to sort the triangles

this just makes them disappear randomly when moving lol (nvm it works fine i forgor to make it updatable, skill issue)

rendered in the order they appear in the mesh

I see, see my final objective is top or bottom faces shouldn’t be backfaces, others are fine, since it’s order dependent, I’ll try to make this happen by changing the order of faces in the geometry : O

See this doc page for a description of all the problems you get because of transparency, and how to mitigate them

I will : )

Thankyou so much for helping me out here : D

I’m really sorry @Heaust-ops, I flagged you and the topic as spammer instead of the real spammer who answered afterwards (who is also now deleted)!!

I could undelete the topic, we are currently trying to see if it’s possible to undelete the “spammer” flag…

1 Like

Oh no :open_mouth: We need @Heaust-ops here! Maybe someone from MS knows some secret exploits so that we can hack him back in :smiley:

1 Like

I sent him an e-mail. Unfortunately, it doesn’t seem possible to recover deleted accounts, Discourse really cleans up the database in this case. However, Heaust-Ops should be able to recreate the same account with the same email address (small consolation…).

1 Like

I back! : D

glad to see I was missed <3

4 Likes

Waaaait a second… How do we know you are the real @Heaust-ops :thinking: :grin:

2 Likes

I back… It’s him :wink: I love his vocabulary!!

2 Likes

Welcom bak bro!! :cake:

1 Like

Welcome back (and sorry again!)!

3 Likes

@Evgeni_Popov Shit happens, we all make mistakes!

Maybe you could add a new badge called Accidentally deleted and grant only to @Heaust-ops. :crazy_face:

3 Likes

Feature request! :smiley:

2 Likes

[quote=“Evgeni_Popov, post:5, topic:54020”]
I flagged you and the topic as spammer instead of the real spammer who answered afterwards (who is also now deleted)!!
[/quote] :grinning:

OMG. See what these buggers create. Despite from being a piece of sh*t with the brain of a 4-years old :grinning: I would have a feature request for this: For each identified ‘bugger’ place a contract :heavy_dollar_sign: :gun: to have someone go meet him in person and break his knees :hammer:

EDIT: And he now shows like a ‘newbie’ - All of his previous posts and activities are also ‘gone with the wind’ :cry: :unamused: Oh, how I just hate these f***ing buggers for doing that to us… even daring to. :grimacing:

1 Like

Would it be golden :1st_place_medal: (or platinum may be) :joy: Bet not many of us would be able to acquire this one :stuck_out_tongue_closed_eyes: :clown_face:

2 Likes

Waaaait a second… How do we know you are the real @Heaust-ops

You can trust me, I’m legit! : D

muffled real Heaust-ops noises in the background

1 Like

AI: 'Second-level ‘aside-from-biometrics’ Identification successful :identification_card:. Welcome back :joy:

2 Likes

I back… It’s him :wink: I love his vocabulary!!

why use many word when few word do trick : P

Welcom bak bro!!

tysm : D

Welcome back (and sorry again!)!

no worries, glad to be backk :grinning:

new badge called Accidentally deleted

minecraft achievement vibes, “Postmortal” unlocked lol xD

2 Likes

someone go meet him in person and break his knees

or boil their teeth!

thanks everyone for a warm welcome back <3

2 Likes

A lot better than “Accidentally deleted” :rofl: :rofl: Let’s see what can we do :crazy_face:

1 Like