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.

Allow image to be placed anywhere in the same scene

See original GitHub issue

Currently instances of Image are placed according to the size of the image and it doesn’t seem like it’s possible to set the position of the image within the scene manually. This would also allow multiple images to be shown in the same scene and help with the implementation of option 1 here #360

I notice that I can offset the Image position by adding values to the geo.positions in the shader code here, I could just feed it the information from Geometry.positions but I’m not sure if that’s the best way (I’ve never written shaders before 😄 ) https://github.com/pygfx/pygfx/blob/main/pygfx/renderers/wgpu/imageshader.py#L71

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kushalkolarcommented, Nov 3, 2022

ah, that works setting it on the WorldObject!

0reactions
Korijncommented, Nov 3, 2022

In general, all world object subclasses support position, rotation and scaling!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Docs: Inserting Images - GCF Global
To upload an image: Place the insertion point in the document where you want to insert the image. Click Insert > Image >...
Read more >
Allowing cross-origin use of images and canvas - HTML
The key is to use the crossorigin attribute by setting crossOrigin on the HTMLImageElement into which the image will be loaded. This tells...
Read more >
Best Apps to Superimpose (Overlay) One Picture Over Another
1. Superimpose X ... Using Superimpose X allows you to overlay pictures creatively. The Superimpose X app is one of the best iOS...
Read more >
Wrap text and move pictures in Word - Microsoft Support
If you have more than one picture that you want to overlap on a page, you can enable this in the Layout box....
Read more >
Create a picture-in-picture effect in iMovie on Mac
In iMovie on your Mac, create a picture-in-picture effect, with one clip appearing in an inset window on top of another clip.
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