Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

About

RenderMan bindings for golang. Work in progress.

Example

package main
import ri "rman"
func main() {
    ri.Begin("launch:prman? -t")
    ri.Display("sphere.tif", "file", "rgba")
    ri.Projection("perspective", "fov", 30.)
    ri.WorldBegin()
    ri.Color(0.9, 0.3, 0.1)
    ri.Translate(0, 0, 5)
    ri.Sphere(1.0, -1.0, 1.0, 360.0)
    ri.WorldEnd()
    ri.End()
}

Take a look at rman_test.go for a bigger example. Enjoy!

Installation

First, clone the repo:

git clone git@github.com:prideout/gorman

Next look at the two #cgo lines at the top of src/rman/rman.go, and change them if need be.

Next:

cd gorman
export GOPATH=$GOPATH:$PWD
go install ./src/rman
go test ./src/rman
go build sphere.go; ./sphere

About

renderman bindings for the go language

Resources

Releases

No releases published

Packages

No packages published

Languages