Help creating custom icon

15 views
Skip to first unread message

Nikolaos Beratlis

unread,
May 19, 2025, 4:04:44 PMMay 19
to OsmAnd
Hi,

I tried to create a custom icon. I started with a very simple triangle object file as shown below:

mtllib car.mtl
o map_object
v -2.000000 0.100000 -2.000000
v 2.000000 0.100000 -2.000000
v 0.000000 0.100000 2.500000
v -1.000000 0.100000 -1.000000
v 1.000000 0.100000 -1.000000
v 0.000000 0.100000 1.500000
vn 0.0000 1.0000 0.0000
vt 0.000000 0.000000
s 1
usemtl profile_color
f 2/1/1 3/1/1 1/1/1
usemtl bridge
f 5/1/1 6/1/1 4/1/1

I can load the object file in a CAD software.

triangle object render.jpg

I created a plugin to load the object, which I attach at the end of the email. The plugin loads and under Configure profile -> Profile appearance I see an extra icon. When I select it the icon doesn't show up on the map. Instead I only get the location radius as shown below:

OsmAnd Object missing.png

It seems there is an issue reading the object file or rendering it on the map. I also tried following the custom icon example but that doesn't work either. Has anyone successfully created a custom icon? 

Nikos

Object.osf
Reply all
Reply to author
Forward
0 new messages