-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enhancement Request: Pass alpha channel in RGB code to allow for transparent filaments #20
Comments
Great observation. This is the line of code where transparency is hard coded to https://github.com/spuder/OpenSpool/blob/main/firmware/bambu.h#L131 This will need to be changed to a variable for alpha. I took a quick look at Bambu Studio and I see the way they are handling it is by making a new filament with name 'translucent'. https://github.com/bambulab/BambuStudio/blob/c1b3cc0bf1c6c9be26ffdaa772da5a2716751677/resources/profiles/BBL/filament/Bambu%20PETG%20Translucent%20%40base.json#L3 |
The thing is... I believe BambuStudio accepts the Alpha channel variable... You're passing FF as default according to the logs in the mqtt data... which is fine.. but if the end user passes an alpha channel value in the NFC tag, Openspool chokes on it and logs the following error "17:11:28 Better would be... if len = 6 (i.e. E27A2B) then append FF and pass E27A2BFF in the mqtt data There are cases in Bambu Studio where it allows you to select transparent filament, without choosing the "Translucent" type... have you ever seen where the folor shows as a grey and white checkboard? That's because BambuStudio somehow has a 00 alpha channel value for the color... They don't make it easy to input, but the software does handle it just fine if the value is set to 00 |
Somehow I set it to transparent in the past for my transparent filament, but now I don't know anymore, how I did that. Can you give me a hint, how to set it in BambuStudio? |
@spuder I prepared a commit to include creation of tags with filament color alpha channel, if wanted I can create a pull request ![]() |
Yes please
…On Mon, Jan 20, 2025 at 14:59 raihei ***@***.***> wrote:
@spuder <https://github.com/spuder> I prepared a commit to include
creation of tags with filament color alpha channel, if wanted I can create
a pull request
Screenshot.2025-01-20.225630.png (view on web)
<https://github.com/user-attachments/assets/fd3f004c-84d6-4aa1-b4f3-c2cb4949342e>
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB3FTWQSTHZCWFKCG6EK4T2LVWT3AVCNFSM6AAAAABU3N4EJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGI4DCNJZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I see in the Bambu MQTT API, that they actually support the alpha channel in the MQTT message as shown here
{ "print": { "sequence_id": "0", "command": "ams_filament_setting", "ams_id": 0, // Index of the AMS "tray_id": 0, // Index of the tray "tray_info_idx": "", // Probably the setting ID of the filament profile _**"tray_color": "00112233", // Formatted as hex RRGGBBAA (alpha is always FF)**_ "nozzle_temp_min": 0, // Minimum nozzle temp for filament (in C) "nozzle_temp_max": 0, // Maximum nozzle temp for filament (in C) "tray_type": "PLA" // Type of filament, such as "PLA" or "ABS" } }
Sending the alpha channel as 00 instead of FF tells Bambu Studio its actually a transparent filament, which is preferable to clear filament showing as white.
The text was updated successfully, but these errors were encountered: