googlevr / tilt-brush-toolkit

Scripts and assets that help you use Tilt Brush data in your creative projects.
Apache License 2.0
737 stars 164 forks source link

Missing uv-attributes from the FBX export ? #17

Closed Samsy closed 6 years ago

Samsy commented 6 years ago

Hello there ! Some brushes need more than 2 component of some UV channels ( like the electricity one's ) Is there any way to deal with that without going by the JSON export ? Found out FBX dont export more than 2 component of UV per channel.

dubois commented 6 years ago

Hi, Samsy. Sorry for the delay; I didn't see this question earlier.

To answer your question:

Is there any way to deal with that without going by the JSON export ?

The normal process for using the toolkit is:

  1. Import the toolkit .unitypackage into your project
  2. Export a .fbx from Tilt Brush
  3. Drop the .fbx into your project's Assets/ folder. (The .png files are not needed)

You're correct that FBX only allows 2-component TEXCOORDs, and also that our shaders require 3- and 4-component TEXCOORDs, but you don't need to worry about that. Part of the reason the Toolkit exists is to work around limitations of the .fbx file format.

If you're interested in the details of how we implement that workaround, see TiltBrushToolkit.ModelImportSettings.CollapseUvs() . But again, you don't need to know any of this in order to use the toolkit.

dubois commented 6 years ago

Closing -- but if you are still having troubles getting the toolkit to work, please reopen and give details.

mahe373662858 commented 5 years ago

Hi, Dubois .May I ask you a question. Using code to dynamically load FBX exported by Tilt Brush in Unity. FBX can be loaded into a project project project, but tilt brush sdk's code will report errors (single configuration error and Null Reference Exception: Object reference not set to an instance of an object), and the material will not be modified,It's a white model.

dubois commented 5 years ago

Hi, @mahe373662858. Please use the issue https://github.com/googlevr/tilt-brush-toolkit/issues/35 that you opened.