Java 如何在Android Studio中更改3D对象的颜色?
我有一个3D对象,代码如下:Java 如何在Android Studio中更改3D对象的颜色?,java,android,android-studio,3d,fbx,Java,Android,Android Studio,3d,Fbx,我有一个3D对象,代码如下: { materials: [ { name: 'Material_3', parameters: [ { baseColor: [ 0.84313700000000003, 0.72548999999999997, 0.4980390000000000
{
materials: [
{
name: 'Material_3',
parameters: [
{
baseColor: [
0.84313700000000003,
0.72548999999999997,
0.49803900000000001,
1,
],
},
{
baseColorMap: null,
},
{
normalMap: null,
},
{
interpolatedColor: null,
},
{
metallic: 0,
},
{
metallicMap: null,
},
{
roughness: 0,
},
{
roughnessMap: null,
},
{
opacity: null,
},
],
source: 'build/sceneform_sdk/default_materials/fbx_material.sfm',
},
{
name: 'Material_2',
parameters: [
{
baseColor: [
0.50196099999999999,
0.81568600000000002,
0.57647099999999996,
1,
],
},
{
baseColorMap: null,
},
{
normalMap: null,
},
{
interpolatedColor: null,
},
{
metallic: 0,
},
{
metallicMap: null,
},
{
roughness: 0,
},
{
roughnessMap: null,
},
{
opacity: null,
},
],
source: 'build/sceneform_sdk/default_materials/fbx_material.sfm',
},
{
name: 'Material_1',
parameters: [
{
baseColor: [
0.792157,
0.50196099999999999,
0.67843100000000001,
1,
],
},
{
baseColorMap: null,
},
{
normalMap: null,
},
{
interpolatedColor: null,
},
{
metallic: 0,
},
{
metallicMap: null,
},
{
roughness: 0,
},
{
roughnessMap: null,
},
{
opacity: null,
},
],
source: 'build/sceneform_sdk/default_materials/fbx_material.sfm',
},
],
model: {
attributes: [
'Position',
'TexCoord',
'Orientation',
'BoneIndices',
'BoneWeights',
],
collision: {},
file: 'sampledata/box-test.FBX',
name: 'box-test',
recenter: 'root',
},
version: '0.54:2',
}
对象是3个立方体,立方体有名称-Material_1、Material_2、Material_3,您需要:
-关于第一个施加透明度的材料
-关于第二种施加金属丰度的材料
-论第三种自发光材料
另外,我刚开始在安卓工作室做3D,所以我不知道怎么做