03-17-2011, 02:52 AM,
|
|
zimluura
Senior Member
![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 286
Threads: 22
Joined: Oct 2007
|
|
so that users can select a paint style (gloss,metallic,pearl) from within the game instead of having to make their own texture in gimp.
right now, if you want to paint your car gloss black you're mostly out of luck. you'll have to go into gimp to drop the alpha value of the misc1 texture.
might be able to do it by using the alpha mask from body00.png (in which all alpha areas are body-paint), and only applying a specular alpha value (predetermined 25% for gloss, 100% for metallic, 100% with varying rgb values for pearlcoat) to those areas. don't know how hard that would be to do though.
--
i think allot about the most desirable standards for car layout because... something i've been pondering for a long time is going through each car mesh and updating it to be more modular... maybe increasing the poly count a bit. maybe just a bare-bones interior, maybe rounding off curves and fixing proportions, maybe updating each model to have parts that break off. it would be mountains of work. but mindless batch operations go quicker for me than ones where i have to think seriously about design or try to replicate something from reality. but then, i'm not even 100% sure it would be ok license-wise to do so.
|
|
03-17-2011, 05:04 PM,
|
|
zimluura
Senior Member
![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 286
Threads: 22
Joined: Oct 2007
|
|
joevenzon Wrote:We already have the ability to select from a set body textures, why not just add the ability to select from a set of specular textures? The car author could make paints of different glossiness available as different specular maps.
that is do-able, but if the game is built to offer predefined specular levels in the interface (near the paint selection), you get 2 benefits:
1. a player can get any desired solid color paint job without touching gimp
2. car builders have fewer textures to make.
the downside is that it's more work for programmers, but that work can be done once, instead of once for each vehicle. and the texture count of each vehicle won't go up so there will be less data being downloaded.
various specular levels could be done as shared textures in the data dir, or generated by hand in ram. can ogl handle a 1x1rgba texture?
in theory, artists have less control. but players have more control. i also think, in practice, we'll see 40% of people doing gloss, 40% doing metallic, and the other 20% will be split between matte, flip/flops, and pearl-coats.
|
|
03-18-2011, 10:17 PM,
|
|
joevenzon
Administrator
![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
I'm going to back track here and tell you stuff you already know for a moment, bear with me. The specular map lets you define specular color (technically, the fresnel coefficients at zero degrees) in RGB and shininess (technically a microscale roughness term) in A. For car paint you're going to pretty much always want a white specular color (depending on the paint) no matter what the diffuse color is. Different types of paint could use different shininess values, though, like you mentioned for glossy versus more matte. Different parts of the car get mapped to different parts of the diffuse and specular textures. The diffuse texture (for cars) has diffuse color in RGB and a "this is car paint" mask in the A. The shader takes the selected paint color and applies it to the areas marked as car paint in the diffuse texture to get the final diffuse color. Breaking up the mesh isn't necessary to get different graphical effects because everything reads out of a texture and it gets put through the same shader regardless. Parts of the car that have a different material (think underbody, chrome exhaust, vinyl graphics, etc) will need to have different shininess values from the rest of the car. If we wanted to do something similar to the paint selection (although we could limit the choices if desired) but for shininess, we could do that by re-using the car-paint mask from the diffuse alpha channel to determine which areas to use a specified specular shininess value. That way you wouldn't have to make more than one specular map if you didn't want to.
|
|
03-19-2011, 03:20 AM,
|
|
zimluura
Senior Member
![*](images/star.png) ![*](images/star.png) ![*](images/star.png) ![*](images/star.png)
|
Posts: 286
Threads: 22
Joined: Oct 2007
|
|
joevenzon Wrote:...we could do that by re-using the car-paint mask from the diffuse alpha channel to determine which areas to use a specified specular shininess value. That way you wouldn't have to make more than one specular map if you didn't want to.
if i understand correctly, i was saying something similar with: "might be able to do it by using the alpha mask from body00.png"
so long as that's an approach that you like. would it allow a 2nd specular color picker for chameleon paints?
|
|
|