Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 902 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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 Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Hi there,

I have the following code in the main function of my project:
Code:
pp_add (mtl_hdr);



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 Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
it survives, use in this form:

Code:
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.

Free world editor for 3D Gamestudio: MapBuilder Editor
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 Offline OP
Member
3dworld  Offline 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 laugh


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 Offline OP
Member
3dworld  Offline 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: 3dworld] #428883
09/05/13 06:28
09/05/13 06:28
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
while it is loading, put up a loading panel, and hide it when level is fully ready.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: HDR Material saving and loading problem [Re: sivan] #428948
09/05/13 23:08
09/05/13 23:08
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Actually it happens after the level is loaded...no during the load process frown


No matter what people tell you,  words and ideas can change the world.
Re: HDR Material saving and loading problem [Re: 3dworld] #428958
09/06/13 06:46
09/06/13 06:46
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
probably you should tweak the hdr settings, or the level is too bright, I don't know...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: HDR Material saving and loading problem [Re: sivan] #428959
09/06/13 06:51
09/06/13 06:51
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
You could edit the hdr effect directly in the mtlview.c ( or the file was called ). There must be a while. Maybe break this while before you save / load, so u can relaunch it after loading / saving.
Its not the best solution but i have done it this way and it seamed to work.

edit: And using -SV_INFO helped me too.

Last edited by rayp; 09/06/13 13:02.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
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 Offline OP
Member
3dworld  Offline 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.

Moderated by  Blink, Hummel, Superku 

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