Game Development Community

Model Painter

by Mike Berg · in Torque Game Engine · 11/19/2004 (5:50 am) · 2 replies

I'm wondering if it's possible to have an in-game "model painter" that lets the player chose a 'base' color for pre-defined polys on a model. (anyone seen the Dawn of War model painter?)

Basically i want to have partially transparent bitmap textures that will allow this base color to show through, so users can customize their models.

Anyone know if this is possible, or how to go about thinking about this?

Thanks,
-Mike

#1
11/19/2004 (6:18 am)
If I understand what you're saying, you're talking about "tinting" the textures of models with a particular color that the player chooses? I think that that's easily enough done by doing a color blend between that color and the texture, then setting the model's texture to the result. Look at the DGL stuff, there should be some image operation functions to help you out there, and if not, then you can easily find functions for color interpolation on the web.
#2
11/19/2004 (6:37 am)
Actually, I meant something a little different. I don't want to tint the texture at all, i want the texture to have transparency, and allow the user to change the color of the polygons underneath it.

For example, here's a transparent texture.

And here's the final result after the user has chosen a beige color as an "underlay".

This was just mocked up quickly on photoshop to demonstrate.