Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU Instancing: Trees rotation/ z placement wrong #81

Closed
bertt opened this issue Oct 17, 2024 · 2 comments
Closed

GPU Instancing: Trees rotation/ z placement wrong #81

bertt opened this issue Oct 17, 2024 · 2 comments

Comments

@bertt
Copy link
Member

bertt commented Oct 17, 2024

When usig GPU Instancing with model 'tree.glb' (see testfixtures tree.glb), the trees are rotated wrong:

image

Workaround: Set column Pitch to 1.57079632679

update traffic_signs_instances set pitch = 1.57079632679

image

Notice there is another issue about correcting the z values.

Workaround: Add about ?4? meter to z:

update traffic_signs_instances set geom1 = ST_translate(st_force3d(geom),0,0,4.0)

Trees are now placed correctly

image

Todo: Check formulas for rotation/z values

@bertt bertt closed this as completed Oct 29, 2024
@bertt bertt reopened this Oct 29, 2024
@bertt
Copy link
Member Author

bertt commented Oct 29, 2024

Issue: The tree model has 5 nodes in defaultscene, the root node has a rotation but it's not taken into account.

@bertt
Copy link
Member Author

bertt commented Oct 31, 2024

won't fix now

@bertt bertt closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant