I've spent some time trying this tonight.I took the basic twizy image, magic wand selected the paint colour part of the vehicle, then cut and paste that as a new layer. I then converted the paint colour layer to grayscale.Next, using the colorise filter, applied to the grayscale paint layer, I tried colouring it with a colour wheel. It worked beautifully. I could generate all the possible colours, and the paint highlights and shadows looked really good.I'll now see if I can do this programatically in iOS. If I can, we can dramatically reduce the amount of artwork required for each vehicle. Just a couple of base image layers and a 4-byte ARGB code for each standard vehicle (plus a colour wheel for users to choose their own custom colour).Proof of concept - some colour suggestions for Renault:Base grayscale layer:+
=
Colorised:
Hi Mark,
Regarding vehicle images - how were you thinking of handling them in the long term? Is there any way a vector format could be used (svg etc)? I'm guessing your going to do something like a masking image with a transparent silhouette on a given coloured background, then overlayed with a semi transparent detail layer? A stack of PNGs would do the trick.
I'm also interested if the car configuration (including images), supported features etc could be expressed in a bundle of configuration files rather than code/static resources?
Chris
Can you hold a few weeks for this? I am working on the Apps to re-work how we do the vehicle images. They are just too large (13MB+ already!), so I am working on a better way of handling the multiple colours and making it easier to add them to the Apps. Once I have this working, I'll let you know what format we need the images in.
Regards, Mark.
_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev