streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

Car model color is always black

Open didibaba opened this issue 5 years ago • 1 comments

I was using this to define a car model, but the color in the LogView is always black. The 'car.obj' I used was the one in the project.

export const CAR = {
  mesh: load('./assets/car.obj', OBJLoader),
  origin: [1.3, 0, 0],
  scale: 0.0009,
  wireframe: false,
  color: [180, 180, 200, 255]
};

When I use export const CAR = CarMesh.sedan({ width: 2.2, length: 4.5, height: 1.5, color: [180, 180, 200]}); to define the model, it is normal.

didibaba avatar Feb 12 '20 05:02 didibaba

After mading some more tests, the problems are caused by deck.gl version 8.0.0.

There is also another bug that the "driver" view mode in streetscape.gl >= 1.0.3 wil crash caused by transform.js in model core.

didibaba avatar Feb 19 '20 09:02 didibaba