streetscape.gl
streetscape.gl copied to clipboard
Car model color is always black
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.
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.