Search Forums

(Advanced Search)

Latest Threads
Rope disappears when came...
Forum: Obi Rope
Last Post: josemendez
2 hours ago
» Replies: 3
» Views: 30
Collisions do not happens...
Forum: Obi Rope
Last Post: quent_1982
6 hours ago
» Replies: 2
» Views: 123
Unstable chain attachment
Forum: Obi Rope
Last Post: quent_1982
17-05-2025, 10:31 AM
» Replies: 13
» Views: 646
Memory leak warning with ...
Forum: Obi Fluid
Last Post: josemendez
16-05-2025, 02:07 PM
» Replies: 4
» Views: 482
the Obi cloth has some co...
Forum: Obi Cloth
Last Post: MakeLifeEasier
16-05-2025, 08:59 AM
» Replies: 3
» Views: 286
ObiCloth going through co...
Forum: Obi Cloth
Last Post: josemendez
16-05-2025, 08:10 AM
» Replies: 1
» Views: 119
Why does setting InverseM...
Forum: Obi Fluid
Last Post: nonnamed
13-05-2025, 12:41 PM
» Replies: 8
» Views: 11,848
Shaking problem when coll...
Forum: Obi Softbody
Last Post: webmagic
13-05-2025, 12:11 PM
» Replies: 6
» Views: 401
Obi Softbody IndexOutOfRa...
Forum: Obi Softbody
Last Post: Aroosh
11-05-2025, 11:37 AM
» Replies: 2
» Views: 246
Rope pinned to two dynami...
Forum: Obi Rope
Last Post: Crimson1462
09-05-2025, 07:51 PM
» Replies: 2
» Views: 336

 
  ObiFluidPropertyColorizer
Posted by: mimarilker - 27-03-2019, 11:17 AM - Forum: Obi Fluid - Replies (3)

Hi,

I am trying to use ObiFluidPropertyColorizer which is a sample script that colors fluid particles based on their vorticity (2D only). However, vorticity returns always zero. Actually, it's not. I think there's a problem with taking data correctly;

float v = emitter.Solver.userData[emitter.particleIndices[i]][0];

What does zero here (emitter.particleIndices[i]][0]) mean? Does the zero channel give vorticity? I have tried to change it to different values, but get no data. Actually, I am trying to get particles colored according to (density-restDensity)/1000.0f). Is this possible?

Print this item

  Interested in fluid to fluid collision
Posted by: itsallgoodgames - 27-03-2019, 10:27 AM - Forum: Obi Fluid - Replies (1)

Are there any fluid to fluid collision demos in the plugin?

I'm interested in 2 unrelated ideas.

Lava fluid collide with water fluid to to destroy both particles and instantiate a gas fluid.
Collide "red" fluid with "blue" fluid  particles to create "purple" fluid particles.

I assume you cannot modify properties of an existing fluid so you'd have to instantiate particles of a the third fluid.

Print this item

  soft body character controller with rigid body
Posted by: rubberkidney - 26-03-2019, 11:06 PM - Forum: Obi Softbody - Replies (3)

Hello, im trying to make a character controller for an object that is a soft body.  ive been looking at the sample character in the examples but i cant seem to get my character to move.  it seems that there is just a velocity being set in the character controller but when I try to mirror this i get no response.  If i try to manipulate the transform without a rigidbody it kind of works but then breaks down.  is there some trick to getting obi to play nicely with rigidbody?  thanks!

Print this item

  {SOLVED} Obi Rope goes crazy when time scale goes from 0 to 1?
Posted by: fletcherkildren - 26-03-2019, 08:36 PM - Forum: Obi Rope - No Replies

Howdy all,

I'm using scale time to 'pause' my game - so when I hit Esc the time scale goes from 1 to 0, when I hit escape again, it goes from 0 to 1.

When I do that, my Obi Rope swings wildly and stretches all over, as if it was a rubber band in a hurricane.

You can see what happens here:

https://media.giphy.com/media/iO7H5hyyEz.../giphy.gif

Any thoughts how to prevent this?

Thanks!

edit: found that I was also adjusting delta time, once I stopped doing that, the rope acts normally

Print this item

Pregunta Mass and Center of Mass? Missing API?
Posted by: StudioTatsu - 25-03-2019, 10:09 PM - Forum: Obi Softbody - Replies (2)

Has the API Docs been updated for softbody? I may be overlooking it or using an outdated link.

Before I write my own methods, I have a few questions:

I'm replacing my rigidbody with a softbody. Do these methods/fields or something equivalent exist for softbodies.

  1. Rigidbody.GetPointVelocity(Vector3 worldPoint) - returns the pointVelocity .
  2. Rigidbody.AddForceAtPosition(Vector3 force, Vector3 position)
  3. Rigibody.centerOfMass - get and set the center of mass of softbody.
  4. Rigibody.mass - [i]get and set the total mass of softbody.[/i]
  5. Rigibody.velocity - gets the softbody velocity 
I have been working on alternative approaches just in case the above methods/fields don't exist. so far...
for setting mass: I was going to divide the total mass with the particle count and add that value to each particle.
for getting velocity: since each particle has a velocity, I was going to use the first particle as the velocity.
 but does a single particle velocity represent the velocity of the entire softbody? Not sure this will work.


And Lastly - Since you have to initialize a softbody in the editor, It's not possible to create a softbody at runtime, right?

I'm in the dark and guessing without the softbody API documentation (using the source helps, but creates more questions).

 Any help would be greatly appreciated.

Thanks.

Print this item

  Particle color in simpleFluidRenderer
Posted by: anonymous - 25-03-2019, 10:54 AM - Forum: Obi Fluid - Replies (2)

Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.



.png   colorAsked.png (Size: 28.63 KB / Downloads: 27)

.png   colorObtained.png (Size: 7.02 KB / Downloads: 27)

Print this item

  See lenght of rope
Posted by: LaurensVR - 24-03-2019, 03:06 PM - Forum: Obi Rope - Replies (2)

Hi i just bought obi rope 4 and i am experimenting it to see if i could use it for a certain gameplay idea but for this i wanted to see if it's possible ti measure the rope distance?

Print this item

  Obi rope renderer
Posted by: SamViolin - 24-03-2019, 05:48 AM - Forum: Obi Rope - Replies (2)

Hello, I encountered a problem with "obi rope". In my scene 38 wires. It gives out very little FPS. I reduced the resolution of "obi rope" and received a gain, but the problem is that there must be more than 100 wires in the scene. Are there any ways to optimize the rendering of ropes? P.S. If I reduce all parameters of "obi solver" to 1 improvement there is no noticeable performance improvement.
Is there any analogue of Rigidbody.IsSleeping in obiRope? Is it possible to find out that the obiRope is sleeping?



[Image: image.png]

Obi solver
[Image: image.png]

Rope
[Image: image.png]


Thank You


Sam Violin.

Print this item

  When use softbody. my skinned mesh messed up
Posted by: songsongsong - 23-03-2019, 04:04 PM - Forum: Obi Softbody - Replies (2)

if no softbody used ,then everything is fine.
if attach the softbody,then mesh messed up.


without softbody
[attachment=300]


with softbody
[attachment=301]

the shoulder and chest are messed up

Print this item

  Prevent extreme separation of rod from pinned object
Posted by: muromets - 22-03-2019, 10:59 PM - Forum: Obi Rope - Replies (1)

Hello there!

I have a rod object that is representing a coiled cable, currently I need to add an option to simulate "wrapping" (as shown in the image provided, a wrapping should be in the place of the two red rectangles), so i've tried adding a pin constraint to the corresponding particles along the rod and they are pinned to a sphere object, that has present the Obi Collider. 

I am able to create this sphere object and pin the corresponding particles, but when the rod object falls it begins to separate and twist until it breaks apart.

Is it possible to pin several particles to a body so that they have no separation, or at leas minimal movement present ? 

[Image: pi50qyA.png]

Print this item