GithubHelp home page GithubHelp logo

Custom pointcloud shader about potree HOT 3 CLOSED

potree avatar potree commented on June 16, 2024
Custom pointcloud shader

from potree.

Comments (3)

m-schuetz avatar m-schuetz commented on June 16, 2024

Materials for rgb, intensity, single color and height are now in the master and develop branches. Tweaking still necessary.

from potree.

jo-chemla avatar jo-chemla commented on June 16, 2024

Hi Markus,
I would like to set a custom shader material for the point cloud, but when doing so, I get a ThreeJS ShaderMaterial instead of a Potree PointCloudMaterial, so I get the following error

potree.js:12437 Uncaught TypeError: scope.pointclouds[i].material.setClipBoxes is not a function
    at Potree.Viewer.update (potree.js:12437)
    at loop (potree.js:12943)

What I've done is either

  • define a shaderMaterial from scratch and set vertex and fragment shaders - a bit modified from the current shaders of the point cloud
  • clone the pointcloud.material using the threejs function, set its VertexShader and FragmentShader to what I want, but again same result
  • update the shaders of the material of the point cloud directly, but the changes are not applied.

Can you tell me how I can achieve this feature of modifying portions (x, y, z, vcolor) of the shaders ?
Thanks a lot for your help again,
Jonathan

from potree.

Zvyozdo4ka avatar Zvyozdo4ka commented on June 16, 2024

@jo-chemla Hi, Jonathan! I guess you have achieved yourself results. Could you share you experience?

Could you explain how does the shaders work? In what language have they been realized? Do you have any documentation regarding shaders?

from potree.

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.