projectm
projectm copied to clipboard
[FEATURE] Is it possible to load a custom texture?
Please confirm the following points:
- [x] This feature request is NOT for the Android apps in the Play Store
- [x] I have searched the project page to check if a similar request was already made
Application or Project
Third-Party Integration (Kodi, VLC, etc. - please specify below)
Is Your Enhancement Related to a Problem?
I wonder, if it is possible to use an openGL texture created with Open Frameworks with projectM instead of the external images as milkdrop textures. I can access the textureID, if that helps. (?)
Your Suggested Enhancement
I would like to use Open Frameworks (openGL) textures with Milkdrop presets and ProjectM (instead or in addition to external images). This would also make it possible to load video loops as textures.
Alternative Solutions
No response
Additional Context
No response
Currently not, textures are always loaded from files. But there's the issue https://github.com/projectM-visualizer/projectm/issues/870 to load textures from a callback, which would be the perfect place to implement this, e.g. instead of the texture data provide a texture ID from the rendering system. The application would have to make sure the ID stays valid, but projectM might check this and re-request the texture if the ID becomes unavailable.
Thanks, that sounds good.
Added the texture ID proposal the the linked issue, and closing this one here as a duplicate to keep things clean.
Please subscribe to issue #870 for updates.