Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Light from Car Headlight don't cast shadow!


ukdhuri
 Share

Recommended Posts

Uh,so dynamic shadows don't work unless Shadow quality is set to Veryhigh,and when it does,it shows for everything except the character...guess we'll just have to wait for R* to fix it.

Edited by _MK_
Link to comment
Share on other sites

Insincere,

In GTA IV your character could stand in headlights of a car on the road and cast dynamic shadow. In other words, all dynamic shadows were in place. For all that glorious visual effects in GTA V standing in headlights without shadow looks very unnatural and disappointing. imho.

Link to comment
Share on other sites

CarnageRacing00

 

 

Insincere,

In GTA IV your character could stand in headlights of a car on the road and cast dynamic shadow. In other words, all dynamic shadows were in place. For all that glorious visual effects in GTA V standing in headlights without shadow looks very unnatural and disappointing. imho.

I don't think you realize how much of a resource hog dynamic lighting is.

 

Most games only have one or two sources of dynamic lighting - the environment and your flashlight. In V, you've got street lights, the sun, interior lightings. The headlights in your car and the light on your weapons. That's a lot of f'ing memory usage right there. So try to imagine what it would take for every NPC car to act as a dynamic light source too, casting shadows. The game just wouldn't function.

Link to comment
Share on other sites

MichiganMuscle77,

Maybe I don't realize something. But GTA IV and Watch Dogs (modded) make it possible, while GTA V does not. And, for me, it looks very unnatural, taking into account all other great visual effects GTA V provides. The contrast is too sharp.

Edited by Snarkoid
Link to comment
Share on other sites

GrandTeaRedemption

Guys i have shadow set to very high but it still doesn't work what is going on?

Link to comment
Share on other sites

Make sure you've downloaded and installed the most recent AMD driver for GTA V m8s

Link to comment
Share on other sites

I don't think you realize how much of a resource hog dynamic lighting is.

 

Most games only have one or two sources of dynamic lighting - the environment and your flashlight. In V, you've got street lights, the sun, interior lightings. The headlights in your car and the light on your weapons. That's a lot of f'ing memory usage right there. So try to imagine what it would take for every NPC car to act as a dynamic light source too, casting shadows. The game just wouldn't function.

 

I think it has more to do with shadow mapping itself. A deferred engine can churn out as many dynamic lights as possible (well since this is the

reason why so many developers opt to go deferred these days), but shadows are a different story:

 

Shadows are still dependent on the number of lights, and deferred rendering does not solve anything here.

Edited by lpgunit
76561198000404928.png

Link to comment
Share on other sites

Dynamic shadow in headlights. GTA V vs. GTA IV comparison. No shadow in GTA V. Both screenshots taken on my rig, advanced settings are tuned accordingly.

 

20150416072103570Comparison.jpg

Edited by Snarkoid
Link to comment
Share on other sites

Only the headlights of the vehicle you're currently in will cast shadows. NPC vehicles and other players vehicles (unless you're also in the vehicle) won't.

Link to comment
Share on other sites

The Player Character does not have dynamic shadow not only when standing in headlights. There are certain static sources of light in the game, and when the Player Character stands there he has no shadow

Rockstar support gives me stupid advices to change the Shadow Settings in the Graphics Menu to "Very High," which, of course, is of no avail.

PS. When I drive a car I can see peds (and other objects) casting dynamic shadows when walking or standing in headlights of my car. So it is not the in-game settings to blame.

 

20150422233429259No_shadow2.jpg

Edited by Snarkoid
Link to comment
Share on other sites

  • 1 month later...

You don't need to have shadows on ultra and long shadows on to get dynamic headlights, I enabled them be modifying the shader SPS files for vehicle lights, a simple integer change from 1 to 2, then in visualsettings.dat, add

 

car.headlights.day.emissive.on 2.00
car.headlights.night.emissive.on 2.00
car.headlights.day.emissive.off 0.00
car.headlights.night.emissive.off 0.00

 

Now no matter how high or low you set shadows you get dynamic shadows, but again only while driving, but the same must be able to be done for other lights, I will play with the emissive and deferred lighting shaders and let you know shortly what I find

 

BTW using this method makes each headlight an individual light, so they cast two shadows like real life, it also casts shadows on objects that wouldn't cast shadows before

 

syKrnY.jpg

 

 

iWIEhC.jpg

 

opZ5qh.jpg

 

 

Edited by mkeezay30
Link to comment
Share on other sites

L0SS4NT0SK1LL3RV

Only your vehicle is going to cast shadows on other things, the NPC's will not.

Link to comment
Share on other sites

Only your vehicle is going to cast shadows on other things, the NPC's will not.

 

That's simply not true, if we can find the file that dictates ped headlights it can be given the same parameters as player headlights.

Edited by mkeezay30
Link to comment
Share on other sites

@up

 

Your photo is not working.

HHnErXC.png


Link to comment
Share on other sites

Claude_Lib

_CP_, I fixed picture for him:

 

GTA5_2015_05_28_16_51_28_81.jpg

 

Edited by Claude Liberty
Link to comment
Share on other sites

@up

 

Your photo is not working.

Uploaded them to imageshack, they visible for you now? No ultra Shadows and now all objects cast shadows, before only select objects would cast headlight shadows.

 

opZ5qh.jpg

 

iWIEhC.jpg

 

syKrnY.jpg

 

iVSfHc.jpg

Edited by mkeezay30
Link to comment
Share on other sites

No ultra Shadows and now all objects cast shadows, before only select objects would cast headlight shadows.

Everything cast shadows on highest settings, isn't it right?

HHnErXC.png


Link to comment
Share on other sites

 

No ultra Shadows and now all objects cast shadows, before only select objects would cast headlight shadows.

Everything cast shadows on highest settings, isn't it right?

 

 

Almost, some procedural objects wouldn't for instance, but in the settings for those objects there was a flag called "Procobj_Cast_Shadows" and it wasn't enabled on very small items and some slightly bigger ones, at least not from what I've seen, people and plants would but some other objects wouldn't, unless I was missing something, but I had all normal and advanced settings on highest before without shadows for many objects.

 

Either way I now have both Ultra and long shadows turned off with headlight shadows for every object, soon as I started driving around noticing seeing shadows everywhere I didn't before it was pretty noticeable, but I have also changed the intensity of the lights and the distance so I can cast shadows on objects for quite a distance, also turned up the alpha for rain so it's more visiblein headlights and turned on wind with two variations so rain blows sideways when wind gusts come through, makes driving at night or in the rain look amazing.

 

Also each headlight now acts independantly, instead of as a single light source like you will notice in others pics of headlight shadows.

Edited by mkeezay30
Link to comment
Share on other sites

OK, send me some of your fixes by PM.

HHnErXC.png


Link to comment
Share on other sites

OK, send me some of your fixes by PM.

 

Will do, I have more than a few so it'll be a couple minutes, please don't use any of them without crediting me, apart from that feel free to share any tips I send you or use them any way you see fit..

Link to comment
Share on other sites

Claude_Lib

How is this called "fix"? All I see is that it just forces night shadows on low visual settings. One can just as well turn higher settings and get just the same result. Or am I wrong?

Link to comment
Share on other sites

How is this called "fix"? All I see is that it just forces night shadows on low visual settings. One can just as well turn higher settings and get just the same result. Or am I wrong?

 

It's not really a fix, more of a tweak, it just gives both headlights their own light source, and it doesn't just force shadows on low visual settings, I run the game maxed minus AA because I'm usually recording as well and it drops my framerate to low, if you look at some of my images you will notice there are two light sources creating the shadows which causes one darker shadow and one lighter one like in real life

 

In real life two sources of light will give you shadows like this

5430556151_d0b48355f6_m.jpg

 

8061830496_5ca0425d19_m.jpg

 

So I prefer the lights in the game do as well, when driving by fences and other objects the shadows created by two light sources looks much more realistic, I'll upload a video in a few minutes to show you how it looks in action

Edited by mkeezay30
Link to comment
Share on other sites

Claude_Lib

You know, vanilla game does have this feature. If you push shadows quality higher, both headlights will act as separate light sources, each casting their own shadow.

Link to comment
Share on other sites

You know, vanilla game does have this feature. If you push shadows quality higher, both headlights will act as separate light sources, each casting their own shadow.

 

Really because I just tried again and it only gives one light, at the highest in game quality for me (before anyone asks I have the restriction turned off), anyone else have this problem? just drive up to a road sign and see if it's one or two shadows, for me no in game shadow option gives me two

Link to comment
Share on other sites

oCrapaCreeper

 

You know, vanilla game does have this feature. If you push shadows quality higher, both headlights will act as separate light sources, each casting their own shadow.

 

Really because I just tried again and it only gives one light, at the highest in game quality for me (before anyone asks I have the restriction turned off), anyone else have this problem? just drive up to a road sign and see if it's one or two shadows, for me no in game shadow option gives me two

 

I just tried it in my game and both headlights cast their own seperate shadows. You sure you didn't accidentally break one of the lights by hitting something?

Link to comment
Share on other sites

 

 

You know, vanilla game does have this feature. If you push shadows quality higher, both headlights will act as separate light sources, each casting their own shadow.

 

Really because I just tried again and it only gives one light, at the highest in game quality for me (before anyone asks I have the restriction turned off), anyone else have this problem? just drive up to a road sign and see if it's one or two shadows, for me no in game shadow option gives me two

 

I just tried it in my game and both headlights cast their own seperate shadows. You sure you didn't accidentally break one of the lights by hitting something?

 

 

lol no I tried it in multiple cars, it's strange because the angle of the light seems off as well, all my drivers are updated, highest settings, single shadows, WTF

Link to comment
Share on other sites

Sleepy Dude

MichiganMuscle77,

Maybe I don't realize something. But GTA IV and Watch Dogs (modded) make it possible, while GTA V does not. And, for me, it looks very unnatural, taking into account all other great visual effects GTA V provides. The contrast is too sharp.

you lose like 30-40 fps by making the gta iv settings max, its a huge waste of resources and doesnt really matter.

Link to comment
Share on other sites

 

MichiganMuscle77,

Maybe I don't realize something. But GTA IV and Watch Dogs (modded) make it possible, while GTA V does not. And, for me, it looks very unnatural, taking into account all other great visual effects GTA V provides. The contrast is too sharp.

you lose like 30-40 fps by making the gta iv settings max, its a huge waste of resources and doesnt really matter.

 

 

Yes but we are talking about a single shadow that would only be rendered when you walk in front of cars, plus at night you get a better framerate anyway so I don't think adding a single shadow when there are lights all around you that cast shadows would be a huge resource hog, plus if it can render multiple pedestrian shadows and not your own than there is really no excuse for the lack of headlight shadows.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.