-
Notifications
You must be signed in to change notification settings - Fork 24
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
the intuition behind Voxelizer #32
Comments
Glad it's useful to you! Here's how it work: |
Thanks for your explanation! I'll cite your package in my course project lol I'm also curious about the marching cube algorithm. I read some blogs about the marching cube algorithm, and it is originally designed for implicit functions, the vertex is either positive or negative so we can generate mesh based on cube vertex values. (Sorry for so many questions, I did read your code carefully but I didn't quite understand it because I'm a new beginner .. ) |
By
Their implementation checks |
Hi @archibate , I tried tp run mciso_mpm3d.py , but i got errors, would u mind helping?
|
Thanks for reporting! This is likely a bug in early version of |
Thanks @archibate. |
Sounds like a good choice! Snows are to be feel like particles rather than stuck together which is the result of mciso.
Solutions are:
model1 = t3.ScatterModel()
model1.material = t3.Material(t3.CookTorrance(color=t3.Constant(t3.RGB(1, 0, 0)))) # red
scene.add_model(model1)
model2 = t3.ScatterModel()
model2.material = t3.Material(t3.CookTorrance(color=t3.Constant(t3.RGB(0, 1, 0)))) # green
scene.add_model(model2)
...
model1.pos.from_numpy(pos_desired_for_red)
model2.pos.from_numpy(pos_desired_for_green)
...
|
Wow :), Thanks alot., that good news, can't wait for that. |
Hi, I've just pushed commit 0aea61a to |
Hi, I've merged some huge refactors in this project recently and the API has been changed to make it easier to use and maintain. import taichi as ti
import numpy as np
import tina # previously called taichi_three
ti.init(ti.gpu)
scene = tina.Scene()
pars = tina.SimpleParticles()
material = tina.BlinnPhong()
scene.add_object(pars, material)
gui = ti.GUI('particles')
pos = np.random.rand(1024, 3) * 2 - 1
pars.set_particles(pos) # you can directly specify particle positions from numpy array with variable length, like gui.circles does
radius = np.random.rand(1024) * 0.1 + 0.1
pars.set_particle_radii(radius) # radii can still bee customized per-vertex
color = np.random.rand(1024, 3) * 0.8 + 0.2
pars.set_particle_colors(color) # colors can be customized per-vertex too
while gui.running:
scene.input(gui)
scene.render()
gui.set_image(scene.img)
gui.show() Hope it helps. Please let me know if you like this change :) |
出现这个问题咋办,AttributeError: module 'taichi' has no attribute 'TaichiOperations' |
更新了,最新的master应该没有这个错误 |
Thanks for your package! I find Voxelizer is really helpful, but I can't quite understand the algorithm ... Is there any reference for this method? Thanks!
The text was updated successfully, but these errors were encountered: