Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 1,114 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shade-c EVO blue world #472519
05/02/18 14:00
05/02/18 14:00
Joined: Mar 2018
Posts: 37
Blobfist Offline OP
Newbie
Blobfist  Offline OP
Newbie

Joined: Mar 2018
Posts: 37
I do like the color blue, but you can oversaturate..





main:
Code:
void main()
{
	fps_max = 60;
	video_mode = 9;
	video_screen = 1;

	// show default errors:
	warn_level = 1;
	// max fps limit:
	fps_max = 60;
	// smooth the time_step:
	time_smooth = 0.9;
	//////////
	detail_size = 50;
	//	max_entities=500000;//out of memory, and other memory errors
	camera.clip_near=1;
	camera.clip_far = 5000;
	video_set(sys_metrics(0), sys_metrics(1), 0, 1);
	shadow_stencil=-1;
//	stencil_blur(1);
	//////////
	wait(-1);
	start_game();
	wait(3);
	bLvl_loaded = true;
	//////////
	while(bLvl_loaded == true)
	{
		var fps;
		fps = (1 / time_frame) * 16;
		DEBUG_VAR(fps, 10);
		//debug
		if(debug == 1)
		{
			/*	var fps;
			fps = (1 / time_frame) * 16;
			DEBUG_VAR(fps, 10);*/
			if(d3d_lines == 0)
			{
				d3d_lines = 1;
			}
		}
		else
		{
			if(d3d_lines > 0)
			{
				d3d_lines = 0;
			}
		}
		//////////
		if(key_f10)
		{
			while(key_f10){wait(1);}
			debug += 1;
		if(debug>1){debug = 0;}else{debug = 1;}
		}
		//////////
		if(key_esc){sys_exit("sys exit");}
		wait(1);
	}
}



function start game:
Code:
function start_game()
{
	//run physX engine:
	physX_open();
	pX_setunit(0.05);
	ph_fps_max_lock = 100;
	ph_check_distance = 2;
	pX_setccd(1);
	pX_setgravity(vector(0, 0, -gravity));
	//////////
	mouse_mode=0;
	wait(1);
	freeze_mode = 1;
	hpf_init();
	wait(3);
	level_load(level00Str);
	freeze_mode = 0;
	pXent_setgroup(level_ent, LEVEL_GROUP);
	pXent_settype(level_ent, PH_STATIC, PH_POLY);
	enable_polycollision = 2;
	//run shade-c
	wait(3);
	vec_set(sun_color, vector(0,0,0)); 
	vec_set(ambient_color, vector(0,0,0));
	
	sc_sky(skycube);
	sc_screen_default = sc_screen_create(camera);
	sc_screen_default.settings.hdr.enabled = 1; 
	sc_screen_default.settings.hdr.lensflare.enabled = 1; 
	sc_setup(sc_screen_default);
	sc_screen_default.settings.hdr.brightpass = 0.85;
	sc_screen_default.settings.hdr.intensity = 2;
	sc_screen_default.settings.hdr.lensflare.brightpass = 0.0;
	sc_screen_default.settings.hdr.lensflare.intensity = 0.25;

	wait(3);
	camera.arc=camera_arc;
	//	on_esc=reset_game;
	//////////
	herordy = 0;
	herofound = 0;
	disamed = 0;
	//
	weapon1 = 0;//crowbar
	weapon2 = 0;//gun
	weapon3 = 0;//rifle
	//////////
	set(point_n_pan, SHOW);
	//////////
}




Everything works fine until I add any of the following lines:

Code:
sc_sky(skycube);
	sc_screen_default = sc_screen_create(camera);
	sc_screen_default.settings.hdr.enabled = 1; 
	sc_screen_default.settings.hdr.lensflare.enabled = 1; 
	sc_setup(sc_screen_default);
	sc_screen_default.settings.hdr.brightpass = 0.85;
	sc_screen_default.settings.hdr.intensity = 2;
	sc_screen_default.settings.hdr.lensflare.brightpass = 0.0;
	sc_screen_default.settings.hdr.lensflare.intensity = 0.25;



Everything on which shade-c as been implicated turns blue.
If I for example only add the sky:
Code:
sc_sky(skycube);



The sky will be completely blue like my favorite muffin.


Any idea what it could be?

Re: shade-c EVO blue world [Re: Blobfist] #472520
05/02/18 14:07
05/02/18 14:07
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
nah, just do
Code:
sc_screen_default->settings.forward.enabled = 1; //enable if you need particles or custom materials which can't be rendered in the deferred pipeline
sc_screen_default->settings.refract.enabled = 0; //enable for refractive effects such as heat haze and glass

and you are good to go.

Maybe its a bug, I don't know.. this will happen if you don't use some of shaders from 'common' folder. F.e. try to place a volga car with it's material (look up 02.wmb from shade-c folder).

Edit: did you assign any shade-c material to level geometry? Maybe that's causing it too..

Last edited by 3run; 05/02/18 14:35.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: shade-c EVO blue world [Re: 3run] #472521
05/02/18 15:27
05/02/18 15:27
Joined: Mar 2018
Posts: 37
Blobfist Offline OP
Newbie
Blobfist  Offline OP
Newbie

Joined: Mar 2018
Posts: 37
huh... it works grin


say, is there a Manuel to shade-c somewhere?

Re: shade-c EVO blue world [Re: Blobfist] #472523
05/02/18 15:58
05/02/18 15:58
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
nope


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: shade-c EVO blue world [Re: 3run] #472524
05/02/18 16:09
05/02/18 16:09
Joined: Mar 2018
Posts: 37
Blobfist Offline OP
Newbie
Blobfist  Offline OP
Newbie

Joined: Mar 2018
Posts: 37
cool ..


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