« first day (2013 days earlier)      last day (3023 days later) » 

user92578
5:00 PM
What does Normalize do?
 
@KaareZ I think you're missing the point of abs
 
user92578
abs(-1) = 1
 
user92578
abs(1) = 1
 
all it does is convert negative numbers to positive
 
@KaareZ Never ever use implicit downcast from a floating point to int. There are several standards on how to do it, and so you just learn an idiom in one language/environment which will bite you in the arse in another one.
 
5:00 PM
it doesn't work the other way
 
@Tyyppi_77 i thought -1 when negative, 0 when positive ... but maybe not
 
abs(x) { if (x < 0) { return -x; } else return x; }
 
user92578
pretty sure that uses branching too wardy
 
@Tyyppi_77 normalize ?
 
user92578
yeah
 
5:01 PM
hmmm
 
Without knowing if - for example - -0.333 gets cast to -1 or 0 (both are possible), I don't even know what your original code is doing.
 
yeah, I'd prefer keeping everything in floating-point and using floor() or ceil() as appropriate
 
Guess I will stick with the if statement for now
 
otherwise, try a few methods.
Set up a benchmark test
 
user4704
@AlexandreVaillancourt That's fine, there's nothing wrong with concise descriptions.
 
5:03 PM
There are four standards for rounding: "towards 0", "towards closest infinity", "towards positive infinity" and "towards negative infinity" (the latter one is not used anywhere outside of joke languages, as far as I know). Different languages do it differently.
 
user4704
Tag wikis that have a bunch of "feature lists" or links to "tutorials and resources" tend ot end up getting a lot of junk edits to keep those lists up-to-date, which isn't really the point of the site or the wikis.
 
user4704
Tag wikis should document the context and use of the tag on the site, not document the thing being tagged, act as advertisement or marketing for that thing, or teach users how to use that thing.
 
user4704
@MartinSojka I like to round towards 4.
 
user4704
Just to screw with people's brains.
 
@JoshPetrie Yes, but you are evil.
So yeah, I'd try something like chunkPos = floor(globalPos / divider);, but check the documentation to make sure floor(...) actually does what you think it does with negative numbers (else look for something like round_down(...) and similar).
 
Jon
5:11 PM
wow
 
@JoshPetrie Yeah, there was a bunch of other "features" on the features page, but I thought that if users wanted to learn more, well.. click on the link to the engine's web site.. That page will be up to date!
 
user92578
5:25 PM
 
user92578
Finally got to replacing the god-awful WinAPI file dialogs
 
user92578
I might want to customize that dialog later to include like a small preview image of the level or something
 
user92578
Thumbnail!
 
user92578
that was the word I was looking for
 
user92578
5:29 PM
that's cool and fun
 
Jon
Yeah, that is essentially the ios version
 
It's pretty cool. I'm back to the having a valid configuration and not winning is annoying camp...
 
Jon
the code for it is really bad at this point, lol
but it is done.
optimized -- just ugly
 
Some of the later levels there are two configurations that are equally valid from an aesthetics point of view, but it just isn't a win.
 
Jon
like.. lots of duplication
@PearsonArtPhoto try it again now
 
5:34 PM
Duplication happens.
 
Jon
I added something for you
 
:-)
I'll try it when I get home with my tablet.
 
Jon
ok, i updated the android version too, so get 1.20
and it goes "DUUUHHH DUHHHH!"
 
Hmmm.
Well, at least it lets you know there's something off.
I see you can't drag across rows/columns anymore, which is probably a good thing.
It's obvious that something was wrong (Tested hard 16), but... No sound testing, unfortunately.
Will have to try it at home when I can do a better test of it.
Add any more levels?
 
Jon
no
was mainly a ios port
 
5:40 PM
Ahhh.
It's a very nicely done app overall, I must say.
 
@Tyyppi_77 The level editor crashed anytime I clicked anything
 
Jon
thanks
 
It is broken if you ask me.
 
Jon
The drag thing, is an option too.. so if you don't like it, you can disable it
 
The problem is, if I want it or not it'd be level specific.
There are some levels where dragging across rows is handy. Most of the time it isn't.
 
Jon
5:42 PM
ah, well that wasn't planned, hehe
 
If you edit the main level then it might be worth considering adding a checkbox on the level to set it. Not a huge issue, mind you, but...
 
Jon
or just a options menu popup woudl have been a better idea
oh well maybe some day I will do that
 
Yeah, that too.
Nah, keep working on procedurally generated worlds:-)
I think my world is going to eventually depend in large part on Perlin noise generation. I'm still trying to figure that out, but... It will be more than meets the eyes.
I think I'll use it somehow in my supply/demand factoring.
 
Jon
6:36 PM
holy shit
i'm the featured article on gamasutra
6
dead center
 
FUCK YEAH
shame we don't have the game up on the store yet
(not blaming you for that)
 
Jon
it is ready
android version was updated
 
I'll get it built tonight
 
Jon
i'll get you the free build tonight too
 
will take around 5 days for apple to approve the app
 
Jon
6:42 PM
apple is soooooo slow
I hand picked some levels for the free version
better experience in the free version
 
:)
 
How far along is your ship trading game?
 
who
 
Jon
pre-foxtrot
 
6:46 PM
So far as I know we are the only two people who hang out here who are working on such a game...
That'd be bad if there were even more of us...
 
Good evening.
 
Jon
@PearsonArtPhoto i'm not really working on that game, i was just having fun
 
Jon
It is just too ambitious
 
I'm trying to do both at the same time:-)
 
Jon
6:50 PM
plus, there is another game I need to finish first.
 
Yeah, I know what you mean... The further I get into it, the more ambitious I realize it is, not to mention the trying to get such a game out there.
 
Jon
I'm intending on releasing it all open sourced along with tutorial
 
I have no idea what I'll end up doing with my stuff.
So far I've released 4 files of it as open sourced, but I'm not sure what I'll do about the rest...
 
Jon
I already wrote a draft of the 2d world rendering
 
@Jon block game?
 
6:55 PM
The truth is that I've studied enough about procedural generation now between your blog articles, a Udemy class, and some really good YouTube videos that I just need to sit down and do it.
 
Jon
that is the next game, @Almo yeah
 
good choice
:)
 
Jon
yeah :)
 
Got you some nice looking tool, Windy
It is able to convert textures from a design resolution to 1080p ratio.
 
Jon
why would I need that?
 
6:58 PM
Also it is able to convert textures to TMX map files.
 
Quick question: How do I get a point that's "above" a GameObject?
 
Jon
@Garan you could set a child GameObject where you want the point to be, and check the transform position
Or , calculate it based on the transform position and scale
 
What do you mean by above?
2-D or 3-D, UI or in game?
 
We achieved compression of >2 gigabytes textures to around 1.5 megabytes with TMX compression and indexing.
 
Jon
@VictorLopez what is the usage ?
What can I do with a uncompressed texture?
 
7:00 PM
@Jon compile, run, choose a texture, choose the output, for resize, for tmx just input a png and output a tmx map file.
 
@Jon How about if I want a point along a line defined by two Vector3s?
 
I'll upload the sample so that you can see what you can do with a png texture.
 
Jon
cool
Yeah, I'm not a designer, so I'm not quite sure how useful this is
 
What's the best way to increase the size of an image without data loss
 
Jon
@Garan a line defined by two Vector3s?
you mean, pointA, pointB?
 
7:03 PM
@hasherr depends on the image and how it's encoded
 
Agh
 
the usual answer to any "best way to..." question.
 
@Garan Maybe a quick image of what you want would be helpful?
 
Jon
(PointB - PointA).Normalize() * distance
 
This guy made my logo but he sent me the smallest possible images
 
7:03 PM
Like if it's an SVG, making it bigger is no trouble at all
 
@Almo "It Depends" is probably the best answer to almost any question.
 
I'm having a hard time using it on a mobile screen because phones are so pixel dense
 
Not if the question is specified well-enough.
"What's the best way to enlarge an SVG?" Answer: "Just scale it, since it's vector, there's no problem"
@hasherr you can't fix it if it's already rasterized.
it will look shitty
you need better resolution from the artist
 
I suppose there are a few cases where it isn't the case...
 
Jon
 
7:05 PM
Lots of questions have definitive answers
 
Fuck.
 
We addressed that, the artist draws a sketch, resizes and then re-works the hd image.
 
it's the whole reason for SE sites requiring well-specified questions
 
It depends isn't always the best answer, but it is almost always an answer.
But okay, I get your point.
 
Jon
write it 100 times on a piece of paper
 
7:07 PM
if the question itself specifies enough, then "it depends" becomes less likely an answer because they already told us the stuff it depends on.
hasherr's question was pretty vague.
which is ok here in chat
we can ask for clarifications
 
Jon
you know it
 
:)
 
Often if the question is so defined there is only one right answer, then the answer should be obvious.
 
"should"
:D
 
There's also a reason why more than one answer is not only allowed, but encouraged on SE.
 
@PearsonArtPhoto yup
 
@Jon Neat, thanks.
(I really should have thought of that on my own)
 
Jon
No problem
 
Samples are here
 
Jon
 
7:15 PM
@Jon 81920 x 10240
 
Jon
yeah i can't even open it lol
i still do not understand why I would need a texture that big?
 
1080p platformers. Map files. The TMX map file is only 1.35 megabytes and the other 4 textures are barely 257 kilobytes. You can even reduce more the 257 kilobytes with pvr.
 
Jon
ah, i see
 
So if your device does not have enough video memory cough 3ds cough you will need to think in several compression formats. Techniques.
 
Jon
cool
 
Jon
closed source, boooooo
 
7:39 PM
It was lame that (probably by contract) Manning had to say in the postgame interview that he was going to go drink some Bud. I know advertisers are big money in that business, but I thought that was going a little too far.
 
Jon
heh... dude -- if you play professional sports, you are owned
You are literally an investment to some very rich people
 
user92578
@AidanMueller Oh yeah, I just realized that I had left a hard coded resource path there. That's probably the cause of that. So not really that broken I think
 
Jon
Only way to get around it, is to NOT play professionally.
 
I just felt that having to say that when he's not on ad time was odd. I can see the answer "all time is ad time" at that level, but it still bugs me. :)
When I'm a pro LoL player, I'll ahve to say I'm using Logitech mice, I suppose.
 
Jon
He was on TV during superbowl.. THAT WAS AD TIME
 
7:43 PM
:D
 
Jon
probably a million rednecks got shitfaced on budweiser after that
WOOOOOOO, IMMA DRINK LOTS A BEER TOOOOO
I did this on my phone -- on the last OS update (android) -- they forced facebook on me
So I can disable it -- but it still takes 120MB of my phone unless I root it
 
@Jon Wait, really? Damn.
That's some evil stuff there.
 
Jon
It continually checks up on you
same with the messenger app
 
I remember the first time the app told me someone was nearby.
 
Jon
Since I disabled facebook+messenger -- my phone's battery last longer and it is faster overall
 
user4704
7:46 PM
Facebook alleged engineering culture does not lead to battery-optimal scenarios.
 
My thought was "Well, that's neat... and really, REALLY creepy."
 
Jon
yeah, it works on a pull system
so when you get notification of a new text -- it is not facebook sending it to you -- it is your app requesting it
 
That seems... good for relieving server load, but TERRIBLE for the client.
 
@Jon woa shit
I have FB on my phone, but if I didn't want it, I'd be pretty pissed off if I were required to have it.
that's wrong man
 
I thought it was pretty common knowledge that facebook wasn't using push for everything.
 
7:51 PM
Facebook uses php.
crazy fuckers
2
 
That moment when I click on something in the game I'm working (that's supposed to move the camera!) and the camera goes off in a completely unexpected direction...
 
Jon
Yeah, HTC now has a contract to force FB on their phones now I guess.
No fucken reason for it... and if you ask me, it is very sketchy
 
@Almo That there is a crime.
PHP is just bad.
 
Jon
PHP is fine
 
^
 
7:52 PM
it's really funny
 
Jon
first of all, it runs natively on linux
And you can get linux servers for a heck of a lot cheaper than windows servers
well.. natively... granted you install PHP on your server
 
php is bad. but it can be used with care. like many tools with issues, Javascript included.
 
Jon
You can't beat free
 
(I used php for my webserver, no complaints)
 
@Almo Probably, though it would have been around 2.5 years ago when I actually used it.
 
7:53 PM
There are better free things than php
 
@Jon Perl also runs natively on Linux. Your point?
 
PHP7 is doing quite a bit of work to get rid of some of the legacy concerns - and facebook has been doing a lot of nice work for virutuliziation and compilation of php
 
Jon
Point is, it is cheaper than running asp.net
And what other alternatives do you really have?
javascript solutions
 
Swift may be pretty interesting as a php replacement eventually.
 
JavaScript has actually proven to be pretty effective at backends, it turns out.
 
Jon
7:56 PM
does it scale ?
 
Just spent the most time hunting down javascript memory leaks. Super fun times.
 
@Jon Ah. Good point. Not sure.
 
Jon
Personally, I like to leave my javascript client side :)
 
I've heard good things about Ada web server, if I ever end up on a government job I'll definitely check it out.
 
Jon
lol
 
7:57 PM
lol
 
Would this be off topic?
6
Q: Parsing .sc2replay files

GpxHow do I parse StarCraft 2 replay files (.sc2replay)? Is there an API? I know of Sc2gears, but it doesn't quite fulfil my needs.

 
Doesn't seem like development, so I'd say yeah.
 
Jon
2011
 
By the way, I'm quite liking the integration Unity now has with Visual Studio.
 
Jon
It has had it for a while, via way of plugin
 
7:59 PM
I've only just gotten back to it after a hiatus of around a year.
(I was also really lazy at updating Visual)
 
Jon
 
Voted to close it.
 
Jon
should we be closing old questions like that?
I think the information is clearly valuable to some peo0ple... i wouldn't want this to be deleted
If it could be moved
 
Closing a question does not delete it. It's just that it will no longer be able to receive answers.
 
Jon
ah ok
carry on then
 
8:03 PM
The information will still be there, users will still be able to vote and comment... it's just that it's not game development per se, IMHO.
 
Oops. I just realized the VERY important lesson of remembering that child transforms don't play well with world space.
 
"I challenge you to design and implement a new language in 2 weeks and have it come out as well as Javascript." - Douglas Crockford
2
 
Oh my god I just spent hours on a bug that turned out to be incrementing i in an inner loop where I should be incrementing j.
 
This, this is why when it counts I make the interval actually something. i < userInterval
 
Jon
sometimes, a bug will drive you mad
 
8:14 PM
@Lokkij I used to do that all the time when I was working with 2d maps. That's why I switched to row and column for variable names.
 
C also has the worst error messages. I was actually running it in valgrind, which made it seem like I had some kind of memory management problem.
I'm pretty sure I would've caught it much more quickly in most other languages.
 
@Lokkij I'm pretty sure I've done almost the exact same thing...
Actually, it was x instead of y, but yeah, same thing.
 
user4704
This is why I stopped naming things i and j.
 
I often use i still, but never for a 2d matrix.
 
Jon
eye and jay
2
 
8:20 PM
I couldn't think of a better name; I basically have to arrays of sentences that need to be checked against eachother
I'm also surprised our professor constantly uses unnecessary abbreviations for variables in the slides -- li rather than list, that sort of thing
 
user4704
For slides and presentations, wrapping is often really ugly, so that's common.
 
Hmm fair enough
 
user4704
Often you need a real big text size, and 16 character lines are hard :D
 
Jon
I was once paired up with this idiot in a computer class in university
Had to create a powerpoint presentation on any topic -- he wanted to do it on wrestling
Man it was really bad.
 
0
Q: How do I build a 3D array result set from a compute shader in unity?

WardyI took this right down to the absolute most basic scenario but for some reason I can't get anything back from the GPU when this completes, could someone explain what I am doing wrong ... Here's my CPU code: using (var debugBuffer = new ComputeBuffer(27, sizeof(int))) { var kernel = compute....

did i do something daft wrong here?
wierd that my voxel gen works but this (used to be my mesh gen) ... is rediculous
 
8:25 PM
@Jon ohhhh myyyy
[takei intensifies]
 
Jon
I wish I had it
i havea a directory with shit from university
holy shit i think i might have it
 
Wait, was it TV wrestling or high school/college wrestling?
'Cause I wrestled in high school. That sport is actually really complex and if you can explain the complexity well it could be really interesting.
 
Jon
no.. WWF wrestling
Yeah, I don't seem to have it
 
Oh. That's disappointing.
 
Jon
I made a power supply
programmable timer
 
8:34 PM
oh man, guys
for those who don't know, I perform in a Rocky Horror shadowcast
 
Jon
literally a bomb mechanism nowadays
if someone made this, probably be kicked out of school
 
one of the original background actors just found the Facebook event page for our latest show, and posted that he'd like to come see us perform. We're in Wisconsin. He's in Slough, UK.
#nerdingout
 
@Jon At least you'll get to meet the president before moving to Qatar!
 
Jon
lol
I still have all the parts for it here.. i could reassemble it
 
Qatar doesn't sound so bad
 
Jon
8:37 PM
but nowadays, it is easier to get a raspPi
 
GDP per capita is around $93k USD
 
Jon
connect a couple pinouts
program via software
 
plus I heard Doha is quite the pretty city
 
only flag in the world with purple on it
2
 
Way too hot.
@ShotgunNinja The weather is terrible.
 
8:39 PM
@Almo you mean only national flag
 
yeah
 
There are flags with purple on them at every gay pride event I've ever gone to
#millenialsexualawareness
anywho, I live in Wisconsin. Blazing summers, freezing winters, I've dealt with extremes before.
 
yeah wisconsin weather sucks
 
Jon
whoa
i found an article I wrote in 2003
 
:D
 
8:42 PM
Should I congratulate you or offer condolences?
 
Jon
don't judge
was actually 2002
it is pretty bad, lol
Glad to say I've come a long way since then.
 
@Jon Featured right now is by Lars Doucet. I don't see yours.
 
Jon
it moved down the list since then lol
i was up there for like 3-4 hours
getting a lot of traffic on my site
 
What is it called.
 
8:56 PM
?
Kewel.
 
Jon
on the main page, it is called "Techniques for procedurally generating.."
they ahve been taking care of links and stuff for me
which i am pretty sure they don't typically do
 
@Jon Does that map wrap?
 
Jon
yeah
 
Because I was actually wondering how to generate tileable noise.
How do you do that?
 
Jon
its on github
but here
it is all explained
 
8:59 PM
Yay! The tiny bit of work I managed to do tonight worked (with a corner case that's not too important right now but will need to be fixed at some point)!
 
Jon
start from the top actually
 

« first day (2013 days earlier)      last day (3023 days later) »