Two related questions for computer graphics people:

1. is it true that ray/line/whatever intersection tests are common in interviews?

2. how common are questions of this nature, where you have equations memorized?🤔

(boosts appreciated pls)

@ruba

1. yes, super common

2. they're not really about memorizing equations, more about showing you have a working grasp of 3d maths and basic algebraic operations - if you're comfortable with vectors, dot product, cross product you can likely get to the answer, interviewers are looking to hear your thought process

@im @ruba yeah, basically this. In computer graphics you are kinda expected to know what vectors and especially dot products among them are. Since like 90% of all graphics is dot products, if you squint :)

And if you *really* know what dot products are, then various intersection/distance things you can derive (slowly) out of that without having to "memorize" any of them.

@aras @im @ruba yeah. DotProduct math is a “core competency”. Also true for gameplay programming.

RaySphere should be trivial. More complex should be derivable in an interview context. Especially with interviewer hints.

@forrestthewoods @aras @im @ruba After being in the games industry for over 49 years and working wirh all sorts of people, my experience has been that knowing WHAT a dot product is and HOW to use a dot product is infinitely more valuable than memorizing the math behind it.
There are a million places to find the math/code online but only experience makes you understand how it can be used.

@jakesimpson @aras @im @ruba exactly. What better way to find out if someone can use it that to ask a small question that uses it?

What is a dot product?
What are some things it is useful for?
How would return true or false if a ray is intersecting a sphere?
How would you calculate the intersection point?

Seems like a reasonable sequence to me?

@forrestthewoods @aras @im @ruba right? But what I’m getting at is that for some people, if you can’t write the math of what generates a dot product on a white board, from memory, they’ll fail you there and then.
Thats where I have issues.
@jakesimpson @aras @im @ruba oh sure. Lots of interviewers love to fail people for all kinds of dumb little reasons.