Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

fix incorrect boundingBox #383

Merged
merged 1 commit into from
Jan 15, 2024
Merged

fix incorrect boundingBox #383

merged 1 commit into from
Jan 15, 2024

Conversation

Algorush
Copy link
Collaborator

@Algorush Algorush commented Jan 15, 2024

Vincent Fretin from Aframe advise to remove the old function Box3.prototype.expandByObject to correctly define boundingBox:
aframevr/aframe-inspector#686
I did this in the 3DStreet-editor repository in this PR and now the boundingBox is defined correctly for pedestrians and for almost all other objects... except the tram. I don't know why yet. It’s interesting that in a clean scene with two objects - a tram and a pedestrian, the boundingBox is determined correctly for both

Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for 3dstreet-editor-builds ready!

Name Link
🔨 Latest commit 150367d
🔍 Latest deploy log https://app.netlify.com/sites/3dstreet-editor-builds/deploys/65a4895dee76ec0008b83697
😎 Deploy Preview https://deploy-preview-383--3dstreet-editor-builds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kfarr
Copy link
Contributor

kfarr commented Jan 15, 2024

Thanks @Algorush. Which tram? If it is this model then you can ignore as we will be replacing:
<a-asset-item id="trolleymodel" src="${assetUrl}objects/godarvilletram.gltf"></a-asset-item>

@Algorush
Copy link
Collaborator Author

Algorush commented Jan 15, 2024

@kfarr
Copy link
Contributor

kfarr commented Jan 15, 2024

@Algorush Ok thanks well in that case yes we should support correct bounding box for that model.

I just tested this and while I wasn't able to test animation, things work as expected (nothing is broken) for bounding box behavior so I'll merge

@kfarr kfarr merged commit 12da918 into master Jan 15, 2024
4 checks passed
@kfarr kfarr deleted the Fix-incorrect-boundingbox branch January 15, 2024 18:39
@vincentfretin
Copy link
Contributor

@Algorush you may want my other change as well aframevr/aframe-inspector@ea6fb76

@Algorush
Copy link
Collaborator Author

Algorush commented Feb 5, 2024

@Algorush you may want my other change as well aframevr/aframe-inspector@ea6fb76

@vincentfretin Thank you very much for mention about this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants