« first day (1905 days earlier)      last day (2932 days later) » 

10:00 PM
@QPaysTaxes that is irrelevant and relatable
 
@QPaysTaxes wow, you must have a lot of porn games
do you really need all of them?
 
@HelkaHomba I was just going to say
 
@AlexA. So was I, actually o_o
 
@QPaysTaxes oh ok
 
7
A: Java collision detection between two Shape objects?

user2221343Not tested, but why not: import java.awt.geom.Area; ... public static boolean testIntersection(Shape shapeA, Shape shapeB) { Area areaA = new Area(shapeA); areaA.intersect(new Area(shapeB)); return !areaA.isEmpty(); } Area implements Shape, but adds some potentially useful methods

When Java is less verbose
 
10:03 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ that doesn't sound right..
 
@Downgoat Read the question and answer :|
@QPaysTaxes Yeah.
 
oh ok
 
I need to do that in JavaScript now ;_;
 
@QPaysTaxes ooh how bout this: store all your "archives" in the cloud, and download the specific ones you need every weekend before you leave
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Because Java has a lot of built-in geometry functions
 
10:04 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ it's not that hard
 
It's actually very useful.
 
7 messages moved to Trash
 
just lookup "collision.js"
 
I don't need a library for that, do I?
 
@AlexA. Those probably should have been trashcanned not trashed
@CᴏɴᴏʀO'Bʀɪᴇɴ No
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no need to reinvent the wheel though
 
> Alex A. has invited you to join Trash.
:S
 
In geometry, the minimum or smallest bounding or enclosing box for a point set (S) in N dimensions is the box with the smallest measure (area, volume, or hypervolume in higher dimensions) within which all the points lie. When other kinds of measure are used, the minimum box is usually called accordingly, e.g., "minimum-perimeter bounding box". The minimum bounding box of a point set is the same as the minimum bounding box of its convex hull, a fact which may be used heuristically to speed up computation. The term "box"/"hyperrectangle" comes from its usage in the Cartesian coordinate system, where...
 
@quartata Who cares
 
@AlexA. I do
 
10:05 PM
@Downgoat But that's the only thing I need
 
I am nitpick extraordinaire
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah
 
eyy SO to the rescue
 
@HelkaHomba That's a thing that happens when a message gets relocated
 
@quartata how is this helpful?
 
@QPaysTaxes what about my earlier suggestion?
I recommend google photos which gives unlimited storage
 
31
Q: Javascript: Collision detection

jack moorecould someone please help me to understand how collision detection works in JS? I can't use jQuery or gameQuery - already using prototype - so, I'm looking for something very simple. Not asking for complete solution, just point me to the right direction. Let's say there's: <div id="ball"></div>...

 
@CᴏɴᴏʀO'Bʀɪᴇɴ Calculate it for your shapes
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Makes me wonder if games like Minecraft can vastly optimize their collision (and rendering) engines, since practically everything is a 90 degree angle.
 
Then it's just telling whether or not two rectangles are intersecting
ez
 
10:07 PM
@HelkaHomba That;s true
@quartata But wouldn't you run into edge cases?
 
@HelkaHomba probably since cubes are simple
 
and thanks @Downgoat :D
 
@HelkaHomba I'd be surprised if they haven't done so already.
 
@quartata but inaccurate for circles, which is what Conor wants
 
@CᴏɴᴏʀO'Bʀɪᴇɴ np :)
 
10:07 PM
@Maltysen Oh, I didn't see circles mentioned.
 
hopefully one of them works ^^"
 
@El'endiaStarman Minecraft is very poorly optimized, although the physics is relatively good.
 
@quartata Really?
 
@MarsUltor yes
 
10:09 PM
So, Separating Axis Theorem is sufficient because any concave shape can be decomposed into convex shapes, right?
 
@quartata The rendering in Minecraft is pretty well optimized though
 
No it's not.
 
@QPaysTaxes at home?
 
It has no visibility checks.
 
@Downgoat this looks really nice
 
10:09 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ SAT doesn't work with concave shapes if that's what you mean
 
Well, outside of render distance.
 
@MarsUltor Why do I still see chunk error sometimes :/
 
@HelkaHomba @quartata: Speaking of which, I read this very cool blog post (and its sequel) last year: The Advanced Cave Culling Algorithm™, or, making Minecraft faster.
 
@Downgoat But if I decompose the concave shapes into convex shapes, it should work, right?
 
¯\_(ツ)_/¯ I guess
 
10:10 PM
@quartata It does have visibility checks. Which the post I just linked shows. :P
 
@El'endiaStarman That's MCPE.
 
??? Minecraft does have visibility checks, otherwise it wouldn't run very well at all
@quartata All minecraft
 
> On top of that, it gave a nice speed boost to Minecraft PC after it was backported :)
 
in PPCG Minecraft Server, 58 secs ago, by Helka Homba
Is there any instance of a non-90 degree angle in vanilla Minecraft in a single movable "thing"?
> vanilla
 
@CᴏɴᴏʀO'Bʀɪᴇɴ leaving this week again. Q_Q
 
10:13 PM
HI @EasterlyIrk
 
same reason.....
 
BAI!
:(
 
Find a GF, that'll help.
 
oh my profile now says that
and working on it. :P
 
10:14 PM
;) go get 'em
BAI :(
 
@HelkaHomba The dragon's head?
 
RIP our easter cat
 
You
Hello
 
You
10:20 PM
@HelkaHomba Mods can add mobs with weird angles.
@CᴏɴᴏʀO'Bʀɪᴇɴ HellO1
Oh. I didn't read the chat history. :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ also tell me to get my ass off so I don't lose access for another week if you see me after the next 30 seconds after this message.
BAI
@CᴏɴᴏʀO'Bʀɪᴇɴ thx but Q_Q ikr
:3
 
@EasterlyIrk GET OUT OF HERE
<3
 
oh shit >.<
 
You
:P
If you want to get out of here, then get out. Otherwise, I'll never give you up. ;)
 
@You Maybe the better question is could the whole game be drawn normally if only rectangles (and not triangles) could be rendered?
 
You
10:24 PM
@HelkaHomba I suppose. But you'll have to use a different system of rendering.
Blender creates models that, by default, are made out of rectangles and not triangles.
 
@You Depending on how you do it.
 
You
@El'endiaStarman Usually, I keep the rectangles. :P
Usually
 
I mean is there any texture in Minecraft that actually requires the use of triangles instead of rectangles.
 
You
Although quadrangles would work better than rectangles. :)
@HelkaHomba A texture, no. (Actually, textures are drawn as boxes anyway.)
 
@HelkaHomba I presume you're talking blocks and not mobs or entities, right?
 
10:27 PM
Anything (in plain vanilla)
 
Ender Dragon has plenty of triangular bits.
Eggs are not rectangular.
Bows.
 
You
Actually, eggs are made out of rectangles.
 
> NOTE: This is slightly slower than SAT.testPolygonCircle as it just calls that and reverses the result
What should I do? Slower but more readable, or faster and less readable?
 
Hmm, point.
 
You
@CᴏɴᴏʀO'Bʀɪᴇɴ Why is negotiating slower by a decent amount?
 
10:29 PM
@El'endiaStarman Perhaps, but even his wings seem pixelated
 
You
NEGATATING!!!
 
You
Autocorrect.
 
@HelkaHomba The webby parts don't really look like it. Unless you're talking about how it's jagged along the edge.
 
You
Idk, I don't see any triangles.
They are probably webbed because of shaders or something.
 
10:32 PM
@El'endiaStarman Yeah. Pixelated way more that just monitor resolution -> could be drawn with rectangles.
 
You
Either way, everything is made out of rectangles and not triangles because of pixels. :)
 
You know we have a room for Minecraft stuff... Just sayin'
 
You
@AlexA. :P
 

 PPCG Minecraft Server

Server closed. Files: github.com/HelkaHomba/ppcgmc1.9 New serv...
@AlexA. I know but more people in here
 
You
I came here to chat, not to chat about stuff. :)
I will chat about whatever is chatted about.
 
You
The things of the internet. Sigh
 
This is one of them.
Ugh I have to implement a repulsion technique :(
 
Welcome to the really difficult world of collision checking. :P
Also, I spotted that Minecraft window. :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ And stop getting distracted my minecraft ;P
noo, ninja'd kinda :l
 
@El'endiaStarman Oh, yeah. Spacewars
And what minecraft? :P
 
You
10:59 PM
:P
I'm trying to make a language for code golfing.
Now I have Python errors and my own new errors. :(
 
What is it called?
 
You
11:16 PM
raLic, for now.
It's an acronym.
RAndom
Language
I
Created
(But maybe raLuc would fit better. (RAndom Language You Created))
 
Just scrap the acronyms and call it "Relic"!
 
You
11:32 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ That's actually a good idea!
I refactored everything. Now onto fixing everything. :(
Nothing works. Everything is on fire. Quick, save the artifacts! (No, not the JPEG artifacts, the museum artifacts!)
 
@El'endiaStarman sounds exciting, it's still not easier to pronounce though :/
 
@Downgoat hahaha :P
@ANerd-I Dat alt-text. ._.
 
@El'endiaStarman I know. I'm trying to find all the infinite loops. I've found 4 so far :P
 
@ANerd-I o_o
 
11:55 PM
As a person who will eventually enter the medical field (likely as a surgeon) this chart is very interesting to me.
Though something tells me a doctor shouldn't take information without verification from XKCD.
 
@ANerd-I please do not use this chart on an actual patient please
 
@Downgoat I'll remember this advice in 14-18 years when I'm licensed to perform
 
You
Now I can finally become a doctor with this chart! :)
MUAHAHAHA!!!
 
@ANerd-I o_o
@You O_O
@You stop that you sound like Marky! :P
 
You
(When the patient sees the chart and notices xkcd, they'll run away. :P)
@Downgoat Who's Marky?
 
11:58 PM
@You he is an evil chatbot made by @Geobits
he tends to have homicidal thoughts
and kill people/animals
and then use their skin to make a body for himself
gruesome, I know
 
You
That sounds like me. :)
 
O_O
 
You
Yeah, Marky's been upgraded to post riddles and code and such...
 

« first day (1905 days earlier)      last day (2932 days later) »