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

Normalize mixins #699

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Normalize mixins #699

wants to merge 8 commits into from

Conversation

kfarr
Copy link
Collaborator

@kfarr kfarr commented Jul 12, 2024

No description provided.

remove `markings` mixin
merge its same properties to all of the striping mixins it is usually paired with
also remove anisotropy
@kfarr kfarr linked an issue Jul 12, 2024 that may be closed by this pull request
src/assets.js Outdated
<a-mixin id="hash-right" atlas-uvs="totalRows: 4; totalColumns: 8; column: 8; row: 2" scale="3 6 3"></a-mixin>
<a-mixin id="hash-chevron" atlas-uvs="totalRows: 4; totalColumns: 4; column: 4; row: 2" scale="3 3 3"></a-mixin>
<a-mixin id="stencils"></a-mixin>
<a-mixin shadow="cast: false" id="right" atlas-uvs="totalRows: 4; totalColumns: 4; column: 3; row: 2" scale="2 2 2" geometry="primitive: plane;" material="src: #stencils-atlas;alphaTest: 0;transparent:true;"></a-mixin>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need geometry="primitive: plane; skipCache: true everywhere to be sure to create a separate geometry for each entity, otherwise all your entities are using the same geometry and the atlas-uvs component is changing the uvs of the shared geometry so replacing the image for all entities.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vincentfretin excellent, thank you!

@kfarr kfarr marked this pull request as ready for review September 11, 2024 21:34
@kfarr kfarr self-assigned this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do - Soon
Development

Successfully merging this pull request may close these issues.

ability to select crosswalks and other stencils
2 participants