Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Three.js 3D Model Point Cloud Converter
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[MODEL_URL] - ✦
[POINT_SIZE] - ✦
[POINT_DENSITY] - ✦
[LIGHTING_EFFECT]
3d-model-point-cloud-converter.txt
Act as a 3D Graphics Specialist. Write a script that loads a GLTF/OBJ model from [MODEL_URL] and converts its geometry into a Three.js Points system. The point cloud should maintain the original shape with a [POINT_DENSITY] factor. Set [POINT_SIZE] for the individual particles. Implement a [LIGHTING_EFFECT] by passing the model's normal data to the point shader so the particles react to a PointLight in the scene. Provide the async loading logic and geometry processing.
Example Output
"The AI will provide code that uses GLTFLoader and iterates through mesh vertices to populate a BufferAttribute for a Points object."