2D foreground and 3D model combined production
Meishe special effects creation tool
1.0 version
Beijing Meishe Network Technology Co., Ltd.
table of Contents
2D foreground and 3D model combined production case... 3
2. Foreground filter production... 3
Step 1: Add input source track... 3
The third step: caf setting... 4
3. Unity exports 3D model face stickers... 5
The second step, 3D model material import... 6
The fourth step, shading model settings... 6
The fifth step, material attribute setting... 7
The sixth step, export the Scene Package. 8
4. Combine the 2D foreground with the 3D model... 8
Step 3: Setting the uuid field... 9
The fourth step: effect2D label setting... 9
5. Generate arscene file... 10
Step 1: Generate compressed folder... 10
Step 2: Modify the info.json file... 10
The third step, ID setting... 10
The fourth step, export the arscene package... 11
2D foreground and 3D model combined production case
Case introduction: halo foreground, helmet model, making interactive face stickers effect.
Preview through the arscene file in the material package.
1. Creative ideas
A. Make the foreground effect through the Meishe special effects tool.
B. Extract the foreground script and place it in the arscene folder.
C. Modify the "arscene9v16.xml" script.
D. Generate an arscene file.
2. Foreground filter production
Step 1: Add input source track
A. Choose 9v16 format.
B. Add [input source track] to replace the video analog input source
Step 2: Import material
Import the caf foreground material, adjust the size and position.
Reference for caf production method: "CAF Introduction and Tool Manual".
The third step: caf settings
Make the following settings as needed.
Overlay mode: screen (filter color), loop mode: repeat.
The fourth step, export
Select [Album Mode], name and export.
3. Unity exports 3D model face stickers
The first step: open unity
A. Open unity;
B. Load the Meishe unity plug-in;
C. Create a new [3D file].
The second step, 3D model material import
Import the 3D model material into the 3D folder of the project file and put it into the scene.
The third step, add FBX
Add a simulated head mask FBX, put the FBX on the helmet, and change the mask transparency to 0.
The fourth step, shading model settings
Select the FBX of the helmet, and change the Shading Mode to [Standard Shading] mode.
The fifth step, material attribute setting
Step 6: Export Scene Package
4. Combine 2D foreground with 3D model
Step 1: Get the file
Unzip the album compressed package.
Step 2: File Copy
The foreground clip album folder and "fx9v16.xml" file , copied to the unity exported 3D model folder.
The 3D model folder will be used in the future, and the album folder will no longer be used.
The third step: uuid field setting
Open the "fx9v16.xml" file;
Delete the "uuid=" field.
The fourth step: effect2D label setting
Open the "arscene9v16.xml" file;
Add the "<effect2D source="fx9v16.xml"/>" field.
5. Generate arscene file
Step 1: Generate a compressed folder
Compress the unity folder into a zip, and add the suffix ".1" to the name of the compressed package.
note |
Add a suffix to the compressed package. Adding a suffix to the folder will cause the ARScene file to fail to read |
Step 2 : modify the info.json file
To modify the ARScene effect, open the "info.json" file.
After the modification, the value of version is +1, and the suffix of the compressed package is also +1.
The third step, ID setting
If you change the ID:
A. Double-click [UUIDFactory.exe];
B. Choose [Without braces];
C. Click [Generate];
D. Generate a random ID, click [Copy] to copy this ID;
E. Replace uuid in the info file.
The fourth step is to export the arscene package
A. Put the compressed package into the following directory, under the "arscene" folder in the "SDK conversion tool PackageTools";
B. Double-click "arscene.bat" or "arscene.bat-shortcut" to generate an arscene file.