Andrew Brophy
|
|
« Reply #140 on: October 31, 2011, 08:23:44 AM » |
|
This looks very nice.
|
|
|
Logged
|
|
|
|
XRA
|
|
« Reply #141 on: October 31, 2011, 06:23:38 PM » |
|
I really failed with this, couldn't figure it out! Shader "Nasty Dither" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _RampTex ("Base (RGB)", 2D) = "grayscaleRamp" {} }
SubShader { Pass { ZTest Always Cull Off ZWrite Off Fog { Mode off } CGPROGRAM
#pragma vertex vert_img #pragma fragment frag #pragma fragmentoption ARB_precision_hint_fastest #include "UnityCG.cginc"
uniform sampler2D _MainTex; uniform sampler2D _RampTex; uniform half _RampOffset;
float4x4 matWorldViewProjection; float2 fInverseViewportDimensions; struct VS_INPUT { float4 Position : POSITION0; }; struct VS_OUTPUT { float4 Position : POSITION0; float4 calculatedVPos : TEXCOORD0; }; float4 ConvertToVPos( float4 p ) { return float4( 0.5*( float2(p.x + p.w, p.w - p.y) + p.w*fInverseViewportDimensions.xy), p.zw); } VS_OUTPUT vert( VS_INPUT Input ) { VS_OUTPUT Output; Output.Position = mul( Input.Position, matWorldViewProjection ); Output.calculatedVPos = ConvertToVPos(Output.Position); return( Output ); }
float4 frag(VS_OUTPUT Input) : COLOR { Input.calculatedVPos /= Input.calculatedVPos.w; float4 original = tex2D(_MainTex, Input.calculatedVPos.xy); float grayscale = Luminance(original.rgb); float4 vpos = float4(Input.calculatedVPos.xy,0,1); float4 output; //output = float4(1.0,1.0,1.0,1.0);//white output = original;//uses original colors //for (int offset = 0; offset <= 4; offset ++) { float x = vpos.r; float y = vpos.g; float4 ramp = tex2D(_RampTex, vpos.rg); float n = 0.0022;//0.01/ramp.r; //adjust for weirdness float nn = 0.0022;//0.01/ramp.g; //adjust for weirdness
if ( grayscale < 0.9 ){ output.rgb *= floor( frac(x/n)+frac(y/nn) ); } if ( grayscale < 0.75 ){ output.rgb *= floor( frac(x+x/n)+frac(y+y/nn) ); } if ( grayscale < 0.5 ){ output.rgb *= floor( frac(x+x+x/n)+frac(y+y/nn) ); } if ( grayscale < 0.25 ){ output.rgb *= floor( frac(x+x/n)+frac(y+y+y/nn) ); } //}
return output; } ENDCG
} }
Fallback off
}
|
|
|
Logged
|
|
|
|
rek
|
|
« Reply #142 on: November 01, 2011, 05:30:33 AM » |
|
Maybe I'm completely misunderstanding what you're trying to achieve, or what has already been suggested/tried, but from what I see in the GIF could you make a semi-transparent mock-dither layer and point the camera/POV through it to get the visual effect, rather than try adding the dithery look to every surface (which is what I think you're attempting)?
|
|
|
Logged
|
|
|
|
Chris Pavia
Guest
|
|
« Reply #143 on: November 01, 2011, 07:59:46 AM » |
|
Maybe I'm completely misunderstanding what you're trying to achieve, or what has already been suggested/tried, but from what I see in the GIF could you make a semi-transparent mock-dither layer and point the camera/POV through it to get the visual effect, rather than try adding the dithery look to every surface (which is what I think you're attempting)?
I believe with the way Unity works, this would drastically increase the number of draw calls being made each frame, particularly in a game with a player controlled full-3d camera where the developer has little control over how many materials the player is viewing at any given time. In a game with a static camera where the developer has full control of exactly what the player sees it's more feasible, but can still lead to problems depending on what's in the scene (like lots of particles). I guess it wouldn't hurt to at least try, but I imagine it will be resource-intensive.
|
|
|
Logged
|
|
|
|
mokesmoe
|
|
« Reply #144 on: November 01, 2011, 10:18:56 AM » |
|
What we really want is a post-processing effect, and if those only work in unity pro, we should forget about it for now.
ALTERNATE (silly) SUGGESTION:
Make it a forum game where we post what we want to do, the bets suggestion gets picked, and you make a gif showing us what happened.
|
|
|
Logged
|
|
|
|
shojin
|
|
« Reply #145 on: November 01, 2011, 04:59:04 PM » |
|
Make it a forum game where we post what we want to do, the bets suggestion gets picked, and you make a gif showing us what happened.
Whats the silly part of this?
|
|
|
Logged
|
|
|
|
Rob Lach
|
|
« Reply #146 on: November 04, 2011, 09:20:04 PM » |
|
Damn this shit is legit.
|
|
|
Logged
|
|
|
|
mokesmoe
|
|
« Reply #147 on: November 05, 2011, 11:08:00 PM » |
|
The silly part is that we don't actually get to play it.
However, it would work pretty well as a hype building mini-game put on while making the real game. (hint hint)
|
|
|
Logged
|
|
|
|
cirolve
|
|
« Reply #148 on: November 06, 2011, 04:27:55 PM » |
|
contributed to the kickstarter, I hope it turns out to be successful! looks great so far
|
|
|
Logged
|
|
|
|
:^)
|
|
« Reply #149 on: November 11, 2011, 12:14:17 AM » |
|
|
|
|
Logged
|
|
|
|
wademcgillis
Guest
|
|
« Reply #150 on: November 11, 2011, 12:11:04 PM » |
|
Demo? DEMO?!? RELEASE THIS DEMO UPON THE FORUMS :handknifeR: edit: please?
|
|
« Last Edit: November 11, 2011, 12:25:37 PM by Wade McGillis »
|
Logged
|
|
|
|
:^)
|
|
« Reply #151 on: November 11, 2011, 01:52:14 PM » |
|
heh. I did. You must have missed it.
But another one isn't a bad idea.
|
|
|
Logged
|
|
|
|
wademcgillis
Guest
|
|
« Reply #152 on: November 11, 2011, 02:20:39 PM » |
|
heh. I did. You must have missed it.
But another one isn't a bad idea.
Oh wait. This is made in Unity. I probably didn't play it for that reason and forgot that I skipped playing it.
|
|
|
Logged
|
|
|
|
Belimoth
|
|
« Reply #153 on: November 12, 2011, 06:45:39 PM » |
|
|
|
|
Logged
|
|
|
|
:^)
|
|
« Reply #154 on: November 17, 2011, 03:49:06 PM » |
|
OH HI GUYS! So I made an update to my kickstarter, you can check it out here: http://www.kickstarter.com/projects/176258356/deshori/postsIf the kickstarter fails... We'll see. I'd just recommend tweeting the crap out of this stuff. Please. Also, a gazelle model is in the video. And half a scorpion type thing. This can still happen as quickly as we all want it to if you spread the word and get that news over yonder hill.
|
|
|
Logged
|
|
|
|
:^)
|
|
« Reply #155 on: November 17, 2011, 04:01:40 PM » |
|
NO SIR :D Oh, and let me make sure that thing that got paged goes here: OH HI GUYS! So I made an update to my kickstarter, you can check it out here: http://www.kickstarter.com/projects/176258356/deshori/postsIf the kickstarter fails... We'll see. I'd just recommend tweeting the crap out of this stuff. Please. Also, a gazelle model is in the video. And half a scorpion type thing. This can still happen as quickly as we all want it to if you spread the word and get that news over yonder hill. I've been applying like crazy everywhere. 8 Apps at different Starbucks, Grocery Stores, Etc... Oh and mooosh: As always, your charitable expletives on twitter are always much appreciated.
|
|
|
Logged
|
|
|
|
Chris Pavia
Guest
|
|
« Reply #156 on: November 17, 2011, 04:05:18 PM » |
|
Good luck reaching your goal, but I think your top tier pledge amounts should have been much higher, as in the 2-500 dollar range.
Also, telling the viewer that you are using the money to move into a coop outside when you live in your parents basement isn't going to help you, IMHO. Of course we don't know anything about your situation, but it seems you should be able to get just as much work done where you are now. Maybe there's an awesome reason why you NEED to move into that coop, but you didn't explain it to the viewer so it seems like a complete waste of resources to me. Talking about paying MadK was a good move, you should have made that your tent-pole argument.
Anyway that's just my opinion, maybe it'll be useful feedback in case you try kickstarter again in the future.
|
|
|
Logged
|
|
|
|
delete me
|
|
« Reply #157 on: November 17, 2011, 04:21:39 PM » |
|
Is there a way to make multiple pledges? I want to donate once under every amount for the comical result of being thanked in every category whilst helping out.
|
|
|
Logged
|
|
|
|
:^)
|
|
« Reply #158 on: November 17, 2011, 04:25:55 PM » |
|
@Chris: Yeah, thanks for that. I guess I didn't expound on the reasons enough. I can edit the text on the update though, so I will do that and hopefully my reasoning will be a little more solid. EDIT: Done. Although... This could make it even worse. I don't know http://www.kickstarter.com/projects/176258356/deshori/posts/141193I just am super tight on money. And when I say tight. I mean tight. I'm behind on bills. My net worth is in the double digits. I have no job. My mom is threatening to kick me out. I have no where to go at the moment. This is really a cry for help. Ha. I know kickstarter isn't really the place for that. But... I need help. @Xoorath: ...This could be done. Just because you asked. You're already at the top tier anyway. ha
|
|
« Last Edit: November 17, 2011, 04:35:48 PM by peanutbuttershoes »
|
Logged
|
|
|
|
Theophilus
Guest
|
|
« Reply #159 on: November 17, 2011, 04:50:06 PM » |
|
Man, that really sucks. I wish I could give you money. Instead, I'll be tweeting about it.
|
|
|
Logged
|
|
|
|
|