Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'2D' Meshes for Softbodies
#5
(17-09-2022, 10:06 AM)josemendez Wrote: Hi there!

Backface culling is performed by the GPU during rendering, Obi does not perform any rendering of its own since it's a physics engine.


Tested this, could reproduce when teleporting an object with multiple constraint batches, thanks for reporting this! Line 202 in the ObiSoftbody.cs script should be:

Code:
sc.batches[i].orientations[batchOffset + j] = rotOffset * sc.batches[i].orientations[batchOffset + j];

instead of:

Code:
sc.batches[j].orientations[batchOffset + i] = rotOffset * sc.batches[i].orientations[batchOffset + j];

let me know if I can be of further help,

hey!

I did end up changing line 202 to what you outlined. Sadly the problem still persists, with the same error as before:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Seems to still originate from the Teleport function at line 205 (closing bracket of the function).
Reply


Messages In This Thread
'2D' Meshes for Softbodies - by woffles - 13-09-2022, 12:01 AM
RE: '2D' Meshes for Softbodies - by josemendez - 15-09-2022, 07:37 PM
RE: '2D' Meshes for Softbodies - by woffles - 16-09-2022, 02:49 AM
RE: '2D' Meshes for Softbodies - by josemendez - 17-09-2022, 10:06 AM
RE: '2D' Meshes for Softbodies - by woffles - 18-09-2022, 03:44 AM
RE: '2D' Meshes for Softbodies - by josemendez - 18-09-2022, 08:54 AM
RE: '2D' Meshes for Softbodies - by woffles - 18-09-2022, 10:15 AM
RE: '2D' Meshes for Softbodies - by josemendez - 18-09-2022, 11:19 AM
RE: '2D' Meshes for Softbodies - by woffles - 18-09-2022, 11:46 AM
RE: '2D' Meshes for Softbodies - by josemendez - 18-09-2022, 01:03 PM