Skip to content
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

Allow Importing of New Textures #30

Open
Matt-Hurd opened this issue Apr 26, 2019 · 3 comments
Open

Allow Importing of New Textures #30

Matt-Hurd opened this issue Apr 26, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@Matt-Hurd
Copy link
Collaborator

Matt-Hurd commented Apr 26, 2019

https://answers.unrealengine.com/questions/23440/loading-textures-at-runtime.html

This might not be too hard?
StaticLoadObject(UTexture2D::StaticClass(), NULL, *(Path))

@Matt-Hurd Matt-Hurd added the enhancement New feature or request label Apr 26, 2019
@Matt-Hurd
Copy link
Collaborator Author

Looks like that was relying on some external work. Should still be possible, will need to reimplement https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/4014-39-rama-s-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required?p=321196#post321196

@Matt-Hurd
Copy link
Collaborator Author

Create new UTexture2D
Set SizeX, SizeY, OriginalSizeX, OriginalSizeY, Format=2
Copy data to .mips.Data (PF_B8G8R8A8), set .mips.ArrayNum and .mips.ArrayMax
???
Profit?

@Matt-Hurd
Copy link
Collaborator Author

https://github.com/nothings/stb/blob/master/stb_image.h

This should be a good library to start with. Looking for a header-only library without too much bloat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant