Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

1

Donnerstag, 11. Mai 2023, 13:54

Transparency handling

In the model here, there are some textures that have transparency.

It seems the transparency handling of krpano is working - kinda: material is transparent but
- only shows own texture
- shows the skybox/background/sphere

You can see it in the picture below:



The walls/floors (which are other textures) are not shown, and instead the skybox is shown.

Is this something that will be improved in the future?

gr,
Kristof

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

2

Montag, 15. Mai 2023, 10:48

In another post, we can also see that hotspots are not visible through transparent materials.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Montag, 15. Mai 2023, 10:58

did you try to double the transparency thing, make it a tiny little bit smaller .. ehh in this case bring it just a bit outside and flip the normals?
Not sure but for me in a totally other users case that worked.

Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (15. Mai 2023, 11:31)


4

Montag, 15. Mai 2023, 12:43

yes i try it, but it does not work...

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

5

Montag, 15. Mai 2023, 12:50

Tuur,

We are not talking about transparent in the sense of depthmap.cull of faces. This is an actual transparent material within the .obj
The obj material is a PNG with transparency/alpha channel. And when present, when you "look through" the material, all you can see is either the skybox or texture from the same material. Hotspots or other textures are not rendered. I'll try to setup a small scene to get the idea/issue better across.

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

6

Montag, 15. Mai 2023, 13:30

Demo: https://krpano.kri-soft.be/examples/transparentmaterial/

In the scene there is 1 model (with 2 textures) and 1 hotspot.
The first texture is a texture for the floor, yellow cube and the transparent window in the middle.
The second texture is a texture for the purpole cube.

- yellow cube is visible through the transparent layer (same texture)
- purple cube is not visible through the transparent layer
- hotspot is not visible through the transparant layer



K.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »kme« (15. Mai 2023, 13:41)


7

Mittwoch, 17. Mai 2023, 09:37

Hi,

rendering transparent materials is tricky and is not supported yet...

There are multiple ways to support that (all with different issues) and I'm currently thinking of this one:
- first render all objects with the opaque materials normally
- then take all objects with transparent materials, sort them based on their distance to the camera
- render them from back to front but without writing to the depthbuffer

This shouldn't cost much performance (compared to sorting ALL triangles of transparent objects),
but can be still problematic with self-intersecting objects and textures that are partial opaque/transparent...

Best regards,
Klaus