2 registered members (AndrewAMD, 7th_zorro),
1,285
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
HDR Material saving and loading problem
#428819
09/04/13 01:51
09/04/13 01:51
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
Hi there, I have the following code in the main function of my project: My problem is that every time I save and load the game the engine crashes. I know that some PP Shaders don't survive the saving/loading process. Can someone point me in the right direction on how to correctly disable this specific Shader during the saving process and load it back again after load the saved game. Any help is greatly appreciated. Thanks in advance.
No matter what people tell you, words and ideas can change the world.
|
|
|
Re: HDR Material saving and loading problem
[Re: 3dworld]
#428833
09/04/13 07:14
09/04/13 07:14
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
Expert
Joined: Mar 2011
Posts: 3,150
Budapest
|
it survives, use in this form:
mtl_hdr.skill1 = floatv(5); // strength
mtl_hdr.skill2 = floatv(35); // treshold
mtl_hdr.skill3 = floatv(0); // exposure compensation factor
mtl_hdr.skill4 = floatv(1); // time
pp_set(camera,mtl_hdr);
I think pp_add only works if there was a pp_set before, but not sure...
Last edited by sivan; 09/04/13 07:15.
|
|
|
Re: HDR Material saving and loading problem
[Re: sivan]
#428860
09/04/13 16:27
09/04/13 16:27
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
Perfect. I'll try it as soon as I get home today and I'll let you know how it goes. Thank you. PS: I tested pp_add without pp_set and it works fine
No matter what people tell you, words and ideas can change the world.
|
|
|
Re: HDR Material saving and loading problem
[Re: 3dworld]
#428873
09/04/13 22:28
09/04/13 22:28
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
Hi thanks,
Actually that works, the only issue that I'm having now is that when the game is loaded the screen goes white...I can see like if the hdr effect grows without stopping. Any ideas?
No matter what people tell you, words and ideas can change the world.
|
|
|
Re: HDR Material saving and loading problem
[Re: rayp]
#429027
09/07/13 02:20
09/07/13 02:20
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
OK, I'll try and I'll let you know folks.
Thanks.
No matter what people tell you, words and ideas can change the world.
|
|
|
|