![]() |
|
Importing VDB is offset. - Printable Version +- Sitni Sati Forums (https://forum.afterworks.com) +-- Forum: Products (https://forum.afterworks.com/forumdisplay.php?fid=4) +--- Forum: FumeFX [maya] (https://forum.afterworks.com/forumdisplay.php?fid=19) +--- Thread: Importing VDB is offset. (/showthread.php?tid=1748) |
Importing VDB is offset. - keithb - 08-09-2016 Hello.... I'm writing out VDB files from Fume but when I import the VDB back into Maya the VDB is moved to the origin. I have to move the vdb by hand back to its original position it was simmed at. So what I was doing was copying the translate from the original Fume sim onto the VDB. However it still doesnt seem to be in the right place. There is still an offset. Presumably because the bounding boxes are being calculated differently. How can I work out what the correct offset is? Thanks. Re: Importing VDB is offset. - keithb - 08-09-2016 here is a screenshot of what I mean.... picture upload
Re: Importing VDB is offset. - keithb - 08-10-2016 In fact I saw someone had a similar issue with the max version, which was fixed in version 4.0.3, But the Maya version is still version 4.0.1? Re: Importing VDB is offset. - sitnisati - 08-16-2016 Hello, Yes, the FumeFX' VDB grid should be placed manually where you want it to be. If you want it to be at the same place, just copy the Transform Attributes. Regards, Kresimir Tkalcec Re: Importing VDB is offset. - keithb - 08-17-2016 Yes, that was what I was doing... The problem I'm having is that the bounding of the vdb is different to the fumefx grid, applying the transform to the vdb gives me the approximate location, but is still offset, because of the different bounding box sizes. I need to work out what that extra offset would be. Here's what I mean. Is there any formula for working this out? Also the bounding box is going to change size over time. Both are translated 663.558 units in Z
Re: Importing VDB is offset. - keithb - 10-03-2016 I think I found the solution to this... The VDB import puts the pivot at the corner of the bounding box. FumeFX puts it's pivot in the middle at the base. I needed to offset the position of the VDB by half of the FumeFX size, added to any global offset. So if my origioal fume sim is offset in space by say 100 units in XYZ, I offset the VDB by the same and Subtract half the size of the original Fume grid in X and Z ONLY. So in my case my grid is 50x50x50 in size, so I do the global offset to the VDB then subtract 25 in X and Z. The Y aspect is correct so you don't need to compensate. Hope that helps somebody! Re: Importing VDB is offset. - sitnisati - 10-04-2016 Hello, Thank you for the update. I'm sure it will be helpful ! Regards, Kresimir Tkalcec Re: Importing VDB is offset. - skeletalsabaki - 06-06-2017 I'm sorry for such a basic question, but google wasn't much help and there is nothing in Fume documentation: How do you write out Fumefx simulation as .VDB? Re: Importing VDB is offset. - sitnisati - 06-06-2017 Hello, You can select the file type from the FumeFX' file save dialog - similar to other file dialogs in Maya. Regards, Kresimir Tkalcec |