gpt4 book ai didi

us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setAmbientColor()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 15:24:49 29 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial.setAmbientColor()方法的一些代码示例,展示了YoAppearanceMaterial.setAmbientColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearanceMaterial.setAmbientColor()方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearanceMaterial
类名称:YoAppearanceMaterial
方法名:setAmbientColor

YoAppearanceMaterial.setAmbientColor介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition BlackMetalMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(6.0f);
 mat.setAmbientColor(0.16f, 0.18f, 0.2f);
 return mat;
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition FenceMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.4f, 0.4f, 0.4f);
 mat.setDiffuseColor(0.95f, 0.95f, 0.95f);
 mat.setShininess(2.0f);
 mat.setAmbientColor(0.45f, 0.45f, 0.45f);
 return mat;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition AluminumMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(7.5f);
 mat.setAmbientColor(0.17f, 0.5f, 0.7f);
 return mat;
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition AluminumMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(7.5f);
 mat.setAmbientColor(0.17f, 0.5f, 0.7f);
 return mat;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition BlackMetalMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(6.0f);
 mat.setAmbientColor(0.16f, 0.18f, 0.2f);
 return mat;
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition PlaneMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(7.5f);
 mat.setAmbientColor(0.17f, 0.5f, 0.7f);
 return mat;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition PlaneMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.5f, 0.5f, 0.5f);
 mat.setDiffuseColor(0.2f, 0.4f, 0.5f);
 mat.setShininess(7.5f);
 mat.setAmbientColor(0.17f, 0.5f, 0.7f);
 return mat;
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition FenceMaterial()
{
 YoAppearanceMaterial mat = new YoAppearanceMaterial();
 mat.setSpecularColor(0.4f, 0.4f, 0.4f);
 mat.setDiffuseColor(0.95f, 0.95f, 0.95f);
 mat.setShininess(2.0f);
 mat.setAmbientColor(0.45f, 0.45f, 0.45f);
 return mat;
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public static void addRock3D(CombinedTerrainObject3D combinedTerrainObject, Vector3D normal, double centroidHeight, double[][] vertices)
{
 //      AppearanceDefinition rockAppearance = YoAppearance.DarkGray();
 YoAppearanceMaterial rockAppearance = new YoAppearanceMaterial();
 rockAppearance.setSpecularColor(0.5f, 0.5f, 0.5f);
 rockAppearance.setDiffuseColor(0.4f, 0.4f, 0.4f);
 //      rockAppearance.setDiffuseColor(0.2f, 0.4f, 0.5f);
 rockAppearance.setShininess(6.0f);
 rockAppearance.setAmbientColor(0.16f, 0.18f, 0.2f);
 ArrayList<Point2D> vertexPoints = new ArrayList<Point2D>();
 for (double[] point : vertices)
 {
   Point2D point2d = new Point2D(point);
   vertexPoints.add(point2d);
 }
 ConvexPolygon2D convexPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(vertexPoints));
 RotatableConvexPolygonTerrainObject rock = new RotatableConvexPolygonTerrainObject(normal, convexPolygon, centroidHeight, rockAppearance);
 combinedTerrainObject.addTerrainObject(rock);
}

代码示例来源:origin: us.ihmc/valkyrie

mat.setAmbientColor(new MutableColor(0.5f,0.5f,0.5f));
mat.setDiffuseColor(new MutableColor(0.5f,0.5f,0.5f));
mat.setSpecularColor(new MutableColor(0.5f,0.5f,0.5f));
      mat.setAmbientColor(ModelFileLoaderConversionsHelper.stringToColor(tmpvis.getMaterial().getAmbient()));
      mat.setDiffuseColor(ModelFileLoaderConversionsHelper.stringToColor(tmpvis.getMaterial().getDiffuse()));
      mat.setSpecularColor(ModelFileLoaderConversionsHelper.stringToColor(tmpvis.getMaterial().getSpecular()));

代码示例来源:origin: us.ihmc/ihmc-model-file-loader

mat.setAmbientColor(ModelFileLoaderConversionsHelper.stringToColor(sdfVisual.getMaterial().getAmbient()));
mat.setDiffuseColor(ModelFileLoaderConversionsHelper.stringToColor(sdfVisual.getMaterial().getDiffuse()));
mat.setSpecularColor(ModelFileLoaderConversionsHelper.stringToColor(sdfVisual.getMaterial().getSpecular()));

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com