Graph gnuplot:以一种颜色绘制的3d图表,但具有着色效果(与通常的3d模型一样)
你能告诉我们如何用一种颜色画一张3d图表,但要有阴影效果吗 任何Graph gnuplot:以一种颜色绘制的3d图表,但具有着色效果(与通常的3d模型一样),graph,3d,gnuplot,shadow,Graph,3d,Gnuplot,Shadow,你能告诉我们如何用一种颜色画一张3d图表,但要有阴影效果吗 任何pm3d的使用都会根据z的值提供颜色,这是我不需要的,实际上(视觉上)不会提供阴影 我想看到的图表绘制作为一个普通的三维模型(通常的三维编辑器做) 现在我正在使用一个我不满意的选项: set hidden3d set pm3d set palette rgbformulae 22,13,-31 splot inputFullPath using 2:1:4 with pm3d notitle 我
pm3d
的使用都会根据z的值提供颜色,这是我不需要的,实际上(视觉上)不会提供阴影
我想看到的图表绘制作为一个普通的三维模型(通常的三维编辑器做)
现在我正在使用一个我不满意的选项:
set hidden3d
set pm3d
set palette rgbformulae 22,13,-31
splot inputFullPath using 2:1:4 with pm3d notitle
我想看看这种3d图表:
gnuplot 5.2版中引入了一个简单的3D照明模型,该模型具有镜面突出显示功能。请参见帮助照明。以下是文档中的一段和在线演示集的链接
gnuplot> help lighting
By default the colors assigned to pm3d objects are not dependent on orientation
or viewing angle. This state corresponds to `set pm3d nolighting`.
The command `set pm3d lighting` selects a simple lighting model consisting of a
single fixed source of illumination contributing 50% of the overall lighting.
The strength of this light relative to the ambient illumination can be adjusted
by `set pm3d lighting primary <fraction>`. Inclusion of specular highlighting
can be adjusted by setting a fractional contribution:
set pm3d lighting primary 0.50 specular 0.0 # no highlights
set pm3d lighting primary 0.50 specular 0.6 # strong highlights
gnuplot>帮助照明
默认情况下,指定给pm3d对象的颜色不依赖于方向
或者视角。此状态对应于“设置pm3d nolighting”。
命令“set pm3d lighting”选择一个简单的照明模型,该模型由
单一固定照明源占总照明的50%。
该灯光相对于环境照明的强度可以调整
通过“设置pm3d照明主设备”。包含镜面反射高光
可以通过设置分数贡献来调整:
将pm3d照明主光源设置为0.50镜面反射0.0#无高光
将pm3d照明主光源设置为0.50镜面反射0.6强高光