blackears / godot_volume_layers

A shader for displaying 3D volumetric data.
MIT License
6 stars 1 forks source link

Binary data file as input #3

Open kimjohn1 opened 6 days ago

kimjohn1 commented 6 days ago

Love this Godot add-on. I'm working on a project to render visuals from data produced by physics simulation. The data of interest right now is scalar field data, output as a binary file. The files produced by the type of simulation I am running can be quite large, but I am using GPU accelerated laptop and PC computers rather than supercomputers, so I tailor the simulation accordingly, and the output files are up to around 500 MB in size. Your ReadMe text describes creating a packed file of .png images for input. Is that the only option for input? The Online Converter website that you mention limits the input file to less than 200 MB, so I may be out of luck there. Are there other converter applications, or could I format the output myself to make if readable by your add-on? Keep up the good work! Thanks, Kim

blackears commented 5 days ago

I used the converter because it seemed to be the easiest way to convert MRI scan data into something Godot could process. If you're a programmer, you could dump the vector data into your own file format and then write a custom loader for that format in the addon. I've not touched it in a while, but if I recall correctly it can use any Texture3D as data, so if you write your own class which extends Texture3D, it should be able to use that.

kimjohn1 commented 5 days ago

Thank you for responding. This is just what I need to know. I'm not a programmer myself, but I have had assistance from a number of very skilled programmers from time to time during the course of this project. You suggest that I might save my simulation output in a custom file format and then modify Godot to be able to input that file format. Well, could I just save the output in a file format that is already able to be input to Godot? If so, can you recommend a format that would be appropriate for me to use? I see ImageTexture3D in the VolumeLayers texture dropdown menu. Would that work? Thanks again for your help here. I believe we are almost done. Kim