How to add png file as a logo to a mesh which is of the type - stl. The model file is of the form .sdf.jinja

asked 2021-05-03 13:25:16 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have been trying to add image file to a mesh which is a stl file by using the following commands : <script> <name>Logo/GTX</name> <uri>model://gtx_cupcar/materials/scripts/logo.material</uri> <uri>model://gtx_cupcar/materials/logo/gtx.png</uri> </script> in my sdf code. Using this code and making logo.material file like: material Logo/GTX { technique { pass { texture_unit { texture gtx.png scale 150.0 1.0 } } } } But from above steps, I am not getting the desired results. No logo is being added on the model. Please guide us on what changes can be made in my .sdf.jinja file to load the image on the mesh file. The config file is given below - <model> <name>GTX Cup Car</name> <version>1.0</version> <sdf version="1.5">gtx_cupcar.sdf</sdf> <author> <name>Benjamin Perseghetti</name> <email>> </author> <description>A model of the GTX Cup Car.</description> </model>

edit retag flag offensive close merge delete