Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
How do I render points on every vertex of my geometry in React with three.js and Three-React-fiber?

I am wondering how to use the pointsmaterial and the points object from three-react-fiber. I have a custom geometry that I import from a .gltf file and I currently render it like this:

<mesh
    castShadow
    receiveShadow
    ref={grip}
    geometry={nodes.Circle002_1.geometry}
    material={wired}
  />

However, I am lost in how to create a pointsmaterial and attach it to the mesh instead of the wired material I use now. Can someone please explain how to do this in React?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Okay, the answer was really easy. I changed the <mesh tag to a <points tag, and I made a material with the following constructor:

const pMaterial = new PointsMaterial(); then I set the points size with:

pMaterial.size = 0.01

and I changed the material prop in the <points tag to:

material={pMaterial}.

This draws points at every vertex intersection of a custom 3d geometry.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda