googlevr / seurat-unity-plugin

Seurat is a scene simplification technology designed to process very complex 3D scenes into a representation that renders efficiently on mobile 6DoF VR systems.
MIT License
143 stars 44 forks source link

Importing Seurat Meshes #1

Open Olegjan opened 6 years ago

Olegjan commented 6 years ago

Hi there ! Where I can found Seurat mesh and Seurat shader?

mebalzer commented 6 years ago

I believe you need to create one using the Seurat Pipeline encoder. The shader is in the Unity Seurat plugin folder once you install it.

chengfeng-yeh commented 6 years ago

Hi ! Just want to try to generate the seurat.obj but failed. My steps:

  1. Download this Unity project.
  2. Open the "Seurat" scene.
  3. Import a complex static scene model into the project and put it in the scene.
  4. Select the "Seurat Headbox Capture" in the Hierarchy, setup the output folder on Inspector panel.
  5. Click "Capture" button of the Inspector panel, it starts to Baking.
  6. Check the output folder, there are some .png, .exr. and one manifest.json files, but I cannot find any .obj file.

Could anyone give me instructions? Thank you.

Olegjan commented 6 years ago

Where I can found the Seurat Pipeline encoder?

mebalzer commented 6 years ago

You will need the Seurat pipeline encoder (https://github.com/ddiakopoulos has a binary for Windows and it works great!). He also compiled the viewer (Butterfly) to view the *.ice file as well.

chengfeng-yeh commented 6 years ago

Hi, mebalzer!! Thanks a lot! I downloaded the executable binary to help to generate the PNG and OBJ file smoothly.

tufeixp commented 6 years ago

Is the softserve.exe the pipeline encoder binary tool? With the generated obj,png,ice, any script in unity to play 'em back? Please give some examples for simple loading and play!

chengfeng-yeh commented 6 years ago

Hi, Please try below steps:

  1. Download this Unity project.
  2. Open the "Seurat" scene.
  3. Import a complex static scene model into the project and put it in the scene.
  4. Select the "Seurat Headbox Capture" in the Hierarchy, setup the output folder on Inspector panel.
  5. Click "Capture" button of the Inspector panel, it starts to Baking. (Generate .png, .exr, and a JSON file)
  6. Build Seurat binary, if you are lazy to build it, please download it from https://github.com/ddiakopoulos/seurat/releases
  7. Execute the binary, eg: C:\seurat-compiled-msvc2017-x64.exe -input_path C:\SeuratRawData\xxx.json -output_path C:\SeuratResult\abc
  8. Wait a while, it will generate some files in C:\SeuratResult\, we need "abc.obj" and "abc.png"
  9. Copy the obj, png, and the shader files in this project to your project, import the obj file.
  10. Use the shader on the model, and apply the texture to the material, remember to change the texture's settings, no need mipmap, use clamp, and notice the size.

Good luck.

Cucurbit1988 commented 5 years ago

Hello, did not understand how to generate "abc.obj" and "abc.png". I use the downloaded "abc.obj" and "abc.png".The Assets cannot be seen by importing them.

vmattc commented 5 years ago

I created an indepth guide for using Google Seurat with Unity...

https://octo.vmware.com/immersive-training-environments-virtual-reality-using-google-seurat-part-1/ https://octo.vmware.com/immersive-training-environments-virtual-reality-using-google-seurat-part-2/