peterstace / grayt Goto Github PK
View Code? Open in Web Editor NEWGo RAY Tracer
License: MIT License
Go RAY Tracer
License: MIT License
Possibilities:
Research the different types, and work out which is best. Then implement and speed test.
Example:
package main
import (
. "github.com/peterstace/grayt/examples/cornellbox"
. "github.com/peterstace/grayt/grayt"
)
func scene() Scene {
const d = 1.3
const gap = 0.05
return Scene{
Camera: Cam(d),
Objects: Group(
Floor,
Ceiling,
CeilingLight().With(Emittance(5.0)),
AlignedSquare(Vect(-10, -10, d), Vect(10, 10, d)),
),
}
}
func main() {
Run("cornellbox_mirrors", scene())
}
Currently, Entity
s only allow a single Surface
. This is a bit annoying for things that are made up of multiple surfaces such as triangles. It would be better to have multiple Surface
s, since they could then share Entity
properties such as colour and BRDFs.
This has a few parts that need to be completed:
This issue has been opened automaticaly because we think you are using satori/uuid in your code. Unfortunately, satori/uuid has a critical defect where it doesn't generate random UUIDV4s satori/go.uuid#73 and should be replaced as the maintainer has been unresponsive for 5 months with the bug still open. Alternative packages you should consider: https://github.com/google/uuid https://github.com/pborman/uuid
Should contain:
All planes currently have the same form. They are specified by an anchor point and a normal vector (2 vectors == 6 float64s == 48 bytes). For planes aligned to an axis, it would be more efficient to specify them as an axis), a direction for the normal, and a position on that axis (axis and direction is 1 byte, position is 8 bytes = 9 bytes). The intersection algorithm would also be less computationally expensive.
Should be able to use N worker threads for computation.
To be specified using the -j
flag.
There is no actual code change here. Just updating flags and variable names.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.