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

NgtsHTMLContent transform scale always 0 #72

Closed
i3ene opened this issue Mar 20, 2025 · 1 comment
Closed

NgtsHTMLContent transform scale always 0 #72

i3ene opened this issue Mar 20, 2025 · 1 comment

Comments

@i3ene
Copy link

i3ene commented Mar 20, 2025

I currently am facing the problem where I have a HTML sprite element with distanceFactor: 0, but it produces an HTML element with transform: scale(0):

Image

<ngts-html [options]="{ occlude: false, transform: false, position: [0, 0, 0] }">
  <div [ngtsHTMLContent]="{ distanceFactor: 0, sprite: true }">
    <my-component></my-component>
  </div>
</ngts-html>

With distanceFactor: 1 the element appears, but changes size to the distance of the camera control target, which I want to avoid. It should only change the size according to the distance of the camera.

@i3ene
Copy link
Author

i3ene commented Mar 20, 2025

Nevermind, found out that if you leave out distanceFactor completely it works as expected!

@i3ene i3ene closed this as completed Mar 20, 2025
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