Korijn van Golen
Korijn van Golen
Typically there would be an input module or object that you can use to query the current state of keys (and mouse buttons, and joysticks, etc). It is implemented by...
Don't worry, I know exactly what you need. I'll implement something, it's pretty simple. It looks like this: https://docs.unity3d.com/ScriptReference/Input.GetKeyDown.html
> So basically polling to see if a key is down before drawing every frame? i.e. right before the usual animation functions in your examples right before `renderer.render(scene, camera)` and...
> I was just going through imgui docs and it seems to have an input module which provides this functionality: https://pyimgui.readthedocs.io/en/latest/reference/imgui.core.html#imgui.core.is_key_down > > Since [pygfx/wgpu-py#516](https://github.com/pygfx/wgpu-py/pull/516) adds imgui to wgpu, is...
Yes please! It's useful to centrally document these integrations. :) People can extend them in the future as well.
Can you clarify in each instance whether or not the coordinate system you describe applies to model/view/clip space? Because the conventions are different between those spaces usually as well.
I found this nice picture: :)  I would like to add that Three.js is Y-up, and right-handed. Also, you can actually change the coordinate system in three like this:...
> From what I understand, given +X is right, and +Y is up, if we'd pick forward to mean +Z it'd be left-handed, and -Z would be right-handed. You are...
I'm reopening this because I discovered some new information. Three.js seems to follow the glTF conventions. I summarized them here: https://github.com/pygfx/pylinalg/pull/43#issuecomment-1438359082 I propose that we align with those conventions as...
So to summarize from the glTF spec: * glTF uses a right-handed coordinate system. glTF defines +Y as up, +Z as forward, and -X as right; the front of a...