You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works great, but the problem is that is break backward compatibility, because there is a shift in "Array" due to the new size of Rot variable (float => float30), so "Count" in old files with Cloud2 is set to 0...
I thought to add the 2 new floats at end of array to keep actual structure order and avoid shift data but it's not very sexy because on parameters line you have "Count" between Rotations, like this => Rot(y) - Count - Rot(x) - Rot(z)...
I don't know how to do keep compatibility and have a clean parameter line. Do you have an idea ?
At worst I can correct example.wz4 to fix all Cloud2...
Thanks
The text was updated successfully, but these errors were encountered:
You can't change the ordering, it'll break file format compatibility with existing Wz4 files, including the source wz4 files for several FR demos that we plan to make available.
There's ways to reorder parameters outside of arrays, but I'm not sure if you can use that in this case - Chaos would need to answer that.
Hi
I was looking to add some new parameters for cloud2 - x and z rotation, because actual rotation is only on y axe.
The fix is pretty simple :
in fxparticle_ops.ops - operator Wz4Particles Cloud2() :
and in fxparticle.cpp - void RPCloud2::Init(Wz4ParticlesArrayCloud2 *Array,sInt ArrayCount)
It works great, but the problem is that is break backward compatibility, because there is a shift in "Array" due to the new size of Rot variable (float => float30), so "Count" in old files with Cloud2 is set to 0...
I thought to add the 2 new floats at end of array to keep actual structure order and avoid shift data but it's not very sexy because on parameters line you have "Count" between Rotations, like this => Rot(y) - Count - Rot(x) - Rot(z)...
I don't know how to do keep compatibility and have a clean parameter line. Do you have an idea ?
At worst I can correct example.wz4 to fix all Cloud2...
Thanks
The text was updated successfully, but these errors were encountered: