question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to scale Landmark points relative to the texture size in v0.8.0

See original GitHub issue

Hi @homuler , I am using pose tracking solution and want to scale the resulting Normalized landmarks. I saw your are using this code and the scaling vector is (100,100,100) but when I scale them myself using GetLocalPositionNormalized(...) with same scale I am not getting correct mapping over the canvas. I also try to scale it using texture width and height:

textureWidth = textureFrame.width;
textureHeight = textureFrame.height;

Is there anything additionally you are doing or should I change scaling vector?

Scaling in V0.0.6 was much easier, like this example I made few weeks ago.

Thanks, Arham

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
homulercommented, Dec 8, 2021

I have once separate question (If you want me to create a new issue then let me know).

I don’t know what exactly you’re having trouble with, so please create a new issue and explain the details.

0reactions
Arham-Aalamcommented, Dec 8, 2021

Cool! Making it the child of Annotations Screen worked for me. I also set sphere.transform.localPosition instead of sphere.transform.position

I have one separate question (If you want me to create a new issue then let me know). How to resize Annotatable Screen to portrait mode? actually the previous version was easy because we were able to change the WebCamTexture plane. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to scale Landmark points relative to the texture size in ...
Hi @homuler , I am using pose tracking solution and want to scale the resulting Normalized landmarks. I saw your are using this...
Read more >
How to scale texture with camera distance while keeping ...
An exact scaling by the distance of the shading point to the camera would cause the texture to distort.. so is this what...
Read more >
Size and Shape Spaces for Landmark Data in Two ...
Abstract. Biometric studies of the forms of organisms usually consider size and shape variations in the geometric configuration of landmarks, points.
Read more >
TexturedTriMesh — Menpo 0.11.0 documentation
Combines a TriMesh with a texture. Also encapsulates the texture coordinates required to render the texture on the mesh. Parameters. points ( (n_points ......
Read more >
It is possible to have texture scale accordingly with ground ...
If you want to have texture coordinates that are independent of both the mesh and the object scale, use geometry/position as your texture...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found