-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Thumbnail/Gcode Preview for Slic3r/PrusaSlicer/SuperSlicer for BigTreeTech TFT Screens #887
Comments
I almost understand what the format is. But can you link here a gcode file from SuperSlicer (or PS) with & without the script? |
Here you go, a calibration cube sliced with superslicer (by the way thanks for superslicer, it's awesome), with (_btt.g file) and without the script. |
I also plan to try superslicer. I started Cura since last year, then switched to PS a month ago. Actually Cura had more features but PS seems to be more fast (program itself and printing times). I would like to try SuperSlicer as well. I wish SS will integrate a solution for BTT TFT screen compatible gcode preview. |
@supermerill hi. Btt tft fw is now compatible with prusaslicer's thumbnail generation aporoach. |
True, but not all of the TFT's support it, due to memory issues, so there's value in having this feature. |
Great to hear that. Thnx. |
Somehow I closed this issue, I don't know how but it's better to have a look again here @supermerill . |
I know that PS developers are not interested in. |
I just merge the JPG / QOI thumbnail from prusa, adding that one. |
Can someone test if you can see a yellow cube on white background?
edit: I spot an error: it misses the size header |
I created this txt and change it's extension to .gcode and interted to my TFT35 E3 V3 (Thumbnail parser 0-classic bigtreetech/BIGTREETECH-TouchScreenFirmware#1973), it showed standart gcode icon on the screen, not the thumbnail @supermerill. |
Oh btw, this is another PR for thumbnail. bigtreetech/BIGTREETECH-TouchScreenFirmware#2292 |
here: Shape-Box_bqu.zip |
No, not working 😐 |
the only diff I found is that your gcode doesn't ahve any line before the thumbnail. Do you succeed if you remove the first 5 lines? (the ones before ;005f005f) |
notepad.zip Result: Original and Notepad thumbnails are still visible but VSCode is not visible. I will try to open and edit with MS Word as well. |
Maybe your app is messing with the charset & line ending. I don't understand why my file doesn't work, and can't progress from here. So until someone can guide me on what's wrong, I stop dev on this. |
Last try: I added the |
Sorry, it didn't work. :( |
I just took a look a the file Shape-Box_bqu.gcode.txt, I don't see anything wrong with it, but I can't test it on my TFT and maybe that the issue with sarvenn, the file only has the thumbnail for the 95x95 TFT, the TFT35, I have a TFT24 that requires the Thumbnail to be in 70x70 resolution, as far as I am aware each TFT just searches/loads their corresponding resolution.
|
Hi i have SKR 1.4 Turbo / Marlin 2.0.9.3 / BTT TFT35 E3 BIGTREE_TFT35_V3.0_E3.27.x (THUMBNAIL_PARSER 2 ) =Configuration.h NOTE: "Base64 PNG" option utilizes about 43kb statically allocated RAM and about 1kb dynamically Options: [Classic: 0, RGB565 Bitmap: 1, Base64 PNG: 2]
#define THUMBNAIL_PARSER 2 // Default: 0 Tried those files and here is my results:
Hi mate tried your file and here is my result:
|
Don't works.
Don't works. |
Tried editing file "xyzCalibration_cube_btt.g" from "xyzCalibration_cube.zip" (effgarces commented on 18 Jan 2021) And for working and see icon file need 3+ cubes: This is where the penultimate answer can be of help: https://githubhot.com/repo/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/2398 |
So the solution is to create 3 thumbnails? |
It turns out that it is. |
if you change in your printer_fff.ui
to
then you'll have 3 size and can export 3 good sizes.
between each one? (i used 20x20, 40x40 and 80x80, i don't know if it needs exactly the right size or not) |
I checked both of your gcode and unfortunately it can't show the icon: I tried to edit and delete the lines of text in front of gcode and at the end of this one myself. Maybe needs to be it exactly the right size. |
here with the same dimension as the one you sent to me (40x40, 95x80, 95x95) |
I forgot to check this file but don't work. Modified from:
Tested all files and diddn't see the icon :( |
out of clues then. |
We have one file generated from
that works. |
Or is someting in that file we ignoring but that makes a diffrence. |
i don't spot any significant diff from my generated one. |
So i take your image from first line 1 to almost here: ; external perimeters extrusion width = 0.63mm Picture from Shape-Box_guess_good do the job. Tried: Something is in that scripted file. If i swap only line from 1 to that on photo i see a icon. |
@Abyss8 Can you send me a project that creates a gcode file for your printer, the gcode file and the gcode file after passing through the script? |
@supermerill This is not mine gcode.
I have problem with Python on my PC when i try any script. |
Hi, I've been away on work, so no chance of contributing. The script is not my work, as you can clearly see on the repo, it was shared over at bigtreetech/BIGTREETECH-TouchScreenFirmware#1238, I just modded it slightly to fit my needs and packaged it in an executable, and also modified it a little to work with prusaslicer 2.4 |
I've been testing the provided files, but have also come up empty, I'm just not seeing what could be stopping the preview from working. |
Hi everybody, I tried to create a PR to generate MKS TFT thumbnails, but I don't have much experience with c++. Can anybody check and help me? I added more details in the PR description #3387 . Thank you! |
Ok, I have something interesting, I tried to approach this topic again and try to solve this puzzle. So yes, the file: 2# TEZDZIALANOWELOGO_DZIALA_good.gcode (WORKS), 3# NIE_DZIALA_NOWYGCODE_6h13mssss_0.2mmPETG0.4n_.gcode (NOT WORKING). 1# This is a file generated sometime there and it works, let's call it MAGIC I created a very professional representation of this magical thing: What is this magic? I am able to create a gcode with a new icon, but you have to cut something here and paste something there Do you understand any of this? |
@Abyss8 Just so you know. 😊 |
Hi,
Thumbnails generated by Slicer could not be viewed in BTT screens. Codes generated by slicer is not applicable for BTT TFT screens.
In BTT touch screen repository there is a custom solution for that. Please see the link below.
Could this solution be integrated to SuperSlicer?
#bigtreetech/BIGTREETECH-TouchScreenFirmware#1238
The text was updated successfully, but these errors were encountered: