Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
Objeto GLB con AmbientLight completamente negro con RGBELoader correcto

Estoy tratando de importar un objeto 3D de Cinema4D a Three.js usando GLTFLoader. Sin embargo, este objeto es completamente negro con AmbientLight. Ahora he descubierto que se debe al material utilizado. Si ahora anido el GLTFLoader en un RGBELoader, mi objeto 3D obtiene una iluminación más correcta (vea las capturas de pantalla).

  1. ¿Por qué mi objeto 3D no reacciona a AmbientLight, sino a RGBELoader? ¿Cuál es la diferencia técnica entre las fuentes de luz?
  2. ¿Puedo inicializar una especie de fuente de luz neutral RGBELoader en Three.js? ¿Una imagen en blanco? ¿Usar un método Three.js diferente? Tipo de AmbientLight solo que reacciona a mi material?

Archivos adjuntos:

Cargador RGBE

 new RGBELoader() .load( 'royal_esplanade_1k.hdr', function ( texture ) { texture.mapping = THREE.EquirectangularReflectionMapping; scene.background = texture; scene.environment = texture; render(); // model const loader = new GLTFLoader(); loader.load( 'Cube2.glb', function ( gltf ) { scene.add( gltf.scene ); render(); } ); } );

Luz ambiental

 const light = new THREE.AmbientLight( 0xffffff, 1 ); // soft white light scene.add( light ); scene.background = new THREE.Color( 0x808080 ); const loader = new GLTFLoader(); loader.load( 'Cube2.glb', function ( gltf ) { scene.add( gltf.scene ); render(); } );
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!