« first day (3913 days earlier)      last day (1090 days later) » 

1:37 PM
0
Q: How to make a z-depth buffer with pygame?

Michael IakimenkoI am making a 3d renderer with python and so far am sorting the triangles which I want to replace with a z-depth buffer. The thing is, I don't know how to make a z-depth buffer in pygame. I still want it to be playable however. By the way, I am using pygame polygons.

I'm pretty sure this has come up before, but not with pygame, and I can't find a source for a dupe.
 
Looking to see if I find something more likely...
^ That was the most likely thing I found searching on "depth buffer" sorting is:q
 
1:56 PM
Thanks!
 
I also did a quick scan of much lengthy results of searching [depth-buffer] is:q and turned this one up: Depth interpolation for z-buffer, with scanline
 
I had this question in mind, that I managed to find again, but it's not exactly what they're after.
 
Makes sense - related, but your right, not quit the same thing.
Also, morning y'all.
 
2:12 PM
Hello!
@Pikalek You might want to add a link to that question in the comments if you feel like it, since you're the one who found out about it.
 
The spice must flow, it has been done.
 
Thanks!
 
I also prodded for some details as it has some of the markings of an XY.
 
2:28 PM
Good call.
 
Another issue I have with this question is that it's a crosspost of SO; so depending on whether the question could be viable here or not, that influences the comment I leave.
 
Ah, good catch - I didn't bother to screen for that.
I should probably be looking for that by default on new user posts; kinda surprised the system doesn't screen for it.
@DMGregory Thanks, I appreciate the feedback!
Has anyone heard the term "flick screen" before?
I was looking for something & came across this:
"Nodes of Yesod is a flick-screen platform game."
But the link for the term doesn't give any deets.
 
Yes, but only in the last week or so. It was referring to a mobile control scheme where you swipe to change direction.
 
user92578
Link goes to "flip-screen", I wonder if there's a typo somewhere
 
@Tyyppi_77 Ah, that might be it. It's a NES era Metroid style game.
I was actually looking for Catacombs & Castles, a board game that involves flicking pieces.
So rather surprised when a metroid-like showed up.
 
 
1 hour later…
4:03 PM
I have an issue. I found a suggested edit that removes a false part of the answer. Should I allow that edit in?
 
Does it improve the answer?
 
Got a link?
 
It's on Arqade. It just removes an incorrect fact.
 
You need to "improve" the edit.
Although the "false" part is removed, it leaves the rest of the post broken: it's as if there should be more than one item but there is only one in the list.
 
Agreed.
 
4:07 PM
Ok. I'll try to do that then.
 
 
2 hours later…
6:09 PM
Got nerdsniped by an interview question on Twitter: you have 25 horses, and you want to figure out which are the three fastest. You can race only 5 at a time, and you have no stopwatch. How do you determine the top 3 in as few races as possible?
 
I go and buy a stopwatch, and do it in five races.
 
I like that answer!
 
I guess if I can run two races in the time you're out at the store, I might still finish faster. πŸ˜‰
 
@DMGregory woa that's cool
 
6:22 PM
psh, the criteria wasn't time! Those horses need rest between races! :D
 
Yeah. It's really a computer algorithm question that generalizes poorly to animals.
 
6:33 PM
you're right, i'm just getting technical lol. i think your response is good, your solution's great in a pinch.
 
Apparently those questions don't filter well for good applicants.
(what I've read anyway)
 
i think my real-world answer to these questions would include pointing out that the reason companies ask brain teasers in interviews is because Google started doing it, but ten years ago Google realised it was a waste of time and had no predictive value.
@Almo yes, absolutely
 
ahhah yeah
 
The other end of the spectrum is also bad.
 
> This interview with Laszlo Bock, senior vice president of people operations at Google, was conducted and condensed by Adam Bryant.

[...] Q. Other insights from the studies you’ve already done?

A. On the hiring side, we found that brainteasers are a complete waste of time. How many golf balls can you fit into an airplane? How many gas stations in Manhattan? A complete waste of time. They don’t predict anything. They serve primarily to make the interviewer feel smart. [...]

β€” https://www.nytimes.com/2013/06/20/business/in-head-hunting-big-data-may-not-be-such-a-big-deal.html
 
6:39 PM
I've read of artist / graphic design interviews that basically amounted to "do this block of contract work for us".
So it real world stuff for the hiring company, but they're also squeezing free work from applicants.
Usually there's something in the contract that prevents applicants from even using the work submitted as portfolio material.
 
Oof, yes, that is a real threat for interview work
production by interview
 
I don't like to post declaratives w/out a reference; here's a piece by Slate: Job Candidates Aren’t Free Labor
Not art specific, as the concept can be applied in general.
I get that hiring is a difficult problem though.
 
:(
 
7:09 PM
I've seen someone articulate how they'd respond to that: basically to say this work seems excessive for interview purposes, and they're willing to hash out a work-for-hire contract with them, but they're declining the interview.
(naturally you do not proceed to try to become the employee of a company this shady)
 
Good advice.
 
 
1 hour later…
8:25 PM
user image
3
Oops
 
Great job!
Or did you already have that?
 
An upvote-accept just nudged it over the 100k mark.
 
πŸŽ‰
 
1
A: Geometric clipping of triangles intersecting near plane

DMGregory why we can't just interpolate our z values to test if the point is behind or in front of the near plane? Because a vertex that's behind the near plane might be behind the camera entirely. That means the triangle crosses through a singularity in our projection, and part of it will be projected t...

That was what did it. πŸ˜‰
 
I’m holding an unofficial celebration for you now!
On the Meta.
 
8:40 PM
Awwww, you're sweet. 😊
 
8:55 PM
/party!!!!
 
Anytime. It's what people do for each other.
 
congrats dm!!
https://gamedev.meta.stackexchange.com/questions/2884/congratulations-dmgregory
need an answer from @DMGregory!
 
9:06 PM
i can't believe its been 7 years. I feel like i know you, even though we've never met
 
3
Q: Congratulations DMGregory!

OKprogrammerOur great friend DMGregory has reached 100,002 reputation! With 2.9~ million people reached and 2,279 answers, let’s give him a big round of applause! He’s been with Stack for over 7 years. Great job! πŸŽ‰

 
Hold on, I'm about to add a challenge for any readers ;)
Stay tuned.
 
ive been on this site for 7 years and 3 months...you have me beat by one month! :-p
 
Ok, I added the challenge for non-DMGregory readers! Have fun!
 
@DMGregory Need help nudging this number back down? :P
 
9:16 PM
Maybe, if folks are going to make such a fuss. πŸ˜‰
 
ive gotta try now...
ah nevermind. im too lazy
but just know i sabotaging you in spirit
 
I have been meaning to use rep to bounty under-served questions. Just finding the time to dig out good bounty candidates is tough though.
...thanks? 🀨
 
yes!! then we can have a celebration again!
in all seriousness DM, you have helped me more than you know. Over the past 7 years, you have taught me a lot. I sincerely appreciate it. Here are some of my favorites:
https://gamedev.stackexchange.com/questions/114522/how-can-i-launch-a-gameobject-at-a-target-if-i-am-given-everything-except-for-it

https://gamedev.stackexchange.com/questions/132832/can-i-run-my-own-loading-script-during-the-unity-splash-screen

https://gamedev.stackexchange.com/questions/140014/how-can-i-get-all-dontdestroyonload-gameobjects
 
Awww, thank you! I'm glad I've been useful! 😊
@Evorlor Oooh, the ritual sacrifice. Good choice. 😈
 
haha
```
public void DestroyAllDontDestroyOnLoadObjects() {

var go = new GameObject("Sacrificial Lamb");
DontDestroyOnLoad(go);

foreach(var root in go.scene.GetRootGameObjects())
Destroy(root);

}
```
 
9:35 PM
@DMGregory πŸŽ‰!
 
Thanks. 😁
 
10:09 PM
@Evorlor I agree. I’ve learned a lot from him, and plan to stay to learn more. Hope that doesn’t bother you folks too much. πŸ˜…
 
10:51 PM
@DMGregory Congrats!!!
 
@DMGregory Remember this conversation a while ago? gamedev.meta.stackexchange.com/a/2886/145674
 
Thanks! And OKprogrammer, you know you're as welcome here as any user of this site.
 
It makes me happy to be wanted for once. :)
 

« first day (3913 days earlier)      last day (1090 days later) »