Motion blur with Bercon Metaballs

Glad to hear it was good old PF creating issues.
But i’m curious now.

Well, however they are generated, they can only be pre-meshed (which you excluded), or generated at rendertime.
From the SDK (but of course i stand to be corrected) i infer they can either sit in the static pool, or in the dynamic one.
Anything else that in vray is generated at rendertime sits in the dynamic geometry pool, and is hence affected by the amout of RAM assigned to the pool, which is shared amongst all the dynamic geometry types.

How does the metaball surface gets interpreted by Vray, then?

You’d wonder was it an issue with vray getting fed bonkers motion vectors and it being the blur causing the issues or bercon meta trying to calculate substeps when working out its surface.

Yep. Faster with spawning off. Much faster. Infinitely faster. Even if you crank the particle way up so its got the same amount of particles that were being spawned.

So, at least we know the problem now!

R.

I think that the metaballs sit in static pool but I’m not 100% certain about that.

Anyways, I wrote a workaround for the problem. Here is 2010 64bit version: http://www.ylilammi.com/BerconMetaball/BerconMetaball\_2010\_64\_BETA.dlo

If there are no problems with it I’ll compile other versions too.

Change MB samples to 1 (in metaball options) and it enables the fix and should render as fast as it normally does.

It reads pflows velocity channel to compute motion blur instead of evaluating the particle position to compute the velocity. This has some problems, like if you use Postion Object and have the particles stick to the object and then move this object around it does not cause motion blur. It also does not produce motion blur cause by change in particle size, it only producdes motion blur from movement. If you can avoid these two situations it should work just fine.

EDIT:
Another workaround is delaying the particles 1 frame before they are rendered after the Spawn: http://www.ylilammi.com/BerconMetaball/Workaround\_Number\_Two.jpg

So its rendering now (FAST!)

Thanks so much! Really appreciate your fast response :slight_smile:

Quick question: the sequence crashed 40 frames in last night - it ran out of memory. FIrst time I’ve seen those errors on 64 bit/16 GB ram hahaha!

I’ve set it go again, and the ram usage goes up, and up, and up as it renders bucket by bucket - does the MB samples 1/velocity channel increase ram useage significantly? (theres a few other possible culprits, like the several million particles being cached, and the fact that I just switched to light cache for secondary rays to speed up renders a bit…) just wanted to rule things out…

There’s always something!

Best,
R.

Unfortunately, I cannot load this plugin. I don’t know why. :frowning:
Anyone has no problem?

make shure you install the new plugin into:
plugins\vrayplugins
hope that helps

Edit:
Just run into problems myself …

Check the other thread. You need the vc redistributables most likely

your instinct was good! Thanks :slight_smile:

Strange, because i had it installed and working .. but after installing the beta and then reinstalling the 1.21 it did not load anymore

anyway …

Oh, yes. it works.
Thanks. :slight_smile:

Hmm, so been doing some more testrenders, and both workarounds seem to have problems…

the first (using MB samples 1 and motion vectors) seems to go randomly nuts on some frames… the sequence I rendered gets to frame 89 or so, then the particles seem to blur in random directions. When it goes this the particle count spikes too.

(Plus the amount of memory used is nuts. With 16GB ram I am still getting memory errors)

The second workaround, will leave a gap in the particle streams (the lead particle in the drips is bigger, as rivulets of water tend to be, but if the spawns are a frame later, there is a gap in the stream)

R.

Yeah I managed to get the particles go nuts too with Lock & Bond operator (mb samples 1).

Using the pflow velocities obivously works in metaballs end since it doesn’t care what events you have in your particle system, it just takes postion and velocity and blurs it. If it works in one case, it should work in all cases. With this reasoning the problem is in pflow.

The motion blur works fine with creating/deleting particles mid frame (birth/delete ops) and works fine when particles are delayed 1 frame before rendered after spawn operator (this shouldn’t change anything?). This also makes me to suspect there is something wrong with pflow because these cases should all be similar. Either all cases should fail or all should work if the problem was in the metaballs.

Since all the problems seem to be in pflow I can just come up with workarounds that are not perfect.

I can try asking from the developers of pflow to see what they think about these issues but since pflow falls under Autodesks responsibility I doubt you’ll see any fixes in near future.

Of course there is the very unlikely possibility that the problem is somehow in how I handle pflow in my code. However, it just should not work it like does now if that were the case.

Sorry that I can’t help you more than that.

- Jerry

Would it not be possible to make the plugin ignore particles moving past a certain velocity threshold? (they would be so blurred you would barely see 'em anyway!

Is this not practical? (I have no clue, but cant hurt to ask!)

R.

Yeah that is possible. Actually here is a version to do just that: http://www.ylilammi.com/BerconMetaball/BerconMetaball\_2010\_64\_BETA2.dlo

When Pflow vel. thresh. is negative (-1.0 for example) everything work as before. However when its positive, anything with higher velocity is ignored. So if you set it to 0.0 all moving particles are ignored.

The speed units its using is the movement in world space during 1 frame. So if your particle size is 1.0 then their maximum movement could be something like 5.0 or 10.0, above that they’d be very blurred.

I also contacted somebody with deeper knowledge of pflow and he said that the problems with spawn and velocities might indeed be a bug in pflow. He’ll take a look at it when he has some spare time.

- Jerry

Hey - testing now, this seems to work pretty well - Thank you!

More problems!

I am using cached particles, but different machines seem to render the motion blur differently - the motion jitters. They are motion blurring it differently. Really baffling (and frustrating, as you can imagine!)

Any idea what could be causing this? And more importantly, how do I fix it!

Best,
R.

could this be because they are different types of cpus? Or should they render the same because the particles are cached?

Any ideas? I’ve torn most of my hair out by now. Next I will be gouging out my eyeballs and stuffing them in my ears.

did you ever get a fix for this motion blur problem ??

claude

Yes its working now.

I believe *part* of the problem was to do with how pflow feeds motion vectors to bercon - unless you cache the particles using subframe samples, it doesnt know where to point them, and they end up going random crazy directions. This was one fix of several, and I’m not 100% sure exactly what was going on under the hood, so a lot of this feels like voodoo to me. So in the end, the only real solution was to build a small shrine and to sacrifice several chickens and small children, and dance around on hot coals drenched in their blood, screaming “hail satan!” at the top of my lungs. Then my motion blur issues mysteriously vanished. The only issue now is that I’m probably going to hell. Oh well. At least my renders are working.

R.