René's URL Explorer Experiment


Title: DefaultTextureAtlas.render_into and arcade.draw_texture_rect does nothing if atlas is resized · Issue #2760 · pythonarcade/arcade · GitHub

Open Graph Title: DefaultTextureAtlas.render_into and arcade.draw_texture_rect does nothing if atlas is resized · Issue #2760 · pythonarcade/arcade

X Title: DefaultTextureAtlas.render_into and arcade.draw_texture_rect does nothing if atlas is resized · Issue #2760 · pythonarcade/arcade

Description: If you within a DefaultTextureAtlas.render_into context yo use arcade.draw_texture_rect, passing it the current atlas and a texture that is not already in the atlas, then the atlas will get resized so fit the new texture, but the draw co...

Open Graph Description: If you within a DefaultTextureAtlas.render_into context yo use arcade.draw_texture_rect, passing it the current atlas and a texture that is not already in the atlas, then the atlas will get resized...

X Description: If you within a DefaultTextureAtlas.render_into context yo use arcade.draw_texture_rect, passing it the current atlas and a texture that is not already in the atlas, then the atlas will get resized...

Opengraph URL: https://github.com/pythonarcade/arcade/issues/2760

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DefaultTextureAtlas.render_into and arcade.draw_texture_rect does nothing if atlas is resized","articleBody":"If you within a `DefaultTextureAtlas.render_into` context yo use `arcade.draw_texture_rect`, passing it the current atlas and a texture that is not already in the atlas, then the atlas will get resized so fit the new texture, but the draw command will fail to render anything. I am sure it is the resizing that causes it, since starting out with a big atlas or adding the texture to draw to the atlas beforehand both fixes the problem.\n\nMRE:\n```python\n\nfrom typing import Literal\nimport arcade\n\n\ndef mre(fix: None | Literal[\"big-atlas\", \"pre-add-texture\"]) -\u003e None:\n    atlas_size = (1000, 1000) if fix == \"big-atlas\" else (100, 100)\n    atlas = arcade.DefaultTextureAtlas(size=atlas_size)\n    green_background_texture = arcade.Texture.create_empty(name=\"background\", size=(100, 100), color=arcade.color.GREEN)\n    red_overlay_texture = arcade.Texture.create_empty(name=\"overlay\", size=(500, 500), color=arcade.color.RED)\n    atlas.add(green_background_texture)\n    if fix == \"pre-add-texture\":\n        atlas.add(red_overlay_texture)\n    with atlas.render_into(green_background_texture):\n        arcade.draw_texture_rect(\n            texture=red_overlay_texture,\n            rect=arcade.Rect.from_kwargs(\n                x=green_background_texture.width * 0.5,\n                y=green_background_texture.height * 0.5,\n                width=green_background_texture.width * 0.9,\n                height=green_background_texture.height * 0.9,\n            ),\n            atlas=atlas,\n        )\n    atlas.update_texture_image_from_atlas(green_background_texture)\n    green_background_texture.image.show(fix or \"broken\")\n\n\nif __name__ == \"__main__\":\n    _ = arcade.Window(visible=False)\n    mre(fix=None)  # The green background texture does NOT have any red drawn on top of it\n    mre(fix=\"big-atlas\")  # The green background texture has a red square drawn on top of it, as it should\n    mre(fix=\"pre-add-texture\")  # The green background texture has a red square drawn on top of it, as it should\n```\n\nArcade 3.2.0\n------------\nvendor: Intel\nrenderer: Intel(R) UHD Graphics\nversion: (4, 6)\npython: 3.13.3 (tags/v3.13.3:6280bb5, Apr  8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)]\nplatform: win32\npyglet version: 2.1.6\nPIL version: 11.0.0\n","author":{"url":"https://github.com/bunny-therapist","@type":"Person","name":"bunny-therapist"},"datePublished":"2025-08-18T16:19:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2760/arcade/issues/2760"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1a841432-2848-6d2d-f3ea-20510269416e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB346:172311:694638:8D15B0:6969284F
html-safe-nonce6e8fc22efaf2252b447dae7dee0dc53d5b672041b2b92e7dcdda0842c4ad363b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzQ2OjE3MjMxMTo2OTQ2Mzg6OEQxNUIwOjY5NjkyODRGIiwidmlzaXRvcl9pZCI6IjgyMTE3NTE3MzY4MjkzNTYxMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac281fbe5fc945bd6232eae6952247899cee22617ec0d0740203efde85b0f2e7ac
hovercard-subject-tagissue:3331343428
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonarcade/arcade/2760/issue_layout
twitter:imagehttps://opengraph.githubassets.com/abcc801a5646a47030ca399ef0900eb233ba5d5096426f9c191a098d4a9398b5/pythonarcade/arcade/issues/2760
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/abcc801a5646a47030ca399ef0900eb233ba5d5096426f9c191a098d4a9398b5/pythonarcade/arcade/issues/2760
og:image:altIf you within a DefaultTextureAtlas.render_into context yo use arcade.draw_texture_rect, passing it the current atlas and a texture that is not already in the atlas, then the atlas will get resized...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebunny-therapist
hostnamegithub.com
expected-hostnamegithub.com
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
turbo-cache-controlno-preview
go-importgithub.com/pythonarcade/arcade git https://github.com/pythonarcade/arcade.git
octolytics-dimension-user_id39569439
octolytics-dimension-user_loginpythonarcade
octolytics-dimension-repository_id49003082
octolytics-dimension-repository_nwopythonarcade/arcade
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49003082
octolytics-dimension-repository_network_root_nwopythonarcade/arcade
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pythonarcade/arcade/issues/2760#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonarcade%2Farcade%2Fissues%2F2760
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonarcade%2Farcade%2Fissues%2F2760
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=pythonarcade%2Farcade
Reloadhttps://github.com/pythonarcade/arcade/issues/2760
Reloadhttps://github.com/pythonarcade/arcade/issues/2760
Reloadhttps://github.com/pythonarcade/arcade/issues/2760
pythonarcade https://github.com/pythonarcade
arcadehttps://github.com/pythonarcade/arcade
Notifications https://github.com/login?return_to=%2Fpythonarcade%2Farcade
Fork 363 https://github.com/login?return_to=%2Fpythonarcade%2Farcade
Star 2k https://github.com/login?return_to=%2Fpythonarcade%2Farcade
Code https://github.com/pythonarcade/arcade
Issues 99 https://github.com/pythonarcade/arcade/issues
Pull requests 16 https://github.com/pythonarcade/arcade/pulls
Actions https://github.com/pythonarcade/arcade/actions
Projects 2 https://github.com/pythonarcade/arcade/projects
Wiki https://github.com/pythonarcade/arcade/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/pythonarcade/arcade/security
Please reload this pagehttps://github.com/pythonarcade/arcade/issues/2760
Insights https://github.com/pythonarcade/arcade/pulse
Code https://github.com/pythonarcade/arcade
Issues https://github.com/pythonarcade/arcade/issues
Pull requests https://github.com/pythonarcade/arcade/pulls
Actions https://github.com/pythonarcade/arcade/actions
Projects https://github.com/pythonarcade/arcade/projects
Wiki https://github.com/pythonarcade/arcade/wiki
Security https://github.com/pythonarcade/arcade/security
Insights https://github.com/pythonarcade/arcade/pulse
New issuehttps://github.com/login?return_to=https://github.com/pythonarcade/arcade/issues/2760
New issuehttps://github.com/login?return_to=https://github.com/pythonarcade/arcade/issues/2760
DefaultTextureAtlas.render_into and arcade.draw_texture_rect does nothing if atlas is resizedhttps://github.com/pythonarcade/arcade/issues/2760#top
https://github.com/bunny-therapist
https://github.com/bunny-therapist
bunny-therapisthttps://github.com/bunny-therapist
on Aug 18, 2025https://github.com/pythonarcade/arcade/issues/2760#issue-3331343428
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.