How to reference/use customize icons in omnet++ sim? #1135
Replies: 3 comments 8 replies
-
Usually, the 'images' folder that contains the project specific images are placed in the ROOT of the project folder. You seemingly placed it in |
Beta Was this translation helpful? Give feedback.
-
I like to consider myself a volant computer scientist, so I do not do rabbit holes. :) Yet, if there is a reproduceable isolated test case for setting image path and it using a custom icon during sim, then I can move forward on this. Moreover, all is well. This is a nice to have. As you said, there are a lot of icons -- just not any that represent the roles of nodes in our research. Thank you for trying to help out. Take care, and have a good week sir! |
Beta Was this translation helpful? Give feedback.
-
Good news. I was able to get it to work using this in my code.
Thanks for your pointers @rhornig |
Beta Was this translation helpful? Give feedback.
-
Dear Reader,
Thank you in advance for any guidance/suggestions.
I'm relatively new to veins. I'd like to use custom .png icons for my simulation. I'm able to change the icon by referencing it as such in my Scenario.ned file. But, the icon is missing when the sim runs.
I reference the custom icon as follows:
the file is
/home/veins/src/veins/images/veins/avswu_icons/rsu_l.png
I can see these icons appear when I open the .ned file in eclipse. But, when the simulation runs these icons are not used.
Is there a way to use your own custom icons in omnet++? If so, he would I reference the custom icons for the simulation itself?
I am working in the instant veins virtualbox under debian.
See images below. red arrows show the missing icons.
.ned file shows correct custom icons (green arrows)
Veins sim running with missing icons (red arrows)
Beta Was this translation helpful? Give feedback.
All reactions