Comments (4)
hi, both looks doable, but not easy. can you elaborate a bit? i have (currently) no need for such features, so i'd like to know better how to implement it..
loading sequence - something like loading of image sequences works in compositor? you select one image, then it tries to extract some seq number from its name and to find other images in directory? you can set number of, start frame, etc. than what? preload all ply files and store in memory? each frame new batch will have to be created and filled with data might slow down things (?) also, with sequences i would disable all extra features, just display options would be left..
passing data from elsewhere - something like
from view3d_point_cloud_visualizer import PCVInterface
pcv = PCVInterface()
pcv.init() # just in case there is no draw handler
o = bpy.context.active_object
vs = [[0.0, 0.0, 1.0]]
ns = [[0.0, 0.0, 1.0]] # optional, if not available pass None
cs = [[1.0, 0.0, 0.0]] # optional, if not available pass None
pcv.draw(o, vs, ns, cs)
# ... for example each frame call with new data
pcv.erase(o) # finished
something like that would be possible even now, only in a bit messy way.. i had to write something like that in because of recent editing features, but it is meant for internal use, no data checking, some conditions are assumed, etc.
best would be start with robust data changing during runtime and than get sequence loading for free..
from bpy.
what about this? it is already commited. to draw something
import bpy
import numpy as np
from view3d_point_cloud_visualizer import PCVControl
c = PCVControl()
c.init()
o = bpy.context.active_object
n = 100
vs = np.random.normal(0, 2, (n, 3))
ns = np.array([[0.0, 0.0, 1.0]] * n)
cs = np.random.random((n, 3))
c.draw(o, vs, ns, cs)
when finished
import bpy
import numpy as np
from view3d_point_cloud_visualizer import PCVControl
c = PCVControl()
o = bpy.context.active_object
c.erase(o)
c.reset(o)
from bpy.
ok, sequence is in (at lest, its first and easy implementation) and script access is also finished, have a look to readme..
from bpy.
would you try it with sverchok, animation nodes, etc? i have no experience with any of them
from bpy.
Related Issues (20)
- Tool 'ui_plus.opencv' already exists! HOT 1
- GPUShader.uniform_float: uniform alpha_radius not found HOT 2
- Conversion to Animation with original point cloud colour HOT 3
- Rendering stills or animation get Blender unresponsive HOT 1
- sequence not animating HOT 1
- second development HOT 1
- PCV 2.0 "Load" panel differences from documentation HOT 1
- Import bpy Error HOT 1
- Viewer in VR Scene HOT 1
- Depth from ply file HOT 1
- Side bar Doesn't show the plugin HOT 1
- Follow up to "sequence not animating" post HOT 1
- Conversion with vertex colors does not work HOT 1
- Missing vertex normals HOT 1
- Is this a scaling problem? HOT 1
- export ply from external API HOT 1
- Point Cloud Visualizer: Coloriizer not working on Parallel projection HOT 3
- Point Cloud Visualizer: Semi-Transparent Material view HOT 4
- UVTEX not working through API HOT 1
- Render point cloud doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpy.