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

[Doc] Add docs for GGUI's new features #5647

Merged
merged 27 commits into from
Aug 10, 2022

Conversation

Morcki
Copy link
Member

@Morcki Morcki commented Aug 5, 2022

  1. For those who need depth information of the current scene, you can now fetch the depth buffer from Vulkan to taichi Field using ti.ui.Window.get_depth_buffer(field) in ti.ui.Window, note that you should declare a taichi field with shape matching the window shape beforehand. Alternatively, you can get depth info in a numpy array using ti.ui.Window.get_depth_buffer_as_numpy().
  2. GGUI now supports drawing 3d lines via Scene.lines(vertices, width). Use multiple lines to assist your scene construction and to display the boundary.
  3. GGUI added support for drawing mesh instance. You can pass a list of transformation matrices and call ti.ui.Scene.mesh_instance(vertices, transforms=TransformMatrixField) to place mounts of instances of mesh into different places.
  4. You can optionally turn on show_wareframe=True in Scene.mesh and Scene.mesh_instanceto show the wareframe of the mesh to examine your objects in GGUI.

@netlify
Copy link

netlify bot commented Aug 5, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 093ed9d
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62f367a7cb75e1000a7ab23a
😎 Deploy Preview https://deploy-preview-5647--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Morcki Morcki requested review from ailzhang and writinwaters August 5, 2022 09:48
@Morcki Morcki added this to the Taichi v1.1.0 milestone Aug 5, 2022
@Morcki Morcki requested a review from YuCrazing August 5, 2022 12:32
@YuCrazing YuCrazing changed the title [Doc] Add docs about some new feature of GGUI [Doc] Add docs for GGUI's new features Aug 6, 2022
Copy link
Contributor

@writinwaters writinwaters left a comment

Choose a reason for hiding this comment

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

Editorial updates. Please double check if I garbled with the intended meaning.

docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
docs/lang/articles/visualization/ggui.md Outdated Show resolved Hide resolved
@ailzhang ailzhang merged commit db3c17d into taichi-dev:master Aug 10, 2022
@Morcki Morcki deleted the taichi-ggui_make_docs branch August 10, 2022 10:07
ailzhang pushed a commit to ailzhang/taichi that referenced this pull request Aug 10, 2022
* improve docs about new features of GGUI

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename wareframe to wireframe

* update some docs

* update docs

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename  to

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vissidarte-Herman <[email protected]>
ailzhang pushed a commit to ailzhang/taichi that referenced this pull request Aug 10, 2022
* improve docs about new features of GGUI

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename wareframe to wireframe

* update some docs

* update docs

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename  to

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vissidarte-Herman <[email protected]>
ailzhang added a commit that referenced this pull request Aug 10, 2022
* [autodiff] Fix AdStackAllocaStmt not correctly backup (#5692)

* [autodiff] Fix AdStackAllocaStmt not correctly backup

* remove redundant replace

* add comments

* add polar decompose test

* erase outdated AdStackAllocaStmt

* [Doc] Add introduction to forward mode autodiff (#5680)

* [autodiff] Add introduction to forward mode autodiff

* Apply suggestions from code review

Co-authored-by: Ailing  <[email protected]>

* Apply suggestions from code review

Co-authored-by: Ailing  <[email protected]>

* [Doc] Add docs for GGUI's new features (#5647)

* improve docs about new features of GGUI

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename wareframe to wireframe

* update some docs

* update docs

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* Update docs/lang/articles/visualization/ggui.md

Co-authored-by: Vissidarte-Herman <[email protected]>

* rename  to

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vissidarte-Herman <[email protected]>

* [bug] Support indexing via np.integer for field (#5712)

* [autodiff] Clear all dual fields when exiting context manager (#5716)

* [Doc] [type] Add introduction to quantized types (#5705)

* [Doc] [type] Add introduction to quantized types

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix

* Apply suggestions from code review

Co-authored-by: Ailing  <[email protected]>

* Shuffle

* Fix type

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ailing  <[email protected]>

* [test] Fix autodiff test for unsupported shift ptr (#5723)

* [misc] Update version to v1.1.0

Co-authored-by: Mingrui Zhang <[email protected]>
Co-authored-by: Mocki <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vissidarte-Herman <[email protected]>
Co-authored-by: Yi Xu <[email protected]>
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.

4 participants