Jump to content

[SOLVED] Water trail issues


photo

Recommended Posts

Posted

Hi,

We are working in a world with 2 ships that are very far away from each other. The ships have a water trail attached like in Oil Platform sample and also each ship has a dummy camera which follows it.

 

In first place, when we switch between cameras there is a strange behaviour as it can be seen in these images:

 

post-2372-0-45712200-1486562967_thumb.png

 

post-2372-0-37896300-1486562968_thumb.png

 

This trail comes from the position where the ship 1 was before switching to ship 2 camera, to the position where the ship 1 is when returning to ship 1 camera. This behaviour does not happen when ships are close to each other.

Any tip of why is this happening and how can we solve it?

 

 

In second place, water trail particles stop spawning when game camera is far away from the particle system source.

Is there any way to force particles spawn always? (we can deal with performance decay).

 

Thanks!

Posted

Hi silent,

The problem with the foam is easy to reproduce. Just start the oil platofrm demo and use the helicopter to move it (and the camera by extent) far from some of the ships. When you came back to the ship, you can see the trail discontinuity because it's not being generated when it was out of the camera.

post-59-0-55730900-1486981737_thumb.png

 

Thanks.

Posted

Hi Ivan,

 

I'm afraid the only way is to force update ship nodes with all children while they are not in a frustum via engine.world.addUpdateNode(node).

 

You can check modified ship.h file in attachment.

 

Thanks!

ship.h

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Thanks, this solution solved both problems.

×
×
  • Create New...