kkmcgg / awktree Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://kkmcgg.github.io/awktree/
Home Page: https://kkmcgg.github.io/awktree/
the rotate and graphics are bad!
remember ptcloud.org? do that maybe! (bablyon.js)
Obviously I need to move all the nodes to a folder! Yuck
Currently, the project uses a basic point rendering technique for visualizing 3D data. The goal is to enhance this by implementing Gaussian blur instead of simple points.
Implement a custom shader to achieve Gaussian blur. Define the shader material as follows:
var shaderMaterial = new THREE.ShaderMaterial({
uniforms: {
color: { value: new THREE.Color(0xffffff) },
scale: { value: 0.1 }
},
vertexShader: \`
void main() {
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
gl_PointSize = scale * ( 300.0 / -mvPosition.z );
gl_Position = projectionMatrix * mvPosition;
}
\`,
fragmentShader: \`
uniform vec3 color;
void main() {
float r = distance(gl_PointCoord, vec2(0.5, 0.5));
if (r < 0.5) {
gl_FragColor = vec4(color, 1.0 - 2.0 * r);
} else {
discard;
}
}
\`,
transparent: true
});
Replace the current material definition for the points with the custom shader material:
// var material = new THREE.PointsMaterial({ color: getRandomColor(), size: 0.1 });
var material = shaderMaterial;
In the worker.onmessage
function, update the material to use the new shader material:
var material = shaderMaterial; // Use the shader material here
After these changes, the point cloud should be rendered with a Gaussian blur effect instead of simple points.
This enhancement aims to improve the visual quality of the 3D data representation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.