Comments (3)
Materials for rgb, intensity, single color and height are now in the master and develop branches. Tweaking still necessary.
from potree.
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 itsVertexShader
andFragmentShader
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.
@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)
- Rotation between the 360 image and the Pointcloud HOT 32
- Loading multiple entwines has issue HOT 2
- Fix for Potree webgl crash on recent Chrome browsers which default to webGL2 and have no FragDepth extension
- RangeError: offset is out of bounds
- Points in 2D profile not visible with COPC file HOT 2
- intensity color customize
- Panorama|360 sharing working example - non-georeferenced coordinates HOT 2
- How to run Potree on a PC without pre-installing NODE.JS?
- Do you have any plans to support the latest version of Veesus Arena4D
- Volume clip include annotation
- custom texture
- I want to mark and measure when the point cloud is not loaded, or not visible HOT 4
- Measuring not possible HOT 1
- How get latitude longitude from x,y,z point ? HOT 3
- Opacity not working with "Splat Quality" set to high
- Importing 3D DXF contours to viewer
- Potree OrbitControls - cannot find a way to turn Mouse 'Zoom' on and off HOT 1
- Point budget increase HOT 1
- Modiy points color or classification
- Beginner trying to update from 1.6 to 1.8.2 HOT 2
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 potree.