Reflections

Posted By: SkullBoy99

Reflections - 03/28/14 21:10

Hey guys,i really need 2 things:
1.Is a way ,or shader for cars to reflect world around it?
2.Rain effect:
When rain in game,i want to give roads a bit shiny and reflect a bit lights like in NFS: MW or NFS:U2
(I do a game gta-style in lite-c, not NFS laugh ).
Please help me grin
Posted By: MasterQ32

Re: Reflections - 03/29/14 08:24

1. Use a environment mapping shader
You have two options:
I. Create a static environment map from your level or just use your sky to get sky reflections
II. Create a dynamic environment map. You use bmap_createblack and bmap_to_cubemap, then use 6 VIEWs to render the cubemap from the center of your model. So you get dynamic reflections but they will cost a lot of performance

2. For roads you can use some shader effects as well:
I. Strong specular lighting and frontlights for your cars
II. Screen space reflections would serve here pretty good, afaik Superku made an implementen some time ago

Hope i could help
Posted By: SkullBoy99

Re: Reflections - 03/29/14 13:47

Thank you,I will try to implement these later.
grin
Posted By: SkullBoy99

Re: Reflections - 03/30/14 13:45

MasterQ32, please can you upload a fx file for dynamic env map for cars?I had tried some fx files but don't what I want.and what is that screen space reflection? grin
© 2024 lite-C Forums