Hi everyone,
I'm writing because I'm stuck in this problem for a while and I ran out of ideas.
I am trying to change the image of vehicles in the GUI and I'm using the "imgFile" attribute. In particular, I do something like this:
<vType id="Car1" accel="5.0" decel="1.0" imgFile="car1.png" maxSpeed="100.0" color="255,255,255" />
<vehicle depart="0" id="veh1" route="1" type="Car1" />
The GUI recognizes the file and load the image without problem. The problem is that the rendered image is very small and that it is not where it should be. I attached some pictures to explain better.
In file snap1, you can see how SUMO renders the image, while in snap2 where the rendered image should be. I also attach the file car1.png.
I tried every file extension possible (.gif, .xmp, .jpg, .bmp etc), I tried to change dimensions, I tried changing vType attributes and I always have the problem that the image is rendered too far ahead with respect to where the vehicle is.
Does anyone have any idea on that?
SUMO version: 1.2.0
OS: Ubuntu 18.04
Thank you very much in advance,
Marco
--
Marco MalinvernoPh.D Student
Politecnico di Torino
Department of Electronics and Telecommunications
C.so Duca degli Abruzzi 24
10129 Torino - Italy
Ph. +39 011 090 4108
_______________________________________________