|
2 registered members (Quad, AndrewAMD),
1,007
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Realtime env reflections
[Re: 3run]
#383266
09/18/11 11:57
09/18/11 11:57
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
I found one some weeks ago... I don't know where I got it but I uploaded it for you. downloadTheres just the problem, that the entity reflects itself which can make the shader useless (or the result not 'that' good) in some cases. [EDIT] maybe making the entity invisible, then updating one side and making it visible again works. And it updates 'only' one (of 6) sides per frame. But increasing the fp/s should solve this.
Last edited by Kartoffel; 09/18/11 12:02.
POTATO-MAN saves the day! - Random
|
|
|
Re: Realtime env reflections
[Re: Kartoffel]
#383270
09/18/11 12:35
09/18/11 12:35
|
Joined: May 2009
Posts: 5,365 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,365
Caucasus
|
Thank you, I'll give it a try now.. BTW, reflecting itself isn't that bad, is it? I mean, car should have reflection of itself.. But thank you for ideas with fixing that.
EDIT: it's awesome )) but how to make texture of the model get visible?
Last edited by 3run; 09/18/11 12:40.
|
|
|
Re: Realtime env reflections
[Re: 3run]
#383272
09/18/11 13:03
09/18/11 13:03
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
just looked at the .fx file... seems like the envmapping alpha is the alpha of the first model skin reflecting itself isn't that bad, is it? well, the script creates a cubemap at the origin of the model... and if the origin is 'inside' the car you will see reflections of the inside of the car...
POTATO-MAN saves the day! - Random
|
|
|
Re: Realtime env reflections
[Re: Superku]
#383274
09/18/11 13:43
09/18/11 13:43
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
@Superku
I've tried this some time ago, but it didn't work. Have you got a small example?
POTATO-MAN saves the day! - Random
|
|
|
|