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

[gui] [vulkan] Surpport for python users to control the start index and count number of particles & meshes data. #5388

Merged
merged 36 commits into from
Jul 11, 2022

Conversation

Morcki
Copy link
Member

@Morcki Morcki commented Jul 11, 2022

Usage:

# For particles
# draw 2-th to 7-th particles
scene.particles(center, radius, 
index_offset = 1, 
index_count = 6) 

# For mesh
# 1. with indices
scene.mesh(vertices, indices, 
index_offset  = user_defined_first_indices_index, 
index_count   = user_defined_index_count, 
# vertex_offset default is set 0, and is not necessary
# to be passed by a value otherwise you must.
vertex_offset = user_defined_vertex_offset)

# usually used as below:
# draw 11-th to 111-th mesh vertexes
scene.mesh(vertices, indices, 
index_offset  = 10, 
index_count   = 100)

# 2. without indices (similar to particles' example as above)
scene.mesh(vertices, 
vertex_offset = user_defined_first_vertex_index, 
vertex_count  = user_defined_vertex_count)

Morcki and others added 29 commits July 6, 2022 14:00
…le start index and count (visible range) of mesh & particles for python users
…start index and draw count number of particles/mesh data
@netlify
Copy link

netlify bot commented Jul 11, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit fe2d3c7
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62cbe29a66c26f0008b9c455
😎 Deploy Preview https://deploy-preview-5388--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 a review from PENGUINLIONG July 11, 2022 08:29
@Morcki Morcki requested a review from YuCrazing July 11, 2022 09:43
Copy link
Member

@PENGUINLIONG PENGUINLIONG left a comment

Choose a reason for hiding this comment

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

lgtm :)

@Morcki Morcki requested a review from PENGUINLIONG July 11, 2022 11:45
@YuCrazing YuCrazing merged commit 7557ecc into taichi-dev:master Jul 11, 2022
@Morcki Morcki deleted the taichi-ggui_dev branch July 26, 2022 01:50
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