The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Full car coloring with skins - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (https://www.vdrift.net/Forum/forumdisplay.php?fid=6)
+--- Thread: Full car coloring with skins (/showthread.php?tid=1277)

Pages: 1 2


Full car coloring with skins - MirceaKitsune - 04-23-2010

This is another thought I've been having for a while. I was thinking about a better system for coloring and skinning cars, which imo would be a nice feature too.

At the current time, each car has a number of skins you can choose one from, which is the only texture applied to the car by default. I was thinking about changing that a little, into an dynamically colored map which the skin is then applied onto.

In other words, each car would use a grayscale image for the initial body, which is colored dynamically. I was thinking of a color chooser in the menu for that. Then over it, you can choose a skin like you do currently to apply text and designs over cars, as well as the non-colorable parts like tail-lights (each skin would need alpha channels of course).

The purpose would be to allow coloring cars in any color, while still allowing detailed skinning otherwise. Here are some pictures showing what I mean better (second screenshot is a mockup):

[Image: newskinchooseridea.png]

[Image: newskinchooseridea2.png]


- NaN - 04-23-2010

I see two options:
1. Pass base, skin texture + color to the shader and render the car.
2. Bake skin texture, color into the base map after the color/skin selection.

Both shouldn't be a big deal to implement. But who is going to update/create the skins?


- MirceaKitsune - 04-23-2010

I can do the skins for some cars for now. There are many of them in SVN, so there would be a lot of work overall.

The good side is that compatibility is kept with older skins, the way I see this. If we don't update the skins for some cars, the new color chooser would just not work for them, but the current skins would be applied like before. So we can do a few skins now so the new system works somewhere, and slowly convert more of the cars in time, if that would be alright and agreed on.

If so, how many cars would need new skins for a start? And how should I try to make the new skins (like how do I name the new color map, and do I make it a tga with alpha channel or a png with transparency)?


- NaN - 04-23-2010

I think I should implement a color picker widget first. Then we'll see.


- MirceaKitsune - 04-23-2010

Ok. If it's of any help, I did the skins for the 360 so it can be tested with this car for now (transparent png's). Included 2 skins apart from the coloring. Here it is: http://www.mediafire.com/?gzzkmqteugm

As for the widget, that would be a part of it. Just an idea... until that is ready the menu could go with 3 little fields for manually writing the RGB values, if the widget would take a longer while.


- portets - 04-24-2010

i could also help convert some car skins if this idea goes through.

i think it's a good idea


- NaN - 04-25-2010

Hi guys,

there might be a small delay as have to change the way the textures are dealt with. Each car loads its texture. We should use a texture library here like we do for the track objects.

Here is a non-functional gui prototype. I am abusing the slider widget here. :lol:
[Image: skinq7c7t.jpg]


- MirceaKitsune - 04-26-2010

Looks very nice NaN Big Grin Can't wait.

Also, I can start working on the skins in the meantime, to help do this faster. I just need to know if I should use png with transparency or tga with alpha mask. Transparent png's already seem to work and are commonly used, so I guess I should go for that?


- joevenzon - 04-26-2010

MirceaKitsune Wrote:Transparent png's already seem to work and are commonly used, so I guess I should go for that?

Yep!


- MirceaKitsune - 04-27-2010

Ok, I finished the new skins for all cars. It was a bit of work but they're all done Smile Color uses a grayscale PNG and the skins a transparent PNG, generally containing what must remain non-colored like headlights / taillights.

This will probably be done either way but just in case: The coloring of the new color map should not change its brightness, because parts that are black need to remain black. It only needs to recolor it, so that pure white becomes the color you choose and pure black always remains pure black.

Hope the code implementation will be ready too so this can be added... can't wait Smile Download links for the skins:

Link 1: http://www.mediafire.com/?tqnnqjmnoj1
Link 2: http://www.filedropper.com/vdriftcarcolorskinsv10


- NaN - 04-27-2010

MirceaKitsune you are too fast for me.

Hear this! http://www.youtube.com/watch?v=Q3ctM5o8pJs Big Grin


- MirceaKitsune - 04-27-2010

Hehe nice song :lol: Yeah, Photoshop helped me finish them quicker than I thought.


- MirceaKitsune - 04-27-2010

V1.1 - Fix a minor issue with one of the skins. New links:

Link 1: http://upload.ps/o1zjp8lveukl/VDrift_car_color_skins_v1.1.zip.htm
Link 2: http://www.mediafire.com/?fjrw0m2ytyv


- NaN - 05-09-2010

MirceaKitsune, We've Got a Problem!

I've got the color blending code running. But the results are wrong. I am using multiplicative blend to colorize the color.png. How did you create it? By converting to grayscale?

Original:
[Image: body007s18j.jpg]

color.png multiplicative blend with the yellow color of the original:
[Image: colortcyz8.jpg]

Lab colorspace Lightness channel multiplicative blend with original yellow:
[Image: body00-LAB800t.jpg]

The Lab lightness comes qute close to the original value but is still off a bit.

Any color space experts out there?


- NaN - 05-09-2010

Lab colorspace Lightness + white balance produces the correct color but introduces ugly artifacts:
[Image: body00-LABme84.jpg]