These are chat archives for arenanet/api-cdi

22nd
Oct 2017
smiley
@codemasher
Oct 22 2017 00:03
umm hey, is there something more reliable than https://httpbin.org to test http stuff?
file_get_contents(https://httpbin.org/put?foo=bar): failed to open stream: HTTP request failed! HTTP/1.1 408 Request Timeout
Medyro
@Medyro
Oct 22 2017 04:26
Should https://api.guildwars2.com/v2/items?id=79883 really be on the API? Probably not, right?
@codemasher file_get_contents sounds to me much like it would do a HTTP-GET rather than a HTTP-PUT. Have you tryed it with https://httpbin.org/get?foo=bar instead?
smiley
@codemasher
Oct 22 2017 04:29
depends on the provided stream context
Medyro
@Medyro
Oct 22 2017 04:33
Ok, nevermind then. Also, i barely done anything with php so please don't expect all to much.
Medyro
@Medyro
Oct 22 2017 04:40
If i may ask if you tryed one more thing tough: https://httpbin.org/anything ?
smiley
@codemasher
Oct 22 2017 04:41
actually i asked for a different service than httpbin because... Request Timeout
i get these randomly on any endpoint there
with different HTTP clients
Medyro
@Medyro
Oct 22 2017 04:44
Oh.. I guess i should not try to help People while being tired, sorry.
smiley
@codemasher
Oct 22 2017 04:44
maybe
windwarrior
@windwarrior
Oct 22 2017 13:26
why is graphics programming so hard
Archomeda
@Archomeda
Oct 22 2017 13:37
well, it doesn't seem to be 470 loc
like 70% is comments
windwarrior
@windwarrior
Oct 22 2017 13:40
yeah true, but it still is quite a lot of concepts
command queues, swap chains
Archomeda
@Archomeda
Oct 22 2017 13:40
fair
by no means meant to be exhaustive, just you know, for things like the build editor like the one of @madou
only accepts ids?=listofids, but can trivially be extended
BoyC
@BoyC
Oct 22 2017 17:00
@windwarrior the new low level APIs basically make you write much of what the driver was doing before so it's gonna be more complicated
windwarrior
@windwarrior
Oct 22 2017 17:21
yeah, I get that
I just found graphics programming quite abstract to begin with
Enno G.
@SchoolGuy
Oct 22 2017 17:22
seems like colors are down :/
anyone any idea when they are up again?
windwarrior
@windwarrior
Oct 22 2017 17:22
before 2020
(probably)
but no :(
Enno G.
@SchoolGuy
Oct 22 2017 17:23
ok why where there down in the first place down?
windwarrior
@windwarrior
Oct 22 2017 17:23
it broke with PoF
Enno G.
@SchoolGuy
Oct 22 2017 17:24
ok that is quite uncomfortable.... so, any ideas when they are up again?
smiley
@codemasher
Oct 22 2017 17:25
soon(TM)
Enno G.
@SchoolGuy
Oct 22 2017 17:25
hahahaha :D
windwarrior
@windwarrior
Oct 22 2017 17:25
in all seriousness, I think @lye fixed the issue, but it was in C++ code
so it has to go through the release process
Enno G.
@SchoolGuy
Oct 22 2017 17:26
ok sounds good, so should only be a few days till it's fixed, right?
smiley
@codemasher
Oct 22 2017 17:27
patience, young padawan. we're all waiting for it ;) codemasher/gw2-database@046fd3c
Enno G.
@SchoolGuy
Oct 22 2017 17:28
okokok I think a have anyway a lot of other endpoints to parse and they are not going to code themselves, so I think I will just move on and test it another day
thanks for your help guys, bye!
windwarrior
@windwarrior
Oct 22 2017 18:07
@boyc you probably know this: was looking for a way to (dynamically) make sharp shadows in webgl
Like shadow maps have artifacts all over, and shadow volumes perform badly on modern hardware right
I got … distracted by Vulcan tho
BoyC
@BoyC
Oct 22 2017 19:23
heh
well
shadows are one of those things that don't have an easy answer
shadow maps in some form are the goto solution nowadays
so define "sharp" :)
windwarrior
@windwarrior
Oct 22 2017 19:27
Well, with shadow volumes ala doom you get sharp edges based on the geometry of object, with shadow maps you are bound to the resolution of you shadow map, right? You get ‘jaggies’ with shadow maps
I want like google material design esque shadows for simple primitives
But then in 3D
BoyC
@BoyC
Oct 22 2017 19:42
google material has soft shadows afaik
yep
That effect
Which is not a shadow at all, but you know what I mean, hard lined shadows
My describing needs work lol
BoyC
@BoyC
Oct 22 2017 19:48
yeah well you can do that with shadow volumes only if you want it to be pixel correct for all scenarios
however you'll have problems with anything that's alpha tested
and as you said, the hw is better suited for shadow maps
windwarrior
@windwarrior
Oct 22 2017 19:50
Yeah I found geometry shaders to make shadow volumes, but no GSes in webgl
BoyC
@BoyC
Oct 22 2017 19:50
what do you want to render exactly?
windwarrior
@windwarrior
Oct 22 2017 19:51
Well an abstract voxel like world with bright colors and sharp shadows
No need for realism, just bright colors and sharp shadows haha
But it’s hobby for sure, I am always intrigued by graphics programming
BoyC
@BoyC
Oct 22 2017 19:53
well if you have a voxel world you might be able to find some specific algorithms
if it's voxel-like, those may not apply
windwarrior
@windwarrior
Oct 22 2017 19:54
Well blocks will align to the grid, but shadows don’t have to
BoyC
@BoyC
Oct 22 2017 19:54
and are you rendering cubes?
windwarrior
@windwarrior
Oct 22 2017 19:55
(I have no lines of code right, I am just finding techniques)
BoyC
@BoyC
Oct 22 2017 19:55
look into how minecraft shadow mods work
windwarrior
@windwarrior
Oct 22 2017 19:55
Well that would be acceptable
BoyC
@BoyC
Oct 22 2017 19:55
but prolly with shadowmaps :)
windwarrior
@windwarrior
Oct 22 2017 19:55
Isn’t that shadow mapped?
Yeah, I think I have had that before
BoyC
@BoyC
Oct 22 2017 19:55
shadowmaps can result in pretty crisp shadows if done right
windwarrior
@windwarrior
Oct 22 2017 19:56
Well they weren’t when I had them in MC haha
BoyC
@BoyC
Oct 22 2017 19:56
but if you're doing only cubes you can fake volume shadows
with a vertex shader
take the cube, look where the light is hitting it, and keep those vertices in place, and distort the rest by moving them away from their original position in the direction away from the light
boom, instant shadow volume
should work for any convex object
windwarrior
@windwarrior
Oct 22 2017 20:11
I will get back to this when I have written some code
might be after my thesis deadline ;)
thanks tho!