pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
234 stars 16 forks source link

72 helpers #242

Closed vorg closed 4 years ago

vorg commented 4 years ago

@simonharrisco Note about comment convention: please use imperative style

bbox -> Finish bbox rendering implementation add for gltf models -> Add helper to each gltf model basic bbox -> Implement basic bounding box helper draw lines on 1st camera -> Add test line rendering create example scene -> Create example helpers scene

vorg commented 4 years ago

I would use different color for instanced cubes as they clash with red bounding box

Screenshot 2019-09-10 at 23 01 20
dmnsgn commented 4 years ago

Can we use getAxesPositions or something more accurate than makeAxes as well? We never use the make convention anywhere else.

simonharrisco commented 4 years ago

It also seems a little strange that orthographic 'zoom' a higher number means zoomed out. Could just be some bias I have though

simonharrisco commented 4 years ago

Adds helpers for:

Removes helpers.js file that was being used in other example files, (replaces functionality)

Comments / Questions:

vorg commented 4 years ago
dmnsgn commented 4 years ago

It also seems a little strange that orthographic 'zoom' a higher number means zoomed out. Could just be some bias I have though

Zoom should be interpreted as size multiplier of camera view planes as we are not using a perspective projection.

Other engines:

vorg commented 4 years ago

What is the purpose of it though? Why would i set ortho -1,1 and zoom 2 instead of ortho -2,2?

dmnsgn commented 4 years ago

For the orbiter I think?