- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/fogleman/pt
- 软件文档: https://github.com/fogleman/pt
- 官方下载: https://github.com/fogleman/pt
软件介绍
pt 是用 Go 语言实现的 path tracer 用于渲染各种 3D 模型图。
示例代码:
package main
import (
"log"
"github.com/fogleman/pt/pt"
)
func main() {
scene := pt.Scene{}
wall := pt.SpecularMaterial(pt.HexColor(0xFCFAE1), 2)
scene.Add(pt.NewSphere(pt.Vector{4, 7, 3}, 2, pt.LightMaterial(pt.Color{1, 1, 1}, 1, pt.NoAttenuation)))
scene.Add(pt.NewCube(pt.Vector{-30, -1, -30}, pt.Vector{-8, 10, 30}, wall))
scene.Add(pt.NewCube(pt.Vector{-30, -1, -30}, pt.Vector{30, 0.376662, 30}, wall))
material := pt.GlossyMaterial(pt.Color{}, 1.5, pt.Radians(30))
mesh, err := pt.LoadOBJ("examples/gopher.obj", material)
if err != nil {
log.Fatalln("LoadOBJ error:", err)
}
mesh.SmoothNormals()
scene.Add(mesh)
camera := pt.LookAt(pt.Vector{8, 3, 0.5}, pt.Vector{-1, 2.5, 0.5}, pt.Vector{0, 1, 0}, 45)
pt.IterativeRender("out%03d.png", 10, &scene, &camera, 2560/4, 1440/4, -1, 16, 4)
}Kafka权威指南
Neha Narkhede、Gwen Shapira、Todd Palino / 薛命灯 / 人民邮电出版社 / 2017-12-26 / 69.00元
每个应用程序都会产生数据,包括日志消息、度量指标、用户活动记录、响应消息等。如何移动数据,几乎变得与数据本身一样重要。如果你是架构师、开发者或者产品工程师,同时也是Apache Kafka新手,那么这本实践指南将会帮助你成为流式平台上处理实时数据的专家。 本书由出身于LinkedIn的Kafka核心作者和一线技术人员共同执笔,详细介绍了如何部署Kafka集群、开发可靠的基于事件驱动的微服务,......一起来看看 《Kafka权威指南》 这本书的介绍吧!
在线进制转换器
各进制数互转换器
HEX CMYK 转换工具
HEX CMYK 互转工具
