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

Stream shows the inside of sketch after extrude #2998

Closed
ZooSpiritWolf opened this issue Jul 10, 2024 · 8 comments · Fixed by #3711
Closed

Stream shows the inside of sketch after extrude #2998

ZooSpiritWolf opened this issue Jul 10, 2024 · 8 comments · Fixed by #3711
Assignees
Labels
bug Something isn't working high-priority regression Bugs related to regressions.

Comments

@ZooSpiritWolf
Copy link

🐛

Steps to reproduce:

  1. Login
  2. Clear default sketch
  3. Start a new sketch
  4. Select a plane
  5. Draw a square or use rectangle tool to draw one
  6. Exit sketch
  7. Click the sketch
  8. Click "Extrude" button
  9. Enter a distance value of at least ~15
    Expected: To view the extruded sketch at a reasonable scale
    Actual: The view is the inside of the extruded sketch

Timestamp: 0:11
Video:
https://www.loom.com/share/9db8ba018edf46e7bd5452e0badae717 (https://www.loom.com/share/9db8ba018edf46e7bd5452e0badae717)

Bug report:
https://app.qawolf.com/zoo/bug-reports/fd93b4d3-6b42-4ba7-a551-c38a6a55fd37

Affected workflows:

If you are aware of this bug you can set the priority to low which will prevent it from causing a run failure.

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 5, 2024

This was actually solved when Lee added "zoom_to_fit" on extrude, but zoom to fit was being weird and making the whole scene look empty, because the user ending up inside the object is better than loosing the scene entirely I re-introduced this bug as a compromise with #3276

And have raised this https://github.com/KittyCAD/engine/issues/2417 in the engine.

@lf94
Copy link
Contributor

lf94 commented Aug 6, 2024

So we're waiting on engine to fix?

@franknoirot
Copy link
Collaborator

Just double checking, that part of the problem with our Reset Camera button and function isn't that we update the camera's position to a fixed number before calling zoom_to_fit? We send this engine command before the zoom_to_fit in CameraControls.resetCameraPosition:

await this.engineCommandManager.sendSceneCommand({
      type: 'modeling_cmd_req',
      cmd_id: uuidv4(),
      cmd: {
        type: 'default_camera_look_at',
        center: this.target,
        vantage: {
          x: this.target.x,
          y: this.target.y - 128,
          z: this.target.z + 64,
        },
        up: { x: 0, y: 0, z: 1 },
      },
    })

are the 128 and 64 unit-less? And is the engine okay with us calling a camera move command immediately followed by a command that moves and zooms, or could that cause issues? Just seeing if our use of the API could contribute at all.

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 7, 2024

Reset camera is fine, zoom to fit has issues outside of the reset camera gizmo button. for example #3217

zoom to fit does not change the camera's orientation only it position, so setting the camera to
image

First just has the effect of putting the camera back to where it normally start with, so it's like resetting the scene.

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 7, 2024

Engine has a PR up btw.

@jessfraz
Copy link
Contributor

looks like this was closed in engine, we good here?

@Irev-Dev
Copy link
Collaborator

Yes.

@Irev-Dev
Copy link
Collaborator

I was about to ping the qa wolf team but looking at this issue on their side it says it's closed already
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority regression Bugs related to regressions.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants