3D Viewer work


RE: 3D Viewer work
#28
(2020-02-06, 16:14)Lasse Deleuran Wrote: I am currently looking into the issue of inconsistent display of overlapping transparent elements. While it is possible to enforce consistency by turning off "depth write" on transparent materials, this is an issue with LDraw since color 16 can be both transparent and opaque depending on the color to which it is assigned. As materials are combined, this is causing issues for BFC mode and for materials with both transparent and opaque sections.

I will instead look into the possibilities of using 3 materials per element (there is currently only one, hence the issues!)

1) Opaque material with depth write - This is rendered first
2) Color 16 material where depth write can be turned on and off - This is rendered second (so after any opaque material if 16 is a transparent color)
3) Transparent material without depth write - This is rendered last

This should fix the issues that we are currently observing on parts with mixed transparent and opaque sections. However. It requires some refactoring which might take me all weekend to get right.

This has now been fixed in the latest push to master.

Please note that three Three.js group objects should now be fed to the MeshCollector constructor, and it complains if any are missing.

All sample and test files are updated.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
3D Viewer work - by Orion Pobursky - 2019-11-17, 19:52
RE: 3D Viewer work - by Magnus Forsberg - 2019-12-01, 14:09
RE: 3D Viewer work - by Lasse Deleuran - 2019-12-01, 19:18
RE: 3D Viewer work - by Orion Pobursky - 2019-12-01, 19:39
RE: 3D Viewer work - by Gerald Lasser - 2019-12-01, 19:17
RE: 3D Viewer work - by Lasse Deleuran - 2019-12-06, 20:12
RE: 3D Viewer work - by Magnus Forsberg - 2019-12-27, 15:54
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-11, 9:43
RE: 3D Viewer work - by Lasse Deleuran - 2020-01-11, 9:54
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-11, 10:24
RE: 3D Viewer work - by Orion Pobursky - 2020-01-12, 6:40
RE: 3D Viewer work - by Philippe Hurbain - 2020-01-12, 7:55
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-12, 11:05
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-22, 15:42
RE: 3D Viewer work - by Orion Pobursky - 2020-01-22, 15:48
RE: 3D Viewer work - by Philippe Hurbain - 2020-01-22, 16:56
RE: 3D Viewer work - by Gerald Lasser - 2020-01-22, 17:00
RE: 3D Viewer work - by Orion Pobursky - 2020-01-22, 18:21
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-22, 21:21
RE: 3D Viewer work - by Gerald Lasser - 2020-01-22, 21:22
RE: 3D Viewer work - by Orion Pobursky - 2020-01-22, 21:38
RE: 3D Viewer work - by Orion Pobursky - 2020-01-22, 21:39
RE: 3D Viewer work - by Gerald Lasser - 2020-01-22, 22:40
RE: 3D Viewer work - by Orion Pobursky - 2020-01-23, 0:44
RE: 3D Viewer work - by Magnus Forsberg - 2020-01-23, 18:30
RE: 3D Viewer work - by Michael Horvath - 2020-01-24, 21:07
RE: 3D Viewer work - by Lasse Deleuran - 2020-02-06, 16:14
RE: 3D Viewer work - by Lasse Deleuran - 2020-02-08, 1:03
RE: 3D Viewer work - by Orion Pobursky - 2020-02-10, 4:56
RE: 3D Viewer work - by Lasse Deleuran - 2020-02-10, 9:09
RE: 3D Viewer work - by Orion Pobursky - 2020-02-10, 15:55
RE: 3D Viewer work - by Orion Pobursky - 2020-02-10, 18:07
RE: 3D Viewer work - by Lasse Deleuran - 2020-02-10, 18:58
RE: 3D Viewer work - by Orion Pobursky - 2020-02-10, 19:47
RE: 3D Viewer work - by Lasse Deleuran - 2020-02-10, 21:47
RE: 3D Viewer work - by Orion Pobursky - 2020-02-10, 22:06
RE: 3D Viewer work - by Philippe Hurbain - 2021-01-08, 9:31
RE: 3D Viewer work - by Lasse Deleuran - 2021-01-09, 9:42
RE: 3D Viewer work - by Lasse Deleuran - 2021-01-09, 11:12
RE: 3D Viewer work - by Philippe Hurbain - 2021-01-09, 14:52
RE: 3D Viewer work - by Magnus Forsberg - 2021-01-09, 16:28
RE: 3D Viewer work - by Orion Pobursky - 2021-01-09, 16:14
RE: 3D Viewer work - by Lasse Deleuran - 2021-01-09, 20:24
RE: 3D Viewer work - by Orion Pobursky - 2021-01-11, 16:07
RE: 3D Viewer work - by Orion Pobursky - 2020-02-11, 0:27
RE: 3D Viewer work - by Magnus Forsberg - 2020-07-08, 21:17
RE: 3D Viewer work - by Orion Pobursky - 2020-07-08, 21:45
RE: 3D Viewer work - by Orion Pobursky - 2020-07-13, 2:42
RE: 3D Viewer work - by Philippe Hurbain - 2020-07-13, 6:17
RE: 3D Viewer work - by Orion Pobursky - 2020-07-13, 12:41
RE: 3D Viewer work - by Magnus Forsberg - 2020-07-13, 7:16
RE: 3D Viewer work - by Orion Pobursky - 2020-07-13, 12:40
RE: 3D Viewer work - by Magnus Forsberg - 2020-07-13, 13:06
RE: 3D Viewer work - by Orion Pobursky - 2020-07-13, 13:57
RE: 3D Viewer work - by Magnus Forsberg - 2020-07-13, 14:44
RE: 3D Viewer work - by Orion Pobursky - 2020-07-13, 15:15
RE: 3D Viewer work - by N. W. Perry - 2020-07-13, 15:12
RE: 3D Viewer work - by Magnus Forsberg - 2020-07-25, 16:32
RE: 3D Viewer work - by Orion Pobursky - 2020-07-25, 17:02
RE: 3D Viewer work - by Orion Pobursky - 2020-07-28, 1:36
RE: 3D Viewer work - by Orion Pobursky - 2020-07-17, 5:05
RE: 3D Viewer work - by Vincent Messenet - 2020-07-18, 7:54
RE: 3D Viewer work - by Orion Pobursky - 2020-07-18, 12:20
RE: 3D Viewer work - by Lasse Deleuran - 2020-07-13, 9:59

Forum Jump:


Users browsing this thread: 1 Guest(s)