LC #42 Pipers Alley

View Full Version : Reading & writing FluidnCache(*.mc)

02-28-2011, 04:25 PM
Anybody know how to read & write *.mc (binary file)? We have Document only for XML description file but where is the document for *.mc file? want to Parse *.txt to FluidnCache using c++.Sorry for repeating same topic,i think actual answer is not available in old post.Thank you

02-28-2011, 05:59 PM
have a look here

03-01-2011, 02:15 AM
Now this job(*.py to *.cpp),will be headache for me.Anyway Thanx

03-01-2011, 03:24 AM
I've got a python module to read/write nCache which is part of nCache2BIN ( . But it's not free. See if you're interested.

03-01-2011, 05:07 AM
Thank you but I am doing all this stuff to improve my programming skills,so can't use ready made code.

I am trying to import fumefx simulation in maya,Right now i made this Plan.

FumeFx => Text => Maya Fluid

FumeFx => Text

This part is very simple to handle,Using below Expression we can bake data in text file.
smoke = GetSmoke i j k
velocity = GetVel i j k
temperature = GetTemp i j k
Here is sample of text file:MyFume.001f.txt (

03-01-2011, 07:16 AM
You seem to fall into the usual trap that many people do: query particles one by one and it takes hours to finish. There're a lot of free scripts running in RealFlow to import Maya particles and they're practically unusable because of this. If the file format of FumeFX cache is known, you'd better convert it directly. If not, try to reverse-engineer it.

03-01-2011, 08:42 AM
you also might wanna look into using field3d ( for this. it seems to be a nice format for storing volume data...
i should add that i'm totally useless when it comes to the c++ side of this :) . but using field3d in production made sense and worked pretty well.


03-01-2011, 11:31 AM
@Jimmy Chow
You are absolutely right,my first plan was direct conversion of *.fxd to *.mc.But FumeFx format is also unreadable for me.

Field3D is looking great,i think it can help for volumetric rendering purpose also.

CGTalk Moderation
03-01-2011, 11:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.