-
Notifications
You must be signed in to change notification settings - Fork 320
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
Large textures crash with "outofmem" error #2746
Comments
Hi, thanks for the report! This is a known issue which I think is currently being investigated by @ luboslenco. Luckily there is a workaround:
|
Hey, just tried this out, I wasn't able to reproduce the fix (probably due to inexperience with the engine):
|
I'm afraid for Armorcore you really need a recompiled Armorcore binary until this is properly fixed. Armorcore is a Javascript engine (V8) bundled with Kinc ("Kha in C") and unlike your own source code or Armory's Haxe sources, every change in Kinc needs to be compiled before it takes effect. But luckily, @ Naxela compiled a version of Armorcore for Windows with above workaround included: https://github.com/Naxela/custom_armorycore_bin. You should be able to use that instead, just replace
The khafile.js is automatically generated by Armory each time you build the game, but you can append to it by creating a new text document in Blender in the text editor and selecting that text document in |
Hm really need to sort this out.. will try to fix asap. (link Kode/Kinc#407) |
@luboslenco Could you please include the workaround for this issue in the upcoming release. A lot of new users face this issue. |
As a note for users affected by this issue - I suspect a large subset of those affected are using imported Mixamo characters. These often have 4096 x 4096 textures. Reducing the size of these can cure the problem with less pain than compiling Krom. |
Description
Attempting to load large textures will reliably crash the Armory Player with the following message:
To Reproduce
Expected behavior
The expectation is that the large texture would load and be displayed by the game.
Large textures may be necessary in some cases, for example when using tilesheets. The largest I would expect tilesheets to be required to support is 8192x8192.
System
Blender:
Armory: 2022.12.0 (tested on release and git
main
)OS: Windows 10
Graphics card: NVidia GTX 3080
Test File
BasicTexture.zip
The text was updated successfully, but these errors were encountered: