This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
Threejs Object local clipping #2326
Answered
by
nzjony
paulsoning
asked this question in
Q&A
-
Hey there, I would like to use local clipping of 3D Object that I inserted to the map. Could someone point me in a right direction how to solve this problem.
Screen.Recording.2021-10-22.at.12.59.26.movBr, |
Beta Was this translation helpful? Give feedback.
Answered by
nzjony
Oct 22, 2021
Replies: 1 comment 2 replies
-
hi @paulsoning , we render objects relative to the camera, see: As such, you need to transform the plane based on the position of the object, see: https://stackoverflow.com/questions/45611247/local-clipping-of-planes-based-on-local-axis Something like:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
paulsoning
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @paulsoning , we render objects relative to the camera, see:
harp.gl/@here/harp-mapview/lib/TileObjectsRenderer.ts
Line 66 in bd9d86e
As such, you need to transform the plane based on the position of the object, see: https://stackoverflow.com/questions/45611247/local-clipping-of-planes-based-on-local-axis
Something like: