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

133
Views
Habitación isométrica Generando X, Y Coloreando

Quiero generar una habitación isométrica y quiero colorear con este estilo:Como quiero

Pero mi código actual me da este resultado:como es en realidad

Ese es mi código actual (no sé, si es la forma correcta de generar los bloques con este método. Tal vez alguien pueda ayudarme, ¿cómo funciona correctamente?

 for(let iX = 0; iX < 10; iX++) { for(let iZ = 0; iZ < 10; iZ++) { if(iX % 2 == 0) { material = material1; } else { material = material2; } var box = generateBox(1, 0.1, 1, material); box.name = `box-${iX}-${iZ}`; box.position.set(iX, box.geometry.parameters.height / 2, iZ); room.add(box); } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambia el estilo del material basándose únicamente en el valor de la variable iX . En su lugar, debe cambiarlo en función de los valores de las variables iX e iZ como esta:

 if ((iX + iZ) % 2 === 0) { material = material1; } else { material = material2; }
about 4 years ago · Juan Pablo Isaza Report
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!