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

Port Emboss & SVG gizmo from PrusaSlicer #2819

Merged
merged 58 commits into from
Dec 9, 2023

Conversation

Noisyfox
Copy link
Collaborator

@Noisyfox Noisyfox commented Nov 21, 2023

This PR ported the Emboss & SVG gizmo from PrusaSlicer.

image
image

Fix #1801
Fix #2487
Fix #2523
Fix #2616

@discip
Copy link
Contributor

discip commented Nov 21, 2023

AMAZING! 😃👍

Thank you so much!

Be sure to let me know if you need help testing.
Regardless, I will do testing, but if there are specific scenarios that need testing, I'm happy to help.

@Noisyfox
Copy link
Collaborator Author

AMAZING! 😃👍

Thank you so much!

Be sure to let me know if you need help testing. Regardless, I will do testing, but if there are specific scenarios that need testing, I'm happy to help.

Just use it normally and do whatever you usually do and see if any existing things are broken/changed. Thanks for your testing~

@Eldenroot
Copy link
Contributor

Perfection! Thank you, fingers crossed

@Eldenroot
Copy link
Contributor

Just one note - is possible (and it bothers me in Prusa Slicer / Bambu studio) - when you select the text, make the selected text in a different color? Now it is not easy to see sometime in the model... thank you

@Noisyfox
Copy link
Collaborator Author

Just one note - is possible (and it bothers me in Prusa Slicer / Bambu studio) - when you select the text, make the selected text in a different color? Now it is not easy to see sometime in the model... thank you

Good idea, will try doing that.

@discip
Copy link
Contributor

discip commented Nov 22, 2023

@Noisyfox

Just wanted to thank you for your dedication and all the effort you put into OrcaSlicer. 😃👍❤️

Unfortunately, these days many people take such an attitude for granted.
But I know how rewarding it can be when someone lets you know their appreciation. Even if it’s just a "thank you".
Hope this keeps your mood up.

@SoftFever
Copy link
Owner

Bravo!
image

@discip
Copy link
Contributor

discip commented Nov 22, 2023

I don't know if this is already being worked on, but there are some differences in the dialog-UI:

OrcaSlicer PrusaSlicer
image image

@discip
Copy link
Contributor

discip commented Nov 22, 2023

May I ask what the purpose of this in your screenshot is?

image

@Noisyfox
Copy link
Collaborator Author

I don't know if this is already being worked on, but there are some differences in the dialog-UI:

OrcaSlicer PrusaSlicer
image image

Yeah this is a known issue, some of the special icons haven't been ported over yet.

May I ask what the purpose of this in your screenshot is?

Good question, I didn't add this option, it must be there but just been hidden under certain conditions.

@cpasoft
Copy link

cpasoft commented Nov 23, 2023

Love it... Download and testing...

@Noisyfox
Copy link
Collaborator Author

Update: It will be very unlikely that we are able to port the emboss tool while keeping compatibility with existing Orca/BBS 3mf file. Any existing texts will be converted to normal mesh object once opened using this build (but the file will not be modified unless you save it with the new build), means you can still slicing the file, move/rotate/scale/delete the text object (i.e., anything that you can do to a normal mesh object), but will no longer able to edit the text such as change text content, change font etc.

Same goes to the other way, project that has text (and SVG) added using this build can still be opened by BBS/old Orca, but the texts and svgs will be treated as normal object.

@discip
Copy link
Contributor

discip commented Nov 23, 2023

So it means that projects created with current Orca will lose the text (convert to mesh), but projects created with the implementation from this PR and onwards will be able to store text (not convert to mesh).

Right?

@Noisyfox
Copy link
Collaborator Author

So it means that projects created with current Orca will lose the text (convert to mesh), but projects created with the implementation from this PR and onwards will be able to store text (not convert to mesh).

Right?

Yes

@discip
Copy link
Contributor

discip commented Dec 7, 2023

@Noisyfox
Sorry, but unfortunately there are still some little issues:

1. Rotation of the main object

As long as the main object is not rotated everything works as expected, but as soon as you rotate it, the text rotation will be changed. But you won't notice until you save the project, open it again and try to manipulate the text either by clicking the text after the text gizmo was selected or by changing any value.

2. Expansion of text gizmo card after 'Advanced' is clicked

  1. The text gizmo card only expands after the mouse gets moved.
  2. And some times only clicking the arrow makes it unfold (not reaction if the word 'Advanced' is clicked).

Thank you for your patience! Highly appreciated! 👍

@SoftFever
Copy link
Owner

SoftFever commented Dec 7, 2023

Shall we change the font color to black? It's barely visible
It list item looks a bit too big too, what do you think@@
image

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 7, 2023

As long as the main object is not rotated everything works as expected, but as soon as you rotate it, the text rotation will be changed. But you won't notice until you save the project, open it again and try to manipulate the text either by clicking the text after the text gizmo was selected or by changing any value.

Should have been fixed now... Finger crossed.

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 7, 2023

Noticed another issue... The from surface is wrong after saving & opening.

@discip
Copy link
Contributor

discip commented Dec 7, 2023

I'm sorry, but there is still something not right.

The previous distortion/rotation issue is gone and replaced by this movement in Y direction.
moving

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 8, 2023

I'm sorry, but there is still something not right.

The previous distortion/rotation issue is gone and replaced by this movement in Y direction. moving moving

How could I reproduce this issue?

@discip
Copy link
Contributor

discip commented Dec 8, 2023

How could I reproduce this issue?

  1. Create new project
  2. Add primitive > cube
  3. Place text on it
  4. Save project
  5. Open saved project
  6. Select text
  7. Open text gizmo
  8. Click text (on the cube) or change any value
  9. Notice how the text on the object moves

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 8, 2023

Noticed another issue... The from surface is wrong after saving & opening.

PS has the same issue though... And I found the current algorithm is in a situation that this cannot be fixed properly. I've already spent too much time on this issue so far and just won't be able to do anything to it. I'll just ignore this for now and see what PS will come up with.

I've also reported this to Prusa: prusa3d/PrusaSlicer#11868

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 8, 2023

How could I reproduce this issue?

  1. Create new project
  2. Add primitive > cube
  3. Place text on it
  4. Save project
  5. Open saved project
  6. Select text
  7. Open text gizmo
  8. Click text (on the cube) or change any value
  9. Notice how the text on the object moves

This should have been solved now, though you'll have to recreate the project or re-add text, because the previously saved file is broken.

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 8, 2023

Shall we change the font color to black? It's barely visible It list item looks a bit too big too, what do you think@@ image

image
Updated.

@discip
Copy link
Contributor

discip commented Dec 8, 2023

Thank you very much! Finally solved! 😃👍🏻❤️

@SoftFever
Copy link
Owner

@Noisyfox I did some preliminary tests, and it looks good! Do you have any other fixes planned for this PR?

@Noisyfox
Copy link
Collaborator Author

Noisyfox commented Dec 9, 2023

@Noisyfox I did some preliminary tests, and it looks good! Do you have any other fixes planned for this PR?

No at the moment.

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@SoftFever
Copy link
Owner

@Noisyfox I did some preliminary tests, and it looks good! Do you have any other fixes planned for this PR?

No at the moment.

Cool, I'm merge it now.
It's driving me crazy to switch deferent version of deps when switching PR...

@FillPavS
Copy link

FillPavS commented Dec 22, 2023

@Noisyfox I did some preliminary tests, and it looks good! Do you have any other fixes planned for this PR?

No at the moment.

Cool, I'm merge it now. It's driving me crazy to switch deferent version of deps when switching PR...

Please note this bug caused by this commit. #3171

Ocraftyone added a commit to Ocraftyone/BambuStudio-Ocraftyone that referenced this pull request Sep 1, 2024
One of the commits from SoftFever/OrcaSlicer#2819 (933aa3050bf5297b3714fb59575b3ec86e017112)

Co-authored-by: Ocraftyone <ocraftyone@users.noreply.github.com>
Ocraftyone pushed a commit to Ocraftyone/BambuStudio-Ocraftyone that referenced this pull request Sep 7, 2024
One of the commits from SoftFever/OrcaSlicer#2819 (933aa3050bf5297b3714fb59575b3ec86e017112)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants