Allow image to be placed anywhere in the same scene
See original GitHub issueCurrently 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:
- Created a year ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ah, that works setting it on the
WorldObject
!In general, all world object subclasses support position, rotation and scaling!