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

Does OGRE support texture packing? #3085

Open
sercero opened this issue Apr 19, 2024 · 4 comments
Open

Does OGRE support texture packing? #3085

sercero opened this issue Apr 19, 2024 · 4 comments
Labels
invalid (question) usage questions should go to https://forums.ogre3d.org/

Comments

@sercero
Copy link
Contributor

sercero commented Apr 19, 2024

Something like this: Blender - Texture Channel Packing

@paroj
Copy link
Member

paroj commented Apr 19, 2024

yes, it does:

Image combined;
combined.loadTwoImagesAsRGBA("Ground23_col.jpg", "Ground23_spec.png", "General");
TextureManager::getSingleton().loadImage("Ground23_diffspec", "General", combined);

however, it is more efficient to do this at export time with e.g imagick:
https://ogrecave.github.io/ogre/api/latest/tut__terrain_sky_fog.html#bt3MergingTextures

@sercero
Copy link
Contributor Author

sercero commented Apr 19, 2024

Does it make sense to add this to blender2ogre, do you think?

@paroj
Copy link
Member

paroj commented Apr 19, 2024

I got the impression you can do this directly in blender without any exporter support, no?

@sercero
Copy link
Contributor Author

sercero commented Apr 19, 2024

I don't know.

If you look at the video it seems that they guy has to make a special setup in Blender in order to pack the textures.

@paroj paroj added the invalid (question) usage questions should go to https://forums.ogre3d.org/ label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid (question) usage questions should go to https://forums.ogre3d.org/
Projects
None yet
Development

No branches or pull requests

2 participants