-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How did you added your own asset to the Carla ? #20
Comments
We created a dynamic mesh asset that was burned into the compiled binaries. Then, the CARLA plugin was modified to allow us to spawn PNG images (map tiles) as instances of these dynamic mesh assets, by displaying the images on the surface of the tiles. |
SO you write the c++ code and compiled while build ? |
Yes -- we modified CARLA's plugin in UE to include the meshes. You may refer to the source code here. |
So if you modified the CARLA plugin from UE, why we still need to do this ? I mean copy from your CustomAssets folder to the carla after build ? Copy <summit_root>/CustomAssets/M_Tile.uasset to <summit_root>/Unreal/CarlaUE4/Content/Carla/Static/GenericMaterials/Ground/M_Tile.uasset |
The file defines the dynamic mesh tile asset, which the plugin creates instances of. Thus, both need to be present. |
Well...is nativising the blueprint works ? I mean nativize my blueprint and build the simulator without copying .uasset file ? |
The compiled simulator can't load anything that it does not have access to when it was compiled. Hence, if you exclude a blueprint and compile, you will not be able to use it in the simulator. |
@LeeYiyuan So if i need to include a blueprint from unreal engine to the Summit(CARLA), you have to write it in c++ and compile while building, is that right ? |
You will have to, depending on how you intend to access your blueprint, do the following:
Steps 1, 2, 3 require rebuilding the plugin and subsequently the compiled binaries. Step 4 requires rebuilding the C++ LibCarla library. Step 5 requires rebuilding the Python bindings. |
@LeeYiyuan For the step 2, you mean i have to replace |
That's the general idea, but the exact requirements depends on what kind of blueprint you are using. We are using a |
Thanks for the information. In my case the blueprint contains procedural mesh and i think it is different to summit case. Also the DynamicMeshActor.cpp is created entirely in unreal ? I didnot see any carla headers in that, is that the case ? |
The |
I already have my blueprints (c++ and .h files) ready. So i guess when i follow your steps mentioned above, i can able to access the blueprint in carla as other build in carla contents, right ? |
Yup, in that case you will need steps 3, 4, 5 depending on where you want to access the blueprint from. |
Thanks for the clarification. I want blueprint to be in the content folder. when i check the summit, i can see that the assets are put in different folders like Genericmaterials, testmaps etc. SO after build we can access the custom assets from this folder, right? Also i can simply create a folder in |
That's right |
Hallo, Just for clarification. If we build the c++ prgm for the blueprint while building, do we still need the .uasset file for that blueprint ? or the c++ file will act as a .uasset after building ? |
I have a doubt regarding the addition of your own asset. Did you edited the carla source or added your own asset to it so that it appears after build ?
The text was updated successfully, but these errors were encountered: