isathar / Blender_UE4_VectorFieldEditor

Blender addon that adds support for working with 3D vector fields using the FGA file format.
177 stars 39 forks source link

Can't see the field modifications #15

Open otite opened 5 years ago

otite commented 5 years ago

Hi there, I can't see the field being modified by the force fields, when exporting all vectors are zero. But the particles are affected by the forces fields. I have no idea where to look... Sorry if it's not the best place too look for help :)

kkaja123 commented 4 years ago

I'm assuming your issue has to do with the error that is displayed when trying to display the vector lines and exporting the vector field .fga? As a quick-fix, you'll have to edit the files of the plugin. To do so, navigate to the installed location of the plugin.

To fix the display vector command. vf_editor.py; line 477:

        # temploc = volmesh.parent.location  # Broken code.
        temploc = volmesh.location

To fix the .fga export error. vf_io.py; line 120:

      # offsetvect = exportvol.parent.location  # Broken code.
      offsetvect = exportvol.location

@isathar I'm not sure why the volume objects have parent set to NoneType, but getting the location directly from the volume seems to work (at least on my initial attempts, I haven't looked further into this).

Edit: note that in order to see the changes to an addon reflected in Blender, the application must be restarted. After restarting Blender, no further steps need to be taken and you should be able to view the calculated velocities and export the .fga file.