I am attempting to implement an alpha coloring filter on a point cloud, as outlined in this tutorial: , in order to create a heatmap effect.
Currently, I am rendering a 2D point cloud onto a texture and then displaying it on a plane using a custom shader that manages the colorize-alpha filtering.
The issue I am facing is figuring out how to zoom into the textured point cloud while maintaining the original size of the individual points within the cloud.
I have provided a simplified example demonstrating my render-to-texture setup, without actual colorize-alpha filtering: http://jsfiddle.net/q8fpt7eL/1/
The desired effect is to replicate the same visualization achieved when directly drawing the point cloud. In the provided jsfiddle, you can toggle between rendering to texture and rendering directly to observe the difference.
//render to texture
//renderer.render(sceneRTT, cameraRTT, rtTexture, false);
//renderer.render(scene, camera);
//render directly the point cloud
renderer.render(sceneRTT, camera);
I have attempted using the same camera settings and copying camera position/rotation to the cameraRTT object, but none of these methods seem to produce the intended result. I also experimented with an orthographic camera in the RTT scene, but encountered no success.
If anyone has any insights or suggestions on how I can achieve my objective, please share your thoughts.
Thank you!