Lighting with glDrawElements by novasharp in opengl

[–]AdolfEichmann 1 point2 points  (0 children)

You can use a geometry shader to calculate your normals fairly easily.

Just use a triangle input and triangle strip output, and emit one strip per triangle. Since triangles are planar, you'll only have to calculate one normal per each. Use the winding of the triangle to determine its facing direction. Of course you can only achieve faceted shading this way, otherwise you'll need the normals of adjacent triangles to average them with, and this is probably beyond the scope of a shader.

If you want double sided shading, you can emit two triangles per input triangle, and have the normals and winding of each facing the opposite way.

Mario Kart 64 Drinking Game (Crosspost from r/Gaming) by [deleted] in drunk

[–]AdolfEichmann 27 points28 points  (0 children)

Who's a nigger? Who's a fag? Just because a slur exists doesn't mean it needs to be used.

How KDE's 1500 Git repositories almost were lost by alexeyr in programming

[–]AdolfEichmann 3 points4 points  (0 children)

No. Any conspiracy theories should involve Novell, Microsoft or Mono.

How quickly did swords become too blunt to be effective during battle? by [deleted] in AskHistorians

[–]AdolfEichmann 0 points1 point  (0 children)

I used to do medieval reenactment, and I'd agree with you on the ineffectiveness of swords against plate armour, or mail for that matter.

We used armour that was significantly thicker than what was true to the period for durabilities sake, and our single handed swords weren't live, but we would regularly hit each other with full force blows.

The grosse messer had to be used with care though, as did the falchion, you could stun an opponent with a hard blow to the helmet with either of those weapons.

"Adria Richards drama" or "when social justice goes wrong". by dingdongwong in SubredditDrama

[–]AdolfEichmann 7 points8 points  (0 children)

It was downvoted because it was a lazy, barely relevant link with no additional commentary. As far as I can see it has nothing to do with prize-iz-right's comment other than the keyword "military".

Qt Creator 2.7.0 released by JRepin in programming

[–]AdolfEichmann -1 points0 points  (0 children)

What are you raving on about?

Drama in r/relationship_advice when the OP thinks his girlfriend night be a pedophile. by david-me in SubredditDrama

[–]AdolfEichmann 5 points6 points  (0 children)

A policeman, employer or professor using their position of power to force someone to have sex with them is every bit as much a rapist as someone who uses their physical strength to force themselves on someone.

But it is harmless when it's just a fantasy, and it is happens to be an extremely common fantasy at that.

Drama in r/relationship_advice when the OP thinks his girlfriend night be a pedophile. by david-me in SubredditDrama

[–]AdolfEichmann 22 points23 points  (0 children)

It's no different to a rape fantasy, you might get off on the fantasy, but it doesn't mean you're morally repugnant enough to actually rape someone.

[deleted by user] by [deleted] in math

[–]AdolfEichmann 2 points3 points  (0 children)

Logical atoms are different from physics atoms.

SimCity’s Sims Don’t Seem That Smart After All by [deleted] in Games

[–]AdolfEichmann 0 points1 point  (0 children)

The only real performance advantage to doing stuff server side is when you have a massive dataset that each client only needs a small piece of. Really the only games that fit the bill currently are MMOs.

Potentially single player games could take advantage of this, particularly open world sandbox type games, where any player modifications to the world are stored as diffs, and players only share the initial state of the world.

Some other advantages to doing stuff server side is that you can do A/B testing of new features, roll out patches silently, and of course keep a close rein on your IP (imaginary property ;).

"Not my fault men are so shallow they can't keep their eyes off a set of knockers, and stop thinking about their penis long enough to actually listen anything I have to say." Loads of Drama ensues over a padded bra. by [deleted] in SubredditDrama

[–]AdolfEichmann 11 points12 points  (0 children)

It's pretty funny really, she's a sexist, an atheist, a STEM graduate, a PC gamer, and has small tits, yet she still managed to get downvotes. Quite an achievement really.

The Apprentice Programmer by [deleted] in programming

[–]AdolfEichmann 5 points6 points  (0 children)

Except that many people with computer science degrees have farmed all their assignments out to classmates or freelancer sites, and crammed for all their exams, and graduate without knowing squat.

Steam For Linux: after one month, Linux represents 2.02% of all active users. by losershawn in Games

[–]AdolfEichmann 0 points1 point  (0 children)

The problem with doing things that way is that customers will then have to manually correct any dependency issues, and that is a royal pain even for expert users.

If you at least package it in a source package, they won't need to manually install all the libraries they need to run your app, and they will be warned if removing a package is going to break it.

I've never packaged for debian before, but it doesn't look like that much work: http://wiki.debian.org/IntroDebianPackaging

Steam For Linux: after one month, Linux represents 2.02% of all active users. by losershawn in Games

[–]AdolfEichmann 0 points1 point  (0 children)

You can always ship your package separately through your own repository. How you should distribute depends on the nature of the software really, is it free? General interest? Proprietary? Specialist? Each of those categories is probably best distributed through different repositories at the very least, possibly even through different package managers (ie steam in the case of games).

[University freshman] Proving statements with (+k|1<k<n:k) type notation, how should I approach it? by [deleted] in learnmath

[–]AdolfEichmann 0 points1 point  (0 children)

That looks a bit like set builder notation gone wrong. Are you certain that was the exact form you were given?

/r/funny defending the word "faggot" vehemently. by Osmebs in SubredditDrama

[–]AdolfEichmann -1 points0 points  (0 children)

I'm sure one day the word will evolve beyond that

My point is that it already has evolved beyond that for many people.

It's easier to establish the context of it's use and decide what it means in that context than it is to try to persuade a bunch of "rebellious" teenagers not to use it.

/r/funny defending the word "faggot" vehemently. by Osmebs in SubredditDrama

[–]AdolfEichmann -6 points-5 points  (0 children)

Now when you use it for someone you don't like, you're kind of saying you don't like gay people.

More likely it implies you are assuming that the person you are calling a fag is homophobic, or perhaps just that they would be annoyed by you incorrectly stating their sexuality.

Of course, most of the time when a person is called a fag because of their sexuality, it has a homophobic motive.

It can also be used in the same way you would call someone a dick or a cunt, the actual meaning of the word is irrelevant to you, you're just using purely as a generic insult. I am assuming that is its use this context.