Skip to content

Render slices on 3d object - #95

Merged
ai merged 7 commits into
evilmartians:mainfrom
muddv:render-slices-3d
Mar 24, 2023
Merged

Render slices on 3d object#95
ai merged 7 commits into
evilmartians:mainfrom
muddv:render-slices-3d

Conversation

@muddv

@muddv muddv commented Mar 23, 2023

Copy link
Copy Markdown
Contributor

Related to #90
Currently 3d object look like this:
image
image

And here it is in action:
https://user-images.githubusercontent.com/73133951/227347489-7bea7f0b-9724-4c7c-aefa-5f993c2efe07.mp4

@ai

ai commented Mar 23, 2023

Copy link
Copy Markdown
Member

I sent it to our designer. For me it looks awesome.

@ai

ai commented Mar 24, 2023

Copy link
Copy Markdown
Member

Looks awesome for both of us. Tomorrow will do a review if we are ready.

Comment thread lib/model.ts Outdated
if (!fullControl) {
updateSelectors(selectorL, selectorC, selectorH, current.get())
}
current.listen(value => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we need to listen current for cull-screen model (we do not need to draw lines on fullscreen)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If we are in fullscreen current would not be updating anyway, so it does not influence anything. Shaders are reset to default value, so selectors are not visible in fullscreen

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But why we need this line in full-screen? Can we move it to if (!fullControl)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I made the change, also automatically fixed some formatting

@romashamin

Copy link
Copy Markdown

Wow! That looks awesome! Thank you, @muddv.

Isn’t it too late to make lines thinner? I think half of the current stroke would be great.

@muddv

muddv commented Mar 24, 2023

Copy link
Copy Markdown
Contributor Author

Wow! That looks awesome! Thank you, @muddv.

Isn’t it too late to make lines thinner? I think half of the current stroke would be great.

Thank you!

Making lines thinner is a quick change, here is how it would look like at half of current width:
image
What do you think?

@romashamin

Copy link
Copy Markdown

@muddv thank you!

This width looks perfect 🔥

There’s nothing else from my side! cc @ai

@ai
ai merged commit 11d5fe7 into evilmartians:main Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants