Closed ranranbyte closed 1 year ago
const layer = new SimpleMeshLayer({ id: 'trafficSignLayer', data: this.trafficSignData, coordinateSystem: COORDINATE_SYSTEM.METER_OFFSETS, coordinateOrigin: this.trackPosition,
getColor: d => [256, 256, 256], getOrientation: d => d.orientation === '+' ? [0, d.hdg * 180, 90] : [0, -d.hdg * 180, 90], getPosition: d => d.position, mesh: './../../data/trafficSign.obj', sizeScale: 0.08, fillPatternAtlas: './../../data/texture/bus-sign.png', fillPatternMapping: './../../data/texture/bus-sign.json', getFillPattern: d => 'direct-right-sign', getFillPatternScale: 1, getFillPatternOffset: [0, 0], extensions: [new FillStyleExtension({ pattern: true })], loaders: [OBJLoader], pickable: true });
SimpleMeshLayer texture can be displayed normally
Add a SimpleMeshLayer and then add the FillStyleExtension extension
No response
FillStyleExtension does not work with SimpleMeshLayer as the texture is applied on the XY plane. You should use the texture prop of the layer.
FillStyleExtension
SimpleMeshLayer
texture
Description
const layer = new SimpleMeshLayer({ id: 'trafficSignLayer', data: this.trafficSignData, coordinateSystem: COORDINATE_SYSTEM.METER_OFFSETS, coordinateOrigin: this.trackPosition,
Flavors
Expected Behavior
SimpleMeshLayer texture can be displayed normally
Steps to Reproduce
Add a SimpleMeshLayer and then add the FillStyleExtension extension
Environment
Logs
No response