10-19-2009, 08:30 PM,
|
|
Shiny roads
Most modern racing sims allow environment other than cars to be shiny, especially roads. I believe vdrift would look awesome with some sharp specular maps for the roadways, reflecting sun lightning as you drive.
I like the way this is done in Racer, which has some pretty looking light-reflecting roads. I can try photoshopping specular maps for the current road textures if a specular rendering system for the world can be implemented.
|
|
10-20-2009, 10:52 AM,
|
|
Thank you I tried experimenting with this and it does seem to work. I came across a very weird issue however: It seems that the same texture only displays its reflection in certain areas, while in some parts the specular map does not apply.
This is a screenshot of the problem during one of my tests. The whole road uses the same texture, but the reflection only works starting from a certain point. Does anyone know why this issue is happening and how it can be fixed?
Anyway, here's some screenshots of reflective roads from the short area they display in. I think it looks good
|
|
10-21-2009, 11:25 AM,
|
|
joevenzon Wrote:The only thing I can think of is make sure you're either painting red or black, because the green channel is used to set how metallic the object is.
I don't think it's that, I experimented with different colors but that doesn't change where the specular map is applied. And I am painting red with black, the reflections show correctly in the area where they do work.
If anyone wants to reproduce this issue, go to data\tracks\bahrain\objects and copy roada.dds to roada.dds-misc1. Color the new texture with red and black and start a practice race in bahrain. There's no reflection on the road at the beginning of the track, but if you drive to the second big turn you'll find the only area where the specular map shows, although the whole road uses the same texture.
|
|
10-27-2009, 11:21 PM,
|
|
joevenzon Wrote:Are you sure about that? It looks to me like there are a couple of (very similar) road textures: roada.dds.png and roadd.dds.png
Yes, I have experimented with those but roada.dds is the whole road. If you rename that single texture to anything else, the entire road disappears in-game.
|
|
10-30-2009, 11:22 AM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
i tried to use the specular maps that came with the original rFactor version of the interlagos track and the results were a bit underwhelming: http://caliban.lbl.gov/vdrift/interlagos-specular.jpg. the specular map i used can be found at http://caliban.lbl.gov/vdrift/rroad.dds-misc1.png (and then i copied this texture for the different road textures used). i guess we process specular maps differently than rFactor does. it would be nice to figure out how to transform an rFactor specular map to vdrift or maybe do it the same way in vdrift.
the other thing is a lot of different textures use the same specular map, so in the long term it would make sense to probably extend surfaces.txt to add support for specular maps as well so we can map the texture to the specular map instead of having multiple copies of the same texture under different names.
rFactor also has support for bumpmaps, not sure if vdrift does.
--alex--
|
|
11-04-2009, 09:10 PM,
|
|
joevenzon Wrote:Turns out it was a stupid error in my code that was assigning the misc1 textures to track objects. Fixed in R2549.
That's great I can't compile SVN right now so I'll make shiny textures for all roads when the next version is released.
|
|
02-01-2010, 09:52 PM,
|
|
*bump* I found a nightly build made after the specular map issue, so I could do the shiny maps for all official tracks today. I added discrete reflections for all roads and strong reflections for building windows as well as water (see the water in Monaco).
I posted some screenshots in my gallery: http://vdrift.net/Gallery/album.php?aid=76 Note that the first three pictures were taken while editing, the road isn't that shiny anymore (it looks like the other screenshots now). The patch can be downloaded from here: http://www.mediafire.com/?ijyz4xnznkg alt link http://upload.ps/oyuna4d9ujl1/vdrift_tra...ons.7z.htm Imo it should be good, if this change is alright and wanted.
In case anyone wishes to make specular maps for other textures and follow the same steps, this is how I obtained mine using Photoshop CS2:
1 - Copy the texture and rename it to filename-misc1.png.
2 - In Photoshop go to Image -> Adjustments and Desaturate the image. Occasionally you may want to invert the colors as well, depending on what area you want to have more reflective.
3 - Go to Adjustments -> Brightness/Contrast to adjust the strength of the reflection. Generally, setting the contrast high will make it more grainy. For the road textures I usually put -50 Brightness with +25 Contrast.
4 - Go to Hue/Saturation, enable the Colorize checkbox and set Hue to 0, Saturation to 100 and Lightness to -50. This will make it red like specular maps for vdrift are supposed to be.
Hope this is good and can be committed... let me know what you think please
|
|
02-01-2010, 10:53 PM,
|
|
portets
Member
|
Posts: 152
Threads: 12
Joined: Apr 2009
|
|
i didn't know vdrift had this feature..
cool!
but your link to your photo gallery doesn't work. and i couldn't find it manually either :?
downloading the patch now though to see for myself.
|
|
02-01-2010, 11:21 PM,
|
|
portets
Member
|
Posts: 152
Threads: 12
Joined: Apr 2009
|
|
okay, so far only tested monaco and rouen.
the only reflection i see on monaco is the water. and it's a bit too reflective. in fact, the water is completely white for me. except for a large circle with no reflection.
on rouen i just see the road reflection, and it only reflects in a few spots.
but those spots look good :wink:
|
|
|