Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem with wiki bloom #235956
11/11/08 06:16
11/11/08 06:16
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
so im trying to figure out the bloom from the wiki. im using a6 comm with r2t plugin. the demo for r2t works fine...but when i try to use bloom from the wiki i get nothing. no change in appearance of the game or anything...


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: problem with wiki bloom [Re: not_me] #237770
11/22/08 07:24
11/22/08 07:24
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
*bump* anyone?


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: problem with wiki bloom [Re: not_me] #239434
12/04/08 16:50
12/04/08 16:50
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
it's a bit weird , but you have to change the code frmo the wiki to be the same as the code from the post processing collection.

Basically , mak sure the view is set to camera in PPQuad
entity PP_Quad
{
type = <PPE_Quad.tga>;
layer = 1;
view = camera; //////the wiki code is set to ppcam i think

and include this function

function PP_Init_startup()
{
PP_Cam.bmap = bmap_for_entity(PP_Quad,0);
}


I would sujest searching for the postprocessing collection by sin in the user contributions , downloading it , then anylizing the scripts, it's only a couple of them and they are short, it'll be easier to do , since I had trouble with it till I used the PP_Main.wdl as base rather than the wiki's.

edit: and make sure you have PPE_Quad.tga image in your folder

Last edited by Why_Do_I_Die; 12/04/08 16:51.
Re: problem with wiki bloom [Re: Why_Do_I_Die] #239440
12/04/08 17:05
12/04/08 17:05
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
Here's the whole code for using bloom in one wdl
Code:
view PP_Cam{layer = -1;}
 
entity PP_Quad
{
	type = <PPE_Quad.tga>;
	layer = 1;
	view = camera;
	
	x = 878;
	y = 0;
	z = 0;

	scale_x = 1.0;
	scale_y = 1.0;
}

//Bloom
material Bloom_mat
{
	effect = "Bloom.fx";
}

function Bloom_set_Value(Strength,Brightness)
{
	Bloom_mat.skill1 = floatv(Strength);	//should be at around 1 or 2 or even higher
	Bloom_mat.skill2 = floatv(Brightness);	//use a small value here (between 0 and 0.5)
}

function PP_Init_startup()
{
	PP_Cam.bmap = bmap_for_entity(PP_Quad,0);
}

function PP_Init_Effect()
{
	PP_Quad.material = Bloom_mat;	//Change this to the material you wish<---------------------------
	Bloom_set_Value(2,0.3);	//Call here the function to set the materials values<-------------
}
function PP_Toggle_OnOff()
{
	if(PP_Quad.visible == on)
	{
		PP_Cam.visible = off;
		PP_Quad.visible = off;
	}else
	{
		PP_Cam.visible = on;
		PP_Quad.visible = on;
		
		while(PP_Quad.visible == on)
		{
			vec_set(PP_Cam.x,camera.x);
			vec_set(PP_Cam.pan,camera.pan);
			wait(1);
		}
	}
}

on_t = PP_Toggle_OnOff;


and call this where you want to start the effect (main script to start when game starts)
PP_Init_Effect();//Init the effect

Also , make sure you copy the PPE_Quad.tga and the Bloom.fx files to your project folder.
Btw , t will also toggle on and off the effect , you can also change this to any key by modifying the on_t = PP_Toggle_OnOff;
or just remove it if you don't need it , but it's great for testing purposes.Good luck.

Last edited by Why_Do_I_Die; 12/04/08 17:12.

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