Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Realtime env reflections #383264
09/18/11 10:35
09/18/11 10:35
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
Just searching for realtime env reflections shader, I've found one in AUM 101 with painkillers car project, but I couldn't get visible effect.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
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 Offline
Expert
Kartoffel  Offline
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.

download

Theres 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 Offline OP
Senior Expert
3run  Offline 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.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
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 Offline
Expert
Kartoffel  Offline
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

Quote:
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: Kartoffel] #383273
09/18/11 13:37
09/18/11 13:37
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have a look at view.genius if you want to make the car invisible but only for the reflection view.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
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 Offline
Expert
Kartoffel  Offline
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
Re: Realtime env reflections [Re: Kartoffel] #383277
09/18/11 14:40
09/18/11 14:40
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Hm just write
your_reflection_view.genius = me;
in the car action, should work fine. If ,f.i., the tires are separate models, set their parent pointer to the car. This will make them invisible in the reflection view, too.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Realtime env reflections [Re: Superku] #383280
09/18/11 14:56
09/18/11 14:56
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
My car model has about 5-6 skins, they all about 128 x 128, will it affect on whole model if I set it in the first one? Thank you. Superku, yeah I thought about using genius as well.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1