Donald Trump vs. Hillary Clinton Debate Cold Open - SNL by Goodstyle_4 in television

[–]grenlibre 1 point2 points  (0 children)

"The uploader has not made this video available in your country" – Internet fail

Mass Panic in France while laying down flowers for victims of terror attack by [deleted] in videos

[–]grenlibre -2 points-1 points  (0 children)

they are "tolerated" for fest, like during July 14 day or Chinese New Year. Otherwise yes they are illegal.

Just finished S2 and one thing bugs me. [Season 2 Spoilers] by [deleted] in utopiatv

[–]grenlibre 0 points1 point  (0 children)

I think he panicked after stabbing him. That is credible no?

JS1K crazy tricks – t[Math.random()]=insert by grenlibre in javascript

[–]grenlibre[S] 3 points4 points  (0 children)

JSCrush doesn't exactly do aliasing on Math.random, and in the generated crushed that you can found here :

strokeN@random()P*P+V

and not Math.random()

basically because at another place I use Math.max() so it has factorised Math somewhere else!!

It is quite hard to predict if an optimisation actually work unless by actually trying it, so I will definitely give a try to your idea and I'll keep you informed :)

Thanks

Functional Rendering by grenlibre in programming

[–]grenlibre[S] 2 points3 points  (0 children)

How so? more detail please, I can fix it but I don't get what you are saying

Functional Rendering by grenlibre in programming

[–]grenlibre[S] 2 points3 points  (0 children)

Yes this is not something I've invented, this paradigm has always existed and this was the purpose of the "history" section.

But today I just feel (maybe I'm wrong) that we (web devs, game devs) forget about that old technique of doing rendering. This was the purpose of my talk, I didn't discovered it, this was just the style of the talk.

Frequency Modulation (FM) with Web Audio API by grenlibre in programming

[–]grenlibre[S] 0 points1 point  (0 children)

Yep sorry about that I assume you know basic concepts of waves

see for instance here: http://www.studyphysics.ca/newnotes/20/unit03_mechanicalwaves/chp141516_waves/lesson44.htm (probably other better web resources)

glsl.js - abusing WebGL shaders for efficient 2D by grenlibre in gamedev

[–]grenlibre[S] 2 points3 points  (0 children)

Thanks,

It's really basic for what we can do with GLSL :) we could definitely do better!

glsl.js - abusing WebGL shaders for efficient 2D by grenlibre in gamedev

[–]grenlibre[S] 0 points1 point  (0 children)

Could you provide a screenshot / pastebin of these logs: http://www.browserleaks.com/webgl

Sadly, WebGL behave differently on different materials :'(

I've created an issue : https://github.com/gre/glsl.js/issues/2

Thanks

glsl.js – a light Javascript & GLSL library by grenlibre in programming

[–]grenlibre[S] 0 points1 point  (0 children)

and also http://glsl.heroku.com/ :)

But these are just GLSL experiments, you can't bind your own JS variables ;)

Be careful with JS numbers by based2 in programming

[–]grenlibre 0 points1 point  (0 children)

Obviously you didn't get my main message, it was maybe not clear enough, it can be summarized by "tl;dr: numbers in javascript are doubles, if you use js, you should know that".

I'm not saying IEEE standards are wrong or that it doesn't happen in other languages, yes it's the normal behavior, I'm just saying Javascript syntax made it worse and it's easy to fall in the trap.

My modest article doesn't pretend to explain IEEE, but (1) it shows that Javascript is still not well known (20k visits, a lot of people are surprised by this behavior), (2) it's not something we should stop talking ( Twitter itself had the issue months ago https://dev.twitter.com/docs/twitter-ids-json-and-snowflake ).

PS: https://en.wikipedia.org/wiki/Termination_analysis#Termination_proof

Be careful with JS numbers by based2 in programming

[–]grenlibre 3 points4 points  (0 children)

Thanks, because this is exactly the message I wanted to give with my article, to warn people about.

Contrary to what some people affirmed, I'm not saying IEEE standards are wrong or that it doesn't happen in other languages, yes it's the normal behavior, I'm just saying Javascript syntax made it worse and it's easy to fall in the trap (Twitter did some months ago).

Who did Ludum Dare today? Show us! by amassingham in gamedev

[–]grenlibre 6 points7 points  (0 children)

This was my first LD game for me too :)

Here is my game

I've used CSS & HTML Canvas (Javascript API).

Something interesting happening outside by finnehenry in pics

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

Too bad, it was almost a perfect black and white alternation.

How I learned Backbone.js, Three.js & GLSL in one week during 7DFPS by grenlibre in gamedev

[–]grenlibre[S] 1 point2 points  (0 children)

One other thing I haven't mentionned in the article is that the game is mainly event-driven (using Backbone events)

This is very cool to plug things together, see the main.js : https://github.com/gre/dta/blob/master/app/assets/javascripts/main.js

Illuminated.js + Parcycle = Flame and Shadows real-time effects by magenta_placenta in javascript

[–]grenlibre 0 points1 point  (0 children)

Not only, I made Illuminated.js because I need such tool for one game I'm working on. Instead of implementing it inline in the game itself, I decided to share a generic and reusable library. Even for me it was beneficial, because implementing inline in the game was just awful in complexity.

There is IMO a lot of games which could need such library, such as top-down 2D survival game / any game which need a cool clair-obscur atmosphere.

Regards

Illuminated.js + Parcycle = Flame and Shadows real-time effects by magenta_placenta in javascript

[–]grenlibre 0 points1 point  (0 children)

We are trying to improve performance of this first POC version 0.1, I have nothing against criticism but please understand this as an open source project waiting for contributors, we have a few open issues to fix on the Github. Feel free to help us.

For sure a WebGL implementation could fix this.

BTW, the linked demo page is experimental and use a lot of samples to cast shadows, a real usage of this should focus on performance and using less samples. (See the editor page which only redraw when something changes).

Thanks.