Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mobile performance
#16
(20-05-2021, 07:43 AM)josemendez Wrote: Hi!

Being transparent, fluids are renderer after all opaque objects. Then, the z-buffer is used to discard fragments that lie behind already rendered objects.

Whether an object is considered transparent or opaque, depends on the shader it is using. What material/shader are you using for your text?


Fluids are not an "independent" object so to speak, rendering is a full-screen post process. So they're unaffected by culling masks.


Enter/Leave events can be easily calculated from the raw list of contacts: If a contact appears in the list, but didn't appear last frame, it's an "Enter"event. Similarly, if a contact that appeared last frame does not appear in the current frame, it's an "Exit" event.

If a contact was there in the previous frame and is still there, it's an "Stay" event.

If you don't want to write your own, you can use the ObiContactEventDispatcher component for this: sorts the contact lists, and determines enter/exit/stay events in linear time. These are exposed as UnityEvents that you can subscribe to. You will find it at /Obi/Scripts/Common/Utils/ObiContactEventDispatcher.cs.

I'm using the standard shader that come with textmeshpro, I'm using even the overlay that is suppose to be over everything. Take note that it's working when using textMeshpro in a canvas. It's just working when using TextMeshPro as a 3d object whatever the shader I use.



As for the ObiContactEventDispatcher... I feel like it's going to be heavy on the CPU? I'm going to test it today! Is there an example in the fluid scenes that use it?
Reply


Messages In This Thread
Mobile performance - by DryGinStudios - 12-05-2021, 04:05 PM
RE: Mobile performance - by josemendez - 12-05-2021, 04:55 PM
RE: Mobile performance - by DryGinStudios - 12-05-2021, 05:18 PM
RE: Mobile performance - by DryGinStudios - 12-05-2021, 08:04 PM
RE: Mobile performance - by josemendez - 13-05-2021, 07:43 AM
RE: Mobile performance - by DryGinStudios - 13-05-2021, 12:32 PM
RE: Mobile performance - by DryGinStudios - 12-05-2021, 09:10 PM
RE: Mobile performance - by DryGinStudios - 17-05-2021, 10:02 PM
RE: Mobile performance - by josemendez - 18-05-2021, 07:45 AM
RE: Mobile performance - by DryGinStudios - 18-05-2021, 02:52 PM
RE: Mobile performance - by josemendez - 18-05-2021, 02:54 PM
RE: Mobile performance - by DryGinStudios - 18-05-2021, 10:44 PM
RE: Mobile performance - by josemendez - 19-05-2021, 07:44 AM
RE: Mobile performance - by DryGinStudios - 19-05-2021, 04:49 PM
RE: Mobile performance - by josemendez - 20-05-2021, 07:43 AM
RE: Mobile performance - by DryGinStudios - 20-05-2021, 12:56 PM
RE: Mobile performance - by josemendez - 20-05-2021, 01:45 PM
RE: Mobile performance - by DryGinStudios - 20-05-2021, 03:56 PM
RE: Mobile performance - by josemendez - 20-05-2021, 08:53 PM