What's new

Real shaders are here. Cel & Bloom

Terranigma

New member
Updated again.

Sorry.

Where's the update? What page is it on?

Also... I can't figure a few things out. Your readme talks about d4rk.dll and rv.dll but I can't find any of these files in your rar file or in 1964/PJ64. Am I suppose to download something else as well or am I doing something else wrong?
 

mudlord

Banned
So, basic instructions:

* Patch DX9 version of Rice Video. d4rk.dll will then be extracted to same folder as Rice Video
* Place d4rk.dll in emulator folder
* Place chosen shader.fx file in emulator folder

I doubt I can make it any more simpler.
 

dbozan99

New member
OK, I think I have solved everyones problems related to it "not working" (as long as ur video card isn't crap)
After messing around for quite some time I decided to see if I still had the problem with another emulator, so I tried Project64k And It spat out the error saying cannot find dx3d9_30.dll every time I opened settings.
After running dxdiag, I didn't think that could be the problem because it said I had 9.0c.
I decided That a reinstall wouldn't hurt so after a while of searching, I came across this:
http://download.microsoft.com/downl...-8bb0-64f60bd23175/directx_jun2008_redist.exe
Which did the trick!
just make sure you extract it to a subfolder so it doesnt clutter something up
(i used c:\dx\ so it put all the installer stuff in there)

EDIT: After this It now works with 1964, project64k, project64 1.6 and project64 1.7! (just remember to switch over to the DX9 plugin :) )

EDIT2: I Put a vid of Very_Bata_Cell On Youtube! Check it out!

EDIT3: lol wrong link...use this one:
 
Last edited:

V3piru

New member
Hi all, has been a while that i look at this topic without being a member, and all these shaders ROCK ! Many thanks !

I play on PJ64 1.6 with RiceVideo 6.1.3 DX9 (PJ64 1.7 tells me "failed to allocate memory" :( )

I Really Enjoy the Bloom shader, but I would like to blur it a bit, as well as to blur the entire scene (at 1280x1024 + screen resolutions, polygons really are annoying)

How would you do, to have the two shaders in one ? I tried to do it myself but i'm a real newbie to this. I could tweak the bloom shader a bit, but not add blur to it.

Here is my shader, it is not working. I only added the blur shader to the tweaked bloom one (which is working).

Code:
//These variables will get set automatically
texture tex1;

float2 rcpres;
float4 BloomSettings;

sampler s0 = sampler_state { texture = <tex1>; };

float Luminance = 0.08f;
static const float fMiddleGray = 0.18f;
static const float fWhiteCutoff = 0.8f;

#define NUM 25

float2 PixelOffsets[NUM] =
{
	{ -0.003, -0.003 },
	{ -0.003, 0.0035 },
	{ -0.0025, -0.0025 },
	{ -0.0025, 0.0025 },
	{ -0.002, -0.002 },
	{ -0.002, 0.002 },
	{ -0.0015, -0.0015 },
	{ -0.0015, 0.0015 },
	{ -0.001, -0.001 },
	{ -0.001, 0.001 },
	{ -0.0005, -0.0005 },
	{ -0.0005, 0.0005 },
	{  0.000,  0.000 },
	{  0.0005, -0.0005 },
	{  0.0005,  0.0005 },
	{  0.001, -0.001 },
	{  0.001,  0.001 },
	{  0.0015, -0.0015 },	
	{  0.0015,  0.0015 },
	{  0.002, -0.002 },
	{  0.002,  0.002 },
	{  0.0025, -0.0025 },
	{  0.0025,  0.0025 },
	{  0.003, -0.003 },
	{  0.003,  0.003 },
};

static const float BlurWeights[NUM] =
{
	0.002000,
	0.004000,
	0.008000,
	0.016000,
	0.024000,
	0.032000,
	0.048000,
	0.064000,
	0.096000,
	0.112000,
	0.128000,
	0.132000,
	0.128000,
	0.132000,
	0.128000,
	0.112000,
	0.096000,
	0.064000,
	0.048000,
	0.032000,
	0.024000,
	0.016000,
	0.008000,
	0.004000,
	0.002000,
};



float4 NormalColourPass( in float2 Tex : TEXCOORD0 ) : COLOR0
{
	float4 color = tex2D( s0, Tex );
	color.a = 1;
	return color;
}

float4 BloomPass( in float2 Tex : TEXCOORD0 ) : COLOR0
{
	BloomSettings.x = 1.0;
	BloomSettings.y = 0.3;


	float3 pixel;
	float3 Color = 0;
	
	for(int i = 0; i < NUM; i++)
	{
		pixel = tex2D(s0,Tex + PixelOffsets[i] * 5.0f)+BloomSettings.y;
		
		pixel *= fMiddleGray / (Luminance + 0.001f);
		pixel *= (1.0f + (pixel / (fWhiteCutoff * fWhiteCutoff)));
		pixel -= 5.0f;
		
		pixel = max(pixel,0.0f);
		pixel /= (10.0f + pixel);
		
		Color += pixel * BlurWeights[i];
	}
	
	Color *= BloomSettings.x;
	
	return float4(Color,1.0) + tex2D(s0,Tex);
}

float4 BlurPass( in float2 Tex : TEXCOORD0 ) : COLOR0
{
	float4 Color = tex2D( s0, Tex.xy );
        Color += tex2D( s0, Tex.xy+0.001);
        Color += tex2D( s0, Tex.xy+0.002);
        Color += tex2D( s0, Tex.xy+0.003);
        Color = Color / 4;
	return Color;
}


Technique T0
{

    pass p0 { PixelShader = compile ps_2_0 NormalColourPass(); }
    pass p1 { PixelShader = compile ps_3_0 BloomPass(); }
    pass p1 { PixelShader = compile ps_2_0 BlurPass(); }

}

Can you help me ? All these shaders would be even cooler if we could use multiple of them at once ! :bouncy:

Thxxx for this reat thread !
 

Datadayne

New member
Well ive been trying to download Mudlords shaders, but 3 days now and the link hasnt been working for me.

Could anyone please upload it for me?

The screen in the previous pages of this thread showcasing mudlords shader on Djipi's cell pack looks fantastic.

Datadayne
 

Datadayne

New member
Hmmm... working for me ... right now.

Here they are

Did a mistake in my shader : last pass is "p2", not p1. Still doesn't work :(

Really?, Im getting this error

xoqhrc.png
 

EmuFan

Emulation Fanatic
Maybe there is some sort of firewall/antivirus program that is blocking you from downloading? Has happened to me before...Have you tried to...Ohh, dare i say it..download it with internet exploder? (Intentional misspell)
 

mudlord

Banned
Hi all, has been a while that i look at this topic without being a member, and all these shaders ROCK ! Many thanks !

I play on PJ64 1.6 with RiceVideo 6.1.3 DX9 (PJ64 1.7 tells me "failed to allocate memory" )

I Really Enjoy the Bloom shader, but I would like to blur it a bit, as well as to blur the entire scene (at 1280x1024 + screen resolutions, polygons really are annoying)

How would you do, to have the two shaders in one ? I tried to do it myself but i'm a real newbie to this. I could tweak the bloom shader a bit, but not add blur to it.

Here is my shader, it is not working. I only added the blur shader to the tweaked bloom one (which is working).

What you really want, is to get the results from the previous render pass. If you read the readme, you will know that tex2 is needed as a additional texture for this approach.

Really?, Im getting this error

What is the start of your IP? (first two octets)
 

V3piru

New member
Thanks Mudlord !

As i couldn't do it yesterday, i went through a modification of the HDR shader. Instead of blooming the most shiny parts of the image, it now enhances the hole frame, with the "blurry" effect i was looking for :bouncy:

Works best with Zelda OOt and MM, at 1024x768 + Screen resolutions ;)

I have no account to upload it on, but if you like the screenshots i will try to do it =]





 

Driscol

annoying you for over a year!
Thanks Mudlord !

As i couldn't do it yesterday, i went through a modification of the HDR shader. Instead of blooming the most shiny parts of the image, it now enhances the hole frame, with the "blurry" effect i was looking for :bouncy:

Works best with Zelda OOt and MM, at 1024x768 + Screen resolutions ;)

I have no account to upload it on, but if you like the screenshots i will try to do it =]

i would love to see this uploaded!
upload it on mediafire.com its free and you don't need an acount.
 

cerebus5

New member
I just have to say this is great work mudlord. Keep it up. I still haven't cracked how to load it but I'm working on it. Hopefully reinstalling this latest version of DX9 will do it. V3pru's latest batch of screenshots are phenomenal.


Ok installing the runtime environment did the trick. Wonderful. Cel Shaded Zelda with bloom lighting - good grief.
 
Last edited:

V3piru

New member
Hi all

Sorry, was on holidays :bouncy:
I will upload the latest version of the tweaked bloom shader as soon as possible :flowers: , I'm happy you like the screens.

I changed it again to make it work at any resolution, it still needs to be modified when playing other games (Jade Empire is cool ;))

See ya soon !
 

cerebus5

New member
It would be nice to have some sort of interface, a way of directly scaling the bloom within specific games. Great work though.
 

EmuFan

Emulation Fanatic
Hi all

Sorry, was on holidays :bouncy:
I will upload the latest version of the tweaked bloom shader as soon as possible :flowers: , I'm happy you like the screens.

I changed it again to make it work at any resolution, it still needs to be modified when playing other games (Jade Empire is cool ;))

See ya soon !
Oh, thank you. I would really like that bloom effect.
 

Top