GithubHelp home page GithubHelp logo

Comments (4)

uhlik avatar uhlik commented on July 22, 2024

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.

uhlik avatar uhlik commented on July 22, 2024

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.

uhlik avatar uhlik commented on July 22, 2024

ok, sequence is in (at lest, its first and easy implementation) and script access is also finished, have a look to readme..

from bpy.

uhlik avatar uhlik commented on July 22, 2024

would you try it with sverchok, animation nodes, etc? i have no experience with any of them

from bpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.