Latest Threads |
Scripting rod forces
Forum: Obi Rope
Last Post: josemendez
9 hours ago
» Replies: 24
» Views: 2,256
|
Burst error causing crash...
Forum: Obi Rope
Last Post: josemendez
Yesterday, 07:03 AM
» Replies: 1
» Views: 69
|
Controlling speed of emit...
Forum: Obi Fluid
Last Post: josemendez
06-09-2025, 06:29 AM
» Replies: 1
» Views: 292
|
Looks nice on editor but ...
Forum: Obi Fluid
Last Post: josemendez
04-09-2025, 07:20 AM
» Replies: 3
» Views: 588
|
How to Shorten or Scale t...
Forum: Obi Rope
Last Post: josemendez
02-09-2025, 09:53 AM
» Replies: 5
» Views: 670
|
The Limitation of Using O...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 10:30 PM
» Replies: 1
» Views: 437
|
Bug Where a Straight Segm...
Forum: Obi Rope
Last Post: josemendez
01-09-2025, 08:46 PM
» Replies: 1
» Views: 432
|
Having an issue with obi ...
Forum: Obi Rope
Last Post: Ben_bionic
29-08-2025, 04:23 PM
» Replies: 4
» Views: 886
|
Non-uniform particle dist...
Forum: Obi Rope
Last Post: chenji
29-08-2025, 09:05 AM
» Replies: 4
» Views: 761
|
Is it possible to impleme...
Forum: Obi Rope
Last Post: chenji
27-08-2025, 10:13 AM
» Replies: 2
» Views: 693
|
|
|
ObiRope 7.0 save/load |
Posted by: natko1412 - 22-08-2025, 10:25 AM - Forum: Obi Rope
- Replies (1)
|
 |
Hello,
I am working on Save/Load of my obi rope. The thing is that rope changes length at runtime, so I managed that by saving length changes, positions and velocities in the solver. When I need to load the rope, I just change its length in For loop the same as I did for the rope before with the cursor.ChangeLength(len) and after that I set the same positions in solver as before and that worked in v6.x. Now in v7.0, it doesn't work anymore. The main problem, as I see it, is that the rope isn't changed immediately, but at the start of the next solver update so my positions and velocities are loaded before the rope changes. I tried waiting with Enumerators or in while loops, but none worked for me. So I changed my approach and tried with an example from this thread: https://obi.virtualmethodstudio.com/foru...0#pid16920 . When I set up this approach I got the same issue. It was all good when the rope got shorter, but when it grew and I needed to add new particles, the particles that I added weren't active. They would be in the right position but static and old particles would move normally. Is it that this new rope.ActiveParticle() without input activates one of the pooled particles? I am still trying to find a way to add particles without problem or a different approach to Save/Load the rope.
Thanks in advance for your reply.
|
|
|
Fluid oddities at <= 4 particles |
Posted by: slimedev - 13-08-2025, 11:48 PM - Forum: Obi Fluid
- Replies (3)
|
 |
Hello. I have an Obi Fluid Emitter of 12 Particles, which generally just sits there (purple) without any input. But I noticed that at low particle numbers, the individual particles seem to narrowly clump together, and become somewhat jittery, like boiling water droplets. They also seem to gain a lot of friction to the WASD controls, making it generally annoying/ impossible to control.
I had no intuition that it was Particle Velocities, but on trying to refine the WASD controls I discovered that bodies of 4 or less particles have these interesting symmetrical velocities. I don't know if they are pointing in or out vs the position of the centermass of the droplet.
Obi seems to modify velocities in a lot of places, and I was wondering if you could point me in the right direction. Where might there be relevant forces applied, that I can try to hook into?
I had previously attempted passing around a duplicated velocities array, and copying/zeroing it out, but it didn't work at all in the few locations I tried.
Images of Debug Velocities: various numbers of particles. At just 1 particle remaining, the particle is a bit jumpy and sometimes meanders around a little even without any input
12 moving.png (Size: 6.58 KB / Downloads: 14)
4 still.png (Size: 6.84 KB / Downloads: 13)
3 still.png (Size: 10.77 KB / Downloads: 12)
2 still.png (Size: 10.05 KB / Downloads: 13)
1 jitter.png (Size: 6.75 KB / Downloads: 13)
|
|
|
7.1 Obi bone spasm |
Posted by: Jawsarn - 09-08-2025, 04:08 PM - Forum: Obi Rope
- Replies (3)
|
 |
After updating to 7.1 every time I do a domain reload one part of a rope hierarchy chain spasms (one of two symmetrical ears) out by aerodynamic forces.
Interestingly, once I reduce drag for that Obi Bone component from 10 to 0, another Obi Bone component on the same Solver starts spasming out. If I restart, it doesn't seem to spasm out.
|
|
|
Scripting rod forces |
Posted by: Qriva0 - 08-08-2025, 06:33 PM - Forum: Obi Rope
- Replies (24)
|
 |
Hi, I have got several quesions about scripting rods.
- Is there valid way to calculate rod tension? For example I need to know if rod is pressed against the wall and it's being compressed. I tried to compare compressed distances, but with chain constraint it does not work.
- Is there way to calculate pressure against softbody or get it from softbody directly?
- Is it possible to make different parts of rod have different elasticity? There is rotational mass, but it's hard to balance and there can't be huge difference in mass (1:10). Sometimes even if difference is not huge, the rod becomes wiggly and can't stop.
- Is there way to damp rod without touching solver main parameter (damping)? I guess I could write script just for rod to reduce velocities every step, but it also affects other forces.
- What is difference between changing particle velocity and externalForces?
- Is it possible to change rod default (initial) shape during runtime? There are various properties like startPositions, endPositions, restPositions, any many other, but some of them has no effect and others are not what would be expected. I would expect particle delta to show something, but I think they are reset during simulation.
- Is there way to "pin" my burst job to main job queue? I wish I could just add my job handle to be executed with all other stuff without need to complete job instantly.
|
|
|
Adding ObiColider To Generated Mesh Is Slow |
Posted by: aderae - 08-08-2025, 11:25 AM - Forum: Obi Rope
- Replies (4)
|
 |
Hello,
I am procedurally generating my world in 256x256 mesh chunks and whenever player is on one chunk, I am adding ObiCollider to it. However this blocks the main thread for a second and locks the game.
Is there a way to do this in Jobs system inside a thread?
Thanks!
|
|
|
|