[QUOTE=Fourier;48254593]I gave game to people so they can test it and nobody got it, how to play it with tutorial included. Gotta do interactive tutorial so people will get it first time or my game is fried.[/QUOTE]
yeah, same. I'm gonna make it so the first time you start up the game, it'll ask you if you want to play a tutorial.
[vid]http://files.1337upload.net/Desktop_07.20.2015_-_23.52.01.01.webmhd-c5badf.webm[/vid]
ripping off portal 2 chapter titles
Why nobody told me that animation is so hard thing to do? D:
[vid]http://webm.host/8698a/vid.webm[/vid]
Look up some walk cycle animation tutorials, animations aren't easy, especially walk cycles.
[img]http://www.andrewnourse.com/images/walkacyle.jpg[/img]
[media]https://www.youtube.com/watch?v=vl615KUB8SE[/media]
The best kind of bug? The one that's fixed by updating your framework.
(Extra feel good points if it's a really weird bug, like getting GL_INVALID_OPERATION in a function that should not trigger GL_INVALID_OPERATION based on the parameters you're giving it.)
When applying for jobs, and the listing says ".net developer" or otherwise has .net listed, they don't mean ALL of .net do they? Surely they don't care about a Visual BASIC developer; they really just want C# devs, right?
[QUOTE=proboardslol;48256208]When applying for jobs, and the listing says ".net developer" or otherwise has .net listed, they don't mean ALL of .net do they? Surely they don't care about a Visual BASIC developer; they really just want C# devs, right?[/QUOTE]
They want a .NET developer, most likely they don't even care what language you are using. You have to ask to know.
[QUOTE=kolobok;48255431]Why nobody told me that animation is so hard thing to do? D:[/QUOTE]
Don't animate in the unity editor.
Use spriter or something
I'm implementing a Gaussian blur. Decided to optimize it by using linear filtering to grab two samples at the same time, effectively reducing the number of required samples by half for any given blur width.
There's a real nice article about it here: [url]http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/[/url]
Of course, as with most useful articles, there's no tool or example code provided that can actually generate the weights and offsets mentioned in the article. So I decided to write one:
[cpp]
<pre id="vertex"></pre>
<pre id="fragment"></pre>
<script>
function sum(arr)
{
return arr.reduce(function(a, b) { return a + b; });
}
function pascalTriangle(rowIndex)
{
// [1] row index 0
// [1, 1] row index 1
// [1, 2, 1] row index 2
var row = [1]; // row index 0
for (var i = 1; i <= rowIndex; ++i)
{
var nextRow = [];
for (var j = 0; j <= i; ++j)
{
var k = j - 1,
a = (k >= 0) ? row[k] : 0,
b = (j < row.length) ? row[j] : 0;
nextRow.push(a + b);
}
row = nextRow;
}
return row;
}
function gaussianWeights(row, drop)
{
if (typeof drop === 'undefined')
{
drop = 0;
}
var arr = row.slice(drop, -drop),
total = sum(arr);
return arr.map(function(v) { return v / total; });
}
function rightHalf(arr)
{
return arr.slice(Math.ceil(arr.length / 2));
}
/**
* Given a 1D array of Gaussian blur weights, computes optimized weights and offsets
* utilizing linear filtering of textures. The number of weights is cut nearly in half.
* @see [url]http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/[/url]
*/
function optimizeWeights(fullWeights)
{
var weights = [],
offsets = [],
// operate on the right half of the weights (they are mirrored)
rightHalfWeights = rightHalf(fullWeights);
for (var i = 1; i < rightHalfWeights.length; i += 2)
{
var offA = i,
offB = i + 1,
weightA = rightHalfWeights[i - 1],
weightB = rightHalfWeights[i],
combinedWeight = weightA + weightB,
combinedOffset = (offA * weightA + offB * weightB) / combinedWeight;
weights.push(combinedWeight);
offsets.push(combinedOffset);
}
// mirror the weights and coords again
var ret = [
{
w: fullWeights[Math.floor(fullWeights.length / 2)],
o: 0
}
];
for (var i = 0; i < weights.length; ++i)
{
ret.unshift({
w: weights[i],
o: -offsets[i]
});
ret.push({
w: weights[i],
o: offsets[i]
});
}
return ret;
}
var row = pascalTriangle(12),
fullWeights = gaussianWeights(row, 2),
optimizedWeights = optimizeWeights(fullWeights),
vertexPre = document.getElementById('vertex'),
fragmentPre = document.getElementById('fragment');
for (var i = 0; i < optimizedWeights.length; ++i)
{
var v = optimizedWeights[i];
vertexPre.innerHTML += 'vTexCoord[' + i + '] = aTexCoord + offset * ' + v.o + ';\\\n';
fragmentPre.innerHTML += 'sum += texture2D(uBaseSampler, vTexCoord[' + i + ']).rgb * ' + v.w + ';\\\n';
}
</script>
[/cpp]
Drop it into an .html file and it'll produce output like this:
[code]
vTexCoord[0] = aTexCoord + offset * -3.230769230769231;\
vTexCoord[1] = aTexCoord + offset * -1.3846153846153848;\
vTexCoord[2] = aTexCoord + offset * 0;\
vTexCoord[3] = aTexCoord + offset * 1.3846153846153848;\
vTexCoord[4] = aTexCoord + offset * 3.230769230769231;\
sum += texture2D(uBaseSampler, vTexCoord[0]).rgb * 0.07027027027027027;\
sum += texture2D(uBaseSampler, vTexCoord[1]).rgb * 0.3162162162162162;\
sum += texture2D(uBaseSampler, vTexCoord[2]).rgb * 0.22702702702702704;\
sum += texture2D(uBaseSampler, vTexCoord[3]).rgb * 0.3162162162162162;\
sum += texture2D(uBaseSampler, vTexCoord[4]).rgb * 0.07027027027027027;\
[/code]
Modify the call to pascalTriangle() to generate less or more weights and offsets. Modify the second parameter to gaussianWeights() to determine how many edge weights to drop (typically, 2 outer weights don't contribute much). gaussianWeights() returns normalized weights.
I don't know if this is a question thread but i want to know how to connect my exit and entry together using only prefabs from a list for my cave game, I have my list of prefabs and my exit and entry created i just don't know how to do this
unity? if not, what are you using?
oops its unity
[QUOTE=wavesave;48256825]I don't know if this is a question thread but i want to know how to connect my exit and entry together using only prefabs from a list for my cave game, I have my list of prefabs and my exit and entry created i just don't know how to do this[/QUOTE]
The question thread is the aptly named [URL="http://facepunch.com/showthread.php?t=1446371"]What Do You Need Help With[/URL].
Got an email from Triplebyte (after they hadn't sent me an email for a week longer than they said it'd take -- worrying) saying they thought I was great and to schedule another call.
Interviews are FUN bros
[QUOTE=helifreak;48257257]The question thread is the aptly named [URL="http://facepunch.com/showthread.php?t=1446371"]What Do You Need Help With[/URL].[/QUOTE]
Thanks man sorry for being a burden.
I don't feel like working on something specific so I thought it might be fun to do some knowledge sharing. Anyone got an idea about what I could do? What would people be interested in?
My UI is a bit more functional, it has a working options menu and colors!
[video=youtube;4Ei_DSJA8FI]https://www.youtube.com/watch?v=4Ei_DSJA8FI[/video]
I am definitely not as proficient with UI work, it has taken the same amount of time to get this far, as it has to do AI, animation and modeling combined.
[QUOTE=geel9;48257311]Interviews are FUN bros[/QUOTE]
I'm sure they're fun when you already have the security of an existing job with decent income.
[URL="https://bitbucket.org/Nabile/twitch-for-vlc"][IMG]https://bitbucket.org/Nabile/twitch-for-vlc/avatar/64/?ts=1437475279[/IMG][/URL] [URL="https://bitbucket.org/Nabile/twitch-for-vlc"]Twitch for VLC.[/URL]
It baffles me how something can be so easy to make yet nobody has ever done it.
Instead you're told to install some program or use a web page to get the video URL, when it can be integrated into your media player by writing a simple script.
I hope it'll be useful to some of you. [IMG]http://www.facepunch.com/fp/ratings/heart.png[/IMG]
Went for an interview with Netcraft today and they'd asked for a code sample prior-
Hearing "I saw your code on HackerNews before I was shown it here" was quite uplifting :D
Can someody explain this to me:
[url]https://twitter.com/trvrm/status/623135659817971716[/url]
[QUOTE=Killuah;48259236]Can someody explain this to me:
[url]https://twitter.com/trvrm/status/623135659817971716[/url][/QUOTE]
It uses a random number generator to determine whether it should throw an exception or just silently fail, basically.
[QUOTE=Nabile13;48259173][URL="https://bitbucket.org/Nabile/twitch-for-vlc"][IMG]https://bitbucket.org/Nabile/twitch-for-vlc/avatar/64/?ts=1437475279[/IMG][/URL] [URL="https://bitbucket.org/Nabile/twitch-for-vlc"]Twitch for VLC.[/URL]
It baffles me how something can be so easy to make yet nobody has ever done it.
Instead you're told to install some program or use a web page to get the video URL, when it can be integrated into your media player by writing a simple script.
I hope it'll be useful to some of you. [IMG]http://www.facepunch.com/fp/ratings/heart.png[/IMG][/QUOTE]
um i've been using livestreamer and it works fine
[url]http://docs.livestreamer.io/[/url]
[QUOTE=geel9;48257311]Got an email from Triplebyte (after they hadn't sent me an email for a week longer than they said it'd take -- worrying) saying they thought I was great and to schedule another call.
Interviews are FUN bros[/QUOTE]
Only when you dont care about the final answer ;)
[QUOTE=geel9;48259281]It uses a random number generator to determine whether it should throw an exception or just silently fail, basically.[/QUOTE]
[url]https://jira.mongodb.org/browse/JAVA-836[/url]
It's supposed to reduce log flooding, but a different contributor proposed a sane idea.
[QUOTE=DarKSunrise;48259324]um i've been using livestreamer and it works fine
[URL]http://docs.livestreamer.io/[/URL][/QUOTE]
Yes, I indirectly mentioned it.
If all the livestreaming platforms were supported in media players in the form of scripts, tools such as this one wouldn't be needed in the first place.
It's much better to Ctrl+V or drop an URL into your media player rather than installing another tool that serves as a proxy that handles the simple task of booting your favourite media player with the correct parameters.
[QUOTE=Zazibar;48259044]I'm sure they're fun when you already have the security of an existing job with decent income.[/QUOTE]
Believe me, I had no job and went to interviews, they were fun anyway. Why be nervous on interview?
[B]What the fuck Unity...[/B]
[vid]http://webm.host/41d19/vid.webm[/vid]
How do you even let this happen.
[QUOTE=sarge997;48259885][B]What the fuck Unity...[/B]
[vid]http://webm.host/41d19/vid.webm[/vid]
How do you even let this happen.[/QUOTE]
That's some next level russian dance
I'd keep it as a feature
[QUOTE=sarge997;48259885][B]What the fuck Unity...[/B]
[vid]http://webm.host/41d19/vid.webm[/vid]
How do you even let this happen.[/QUOTE]
[video=youtube;_quhgm09Dg8]https://www.youtube.com/watch?v=_quhgm09Dg8[/video]
RUSSIAN PARTY!
Sorry, you need to Log In to post a reply to this thread.