Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Camera, lights and export question
#3
(02-08-2024, 07:44 AM)josemendez Wrote: No, it's not supposed to work like this. Rotation should be enabled, and moving the camera should work as usual, since we don't meddle with Unity's camera controls at all. I'm unable to reproduce this behavior on either Mac or Windows editor. Could you give any more details regarding this behavior? Unity version being used?
Unity version is in the original post, but maybe it's conflicting with some other asset? I use some that add their own scene icons, but if this is the case it would be the first time anything like this happened.

(02-08-2024, 07:44 AM)josemendez Wrote: This is a bug/omission in Unity's built-in pipeline, forward rendering path: additional lights (other than the main directional light) don't work properly with mesh instances. The reason is that directional lights are applied on the object's main pass (forward_main) while point and spotlights are done in subsequent, additive passes (forward_add). When using DrawMeshInstanced, Unity only performs the main pass and doesn't render the additional lights. See:

https://discussions.unity.com/t/how-to-u...ing/717600

This works properly in the deferred rendering path. Only the built-in forward path is affected. Unfortunately we can't do anything ourselves to fix it.


Unity's FBX exporter only works with the built in rendering components: MeshRenderer and SkinnedMeshRenderer. In particular, it cannot handle GPU instances which is what the chain links are (for performance reasons, as using individual gamaeObjects with MeshRenderers for each link would be very expensive).

If you need such functionality however, we can write an exporter that generates an .asset mesh in your project. This will allow you to use the resulting chain mesh as a static prefab/prop in your game, or place it in a MeshRenderer to export it as a .FBX using Unity's exporter. Would you be interested in this?

kind regards,
That's messed up, since it works with regular ropes and I can't change to deferred. I tried the mesh renderer component. It works but you can't make a chain with it. A way to export the chain would solve the issue in this case since I use Obi to create static ropes/chains so that would be awesome.Thanks.
Reply


Messages In This Thread
Camera, lights and export question - by troys - 01-08-2024, 03:48 PM
RE: Camera, lights and export question - by troys - 02-08-2024, 01:45 PM
RE: Camera, lights and export question - by troys - 05-08-2024, 02:17 PM