Model replacement
Last updated
Last updated
Note: This document is applicable to RAVVAR platform, https://www.ravvar.cn
When using the platform, the model material supports uploading FBX/OBJ models. These models will be automatically processed into an intermediate format by the server before they are finally displayed on the APP side. Because the server automatically processes them, some special effects cannot be achieved, such as To set the material of the model, especially the PBR material.
Please refer to the detailed tutorial: https://github.com/yangfawen/AssetBuildTool-RAVVAR/blob/master/README.md
1.Upload a model of your choice first, preferably fbx
Please note that you must compress the model file and the texture file together into a zip file, and do not compress it with third-party compression software such as fast compression!
2. Click on my material to upload the model
Click "My Material-Add Material-Model-Upload Model"
When uploading, you can also add a thumbnail of the model and modify the model name.
After the accuracy bar is completed, click "Upload and Save". If the model meets the specifications, the upload will be completed, otherwise the corresponding prompt will pop up!
When these prompts appear, you need to modify them in Maya or 3dmax or blender! For model making specifications, please refer to the link: https://www.yuque.com/kivicube/manual/specification
3. Add to scene
After uploading the model, you need to add the model to the scene. But at this time the state of the model is like this:
After each user uploads the model, the server will automatically convert the model into a model in the format supported by the platform. The current platform supports HoloLens, arkit, Android, iOS, webar, etc., so all model files will be automatically converted into at least 6 different models at the same time Resource pack for the corresponding system to load and use it! Especially in the case of a large number of platform users, the server has to queue up resources, so users may wait for a while!
4. Browse through the editor and APP. If the desired effect is not achieved, it is recommended to use the advanced model replacement function.
The "Replace Model" function is a function button that will appear on each model, and the replaced model will not undergo automatic conversion processing! Therefore, the user can perform the conversion process manually. In this process, unity can be used to adjust special effects of the adjusted model, and unity particle effects and programming api are also supported.
Here you can download the export tool first, and then follow us step by step:
Export tool download: link: https://pan.baidu.com/s/1ymrEAdXoJHu3bOwmJ5WJ2g Extraction code: ntmr
5. The way to modify the model supports adjustment and export in Unity3D
Import its corresponding FBX model into Unity3D 5.5 version series and import our plug-in.
(Please use genuine unity, purchase address: https://store.unity.com/?_ga=2.184496422.107051080.1550554526-477379978.1526822918)
The position and rotation of the parent node of the model need to be reset. Otherwise, the center point of the model will shift. At this time, also observe the coordinate center. If it is not in the center of the model, you need to adjust the position of the center point of the model in the modeling software!
6. After adjusting in Unity, export the resources.
Be sure to create a prefab first, then select it, and click UnityExport in this state.
7. Replace model resources
The exported model is automatically a zip containing the corresponding unity resources
Find the corresponding model in my material, put the mouse on it and click "Replace Model"
After clicking as shown in the figure, you need to drag in the resource file to be replaced
Then the user creates a scene and adds the corresponding model to the scene.
8. Model import and experience
The imported replacement model needs to be viewed on Android and iOS to see it! What you see on the editor is the automatically converted model. If you want to change the model effect on the editor, you need to see the following WebAR user model replacement tutorial.
In one sentence, just replace the corresponding WebAR model resource! The replacement entrance is also at that location!
In order to avoid CDN caching problems, it is best to enter the APP to view the model effect after replacing the model.
To replace the model again, you need to check it after clearing the cache in the APP to avoid local cache problems! Because the replaced model is not in the state of the updated version in the model state!
The size and position of the model here are consistent with the model after unity replacement! But if you modify the zoom parameters of the replaced model, it will not be consistent! It is recommended not to adjust.
You can use the corresponding APP-AR to scan the following QR code to experience:
The AR effect is as follows:
9. This mode can also support unity particle effects and script programming!
We will introduce specific particle effects tutorials and unity programming tutorials in detail later, so stay tuned.
Export tool download:
Link: https://pan.baidu.com/s/1ymrEAdXoJHu3bOwmJ5WJ2g Extraction code: ntmr