Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope disappears when camera is close
#1
Hi,
I am having issues with rendering a rope. When i get closer with the camera, the rope disappears. This only happens in a specific scene, on a specific solver. I duplicated solver values, so that is not a problem. This worked for me before updating to a newer version, now I am on version 7. I am creating the rope in runtime, here is the code:
Code:
obiRope = EditingObject.GetComponent<ObiRope>();
var blueprint = ScriptableObject.CreateInstance<ObiRopeBlueprint>();
int filter = ObiUtils.MakeFilter(ObiUtils.CollideWithEverything, 0);
blueprint.path.Clear();
blueprint.path.AddControlPoint(Vector3.left, new Vector3(-.3f, 0), new Vector3(.3f, 0), Vector3.zero, 0.1f, 0.1f, .1f, filter, Color.white, "start");
blueprint.path.AddControlPoint(Vector3.right, new Vector3(-.3f, 0), new Vector3(.3f, 0), Vector3.zero, 0.1f, 0.1f, .1f, filter, Color.white, "end");
blueprint.path.FlushEvents();
obiRope.ropeBlueprint = blueprint;
For every change I do to the rope (changing the path, adding control points), I call:
Code:
obiRope.path.FlushEvents();
StartCoroutine(obiRope.blueprint.Generate());
yield return new WaitForSecondsRealtime(1f);
obiRope.ResetParticles();
   
Video: https://drive.google.com/file/d/1lB2xcWD...sp=sharing
If you need anything else, please, tell me. I've been stuck on this problem for quite some time and can't seem to find a solution.
Thanks in advance!
Reply


Messages In This Thread
Rope disappears when camera is close - by Paul1 - Yesterday, 12:30 PM