ingame paint selection
after playing with ambient occlusion textures for a little while i was thinking about ways to do car paint.
cars could be build with a separate body & body_trim meshes.
then the body would just be everything that gets painted. a single ambient occlusion texture would give you a gray car.
iirc opengl draws everything in white by default. so the ambient occlusion texture could be brightness/contrast adjusted till it's white-ish. and then the body can just be drawn with a glcolor3f();
using more advanced opengl than i know might yield a way to lighten the gray texture for a white car (thus preserving precision for more mid range colors).
to start out with the colors could be specified in the .car file for all the stock colors the car comes in (which is much less data being svn'ed around than a unique texture for each paint color).
so basically after you select a car, if that car has a [colors] section you just use the body.png (which is never in use at the moment and could always be a generic gray or white texture)
though you could still select numbered textures (like body 00 for special paint jobs or for racing liveries) , but they wouldn't be color tweak-able.
at some later date a color wheel could be created. but it really sounds difficult to do, menu wise. so it would probably be easiest to do 0-255 rgb sliders if someone wants a custom color.
am i making any sense??
p.s. le is coming very slowly, it's a very curvy car. i need to pour over it's tail-lights and all the vents some more.
|