Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi 7 has been released
#17
(01-08-2024, 12:01 AM)Ben_bionic Wrote: looks like the issue I was having was that I had messed with a few things and was changing the length by to much. If you change the length by a large margin as I was doing to try and start with a lot of slack in the chain it would just go away. I now just do it a few times over the first few frames and get the result I was looking for.

Can't reproduce this either, using ChangeLength(largeValue) draws the entire chain for me. Where/when are you calling ChangeLength()? Is it called in response to user input, or in some Awake()/Start() method?

(01-08-2024, 12:01 AM)Ben_bionic Wrote: The only weird thing with chains that I am now fighting with is with the default chain I change it to compute and I get one chain link. I checked and the material is set to "Enable GPU Instancing" but even in the example compute shader scene if I change to a chain renderer I only ever see one link.

As per the manual:
Quote:The material used for rendering the chain must support GPU instancing, and if you're using the Compute backend, it must support indirect drawing. Obi includes an example of a ShaderGraph indirect instancing shader, which you can find at Obi/Resources/ObiMaterials/Common/Instanced/Compute/ProceduralInstanced.shadergraph.

Indirect drawing support is required when using the Compute backend, since drawcall data is not passed from the CPU but generated on the GPU. If you use a regular instancing material, only one link will be drawn since the amount of instances and their positions are ignored by the material.

kind regards,
Reply


Messages In This Thread
Obi 7 has been released - by josemendez - 29-07-2024, 11:15 AM
RE: Obi 7 has been released - by Thibault_EODE - 29-07-2024, 12:13 PM
RE: Obi 7 has been released - by josemendez - 29-07-2024, 12:16 PM
RE: Obi 7 has been released - by Thibault_EODE - 29-07-2024, 12:45 PM
RE: Obi 7 has been released - by josemendez - 29-07-2024, 12:49 PM
RE: Obi 7 has been released - by Thibault_EODE - 29-07-2024, 01:23 PM
RE: Obi 7 has been released - by josemendez - 29-07-2024, 01:33 PM
RE: Obi 7 has been released - by Thibault_EODE - 29-07-2024, 01:45 PM
RE: Obi 7 has been released - by josemendez - 29-07-2024, 01:52 PM
RE: Obi 7 has been released - by Thibault_EODE - 29-07-2024, 02:06 PM
RE: Obi 7 has been released - by josemendez - 29-07-2024, 02:09 PM
RE: Obi 7 has been released - by Ben_bionic - 30-07-2024, 11:44 PM
RE: Obi 7 has been released - by josemendez - 31-07-2024, 08:08 AM
RE: Obi 7 has been released - by Ben_bionic - 01-08-2024, 12:01 AM
RE: Obi 7 has been released - by josemendez - 01-08-2024, 08:01 AM
RE: Obi 7 has been released - by radius400 - 31-07-2024, 10:29 PM
RE: Obi 7 has been released - by radius400 - 01-08-2024, 01:43 AM
RE: Obi 7 has been released - by josemendez - 01-08-2024, 08:03 AM
RE: Obi 7 has been released - by radius400 - 02-08-2024, 05:22 AM
RE: Obi 7 has been released - by josemendez - 02-08-2024, 09:20 AM
RE: Obi 7 has been released - by josemendez - 02-08-2024, 09:32 AM
RE: Obi 7 has been released - by radius400 - 02-08-2024, 09:47 PM