Enviroment

出走的三毛IP属地: 陕西
字数 667

官网地址:https://material.io/guidelines/material-design/environment.html
Material design is a three-dimensional environment containing light, material, and cast shadows.
Material design是一个包含了光,材质,以及投影的三维环境。
All material objects have x, y, and z dimensions.
所有的material对象都有x,y,和z值。
All material objects have a single z-axis position.
所有的material对象都有一个唯一的z轴位置。
Key lights create directional shadows, and ambient light creates soft shadows.
主光线生成了定向阴影,背景光则生成了软阴影。
Material thickness
Material的密度
1dp
Shadows
阴影
Shadows are created by the elevation difference between overlapping material.
两个不同材料之间的高度生成了阴影。

what_is_material_environment.png

Contents
目录
3D world
Light and shadow

  • 3D world
    The material environment is a 3D space, which means all objects have x, y, and z dimensions. The z-axis is perpendicularly aligned to the plane of the display, with the positive z-axis extending towards the viewer. Every sheet of material occupies a single position along the z-axis and has a standard 1dp thickness, equivalent toone pixel of thicknesson screens with a pixel density of 160.
    material环境是一个3D空间,这意味着所有的对象都有x,y和z值。z轴垂直于显示的屏幕,正z轴的方向朝向用户。每片材料沿z轴占据一个1dp厚度标准的单独位置,相当于像素密度为160的厚度屏幕的像素。
    On the web, the z-axis is used for layering and not for perspective. The 3D world is emulated by manipulating the y-axis.
    在网页上,z轴用于分层,而不用于透视。通过操纵y轴来模拟3D世界。
    3D space with x, y, and z axes
    3D空间拥有x,y和z
whatismaterial_environment_3d.png
  • Light and shadow
    Within the material environment, virtual lights illuminate the scene. Key lights create directional shadows, while ambient light creates soft shadows from all angles.
    在material环境中,虚拟光线照亮了屏幕。主光线生成了方向阴影,而周围的光则从各个角度生成了软阴影。
    Shadows in the material environment are cast by these two light sources. In Android development, shadows occur when light sources are blocked by sheets of material at various positions along the z-axis. On the web, shadows are depicted by manipulating the y-axis only. The following example shows the card with a height of 6dp.
    material环境中的阴影有这两种光源产生。在Android的发展中,当沿着z轴的各个位置的光源受到材料片的阻挡时,就会产生阴影。在网络上,仅通过操纵y轴来描绘阴影。下面的例子展示了6 dp高度时的卡片。
whatismaterial_environment_shadow1.png

Shadow cast by key light
主光源生成的阴影

whatismaterial_environment_shadow2.png

Shadow cast by ambient light
周围光源生成的阴影

whatismaterial_environment_shadow3.png

Combined shadow from key and ambient lights
联合主光源和周围光线生成的阴影

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
0人点赞
总资产1共写了6017字获得0个赞共1个粉丝

推荐阅读更多精彩内容

  • 1.Introduction - 介绍 We challenged ourselves to create a v...
    两个朋友指甲阅读 1,396评论 0 5
  • MD,视觉语言,它所设计的世界,来源于真实的物理现实(降低用户的学习成本,使其快速上手),但又高于现实(大胆而理想...
    Rangethan阅读 2,012评论 0 2
  • 天下之事,分合交替,分久必合,合久必分。 夏一统,商周继之,春秋战国乱之;秦一统,两汉继之,三国魏晋南北朝乱之;隋...
    百家和鸣阅读 350评论 0 0
  • 鲁迅说: 男人两大爱好:拉良家妇女下水;劝风尘女子从良。 女人两大爱好:和穷人总是在谈钱;和富人谈的全是感情! 而...
  • 拦截器是指通过统一拦截从浏览器发往服务器的请求来完成功能的增强 应用场景:解决一些共性问题,比如权限验证、乱码等 ...
    fangzy0723阅读 873评论 1 1