Comments (4)
Good news. I've merged support for offscreen rendering and added a few simple tests that create an engine, load a script that creates an output image, execute that script and then check that the output image is correct. See #37. This is now part of the GitHub workflow – so these basic engine functional tests will be executed on commit.
At the moment I'm only generating solid green outputs and confirming that the resulting bytes are correct. Next up would be adding support for comparing interesting output images to see how close the rendering is to the reference image.
from flitter.
As I've been writing documentation, I've been doing some diagrams in Flitter to explain certain functions' output (see builtins.md). I've now added tests to recreate these diagrams and compare them against the reference ones included in the documentation. Next step will be to add some images into the tutorial and do the same there.
Sadly all of this uses only 2D rendering, so I'll need to do some 3D examples. Probably the smart thing to do is to slightly rework all of the examples to be able to dump their output to an image file and then include reference images for each of the examples.
from flitter.
Tutorial images added and successfully tested.
from flitter.
I've got this working for the examples as well. So I'm calling this done.
from flitter.
Related Issues (20)
- Why aren't `Context` and `StateDict` part of the model?
- Windowed mode not working on macOS Sonoma (Apple Silicon) HOT 16
- OpenGL render bug on Apple Silicon HOT 16
- Forcing use of unsupported recursion causes kind of horrible errors expected of using recursion HOT 1
- Physics can easily leak state HOT 1
- It would be useful to have distinct camera support in `!canvas3d` HOT 4
- Rewrite `!physics` computation code as an OpenGL compute shader?
- Add unit/regression tests for language simplifier
- What if symbols became numbers instead of strings? HOT 3
- Add support for offscreen GL contexts HOT 2
- Functions and function calling needs a cleanup
- What if `Context` objects became the interface between the engine and rendering? HOT 1
- A rounded box primitive would be a nice thing HOT 2
- Should indexing wrap? HOT 4
- Flitter needs a Pygments syntax highlighter HOT 2
- It would be great if point lights could have a radius HOT 4
- Can I come up with a decent model of translucency? HOT 3
- Counters annoy me
- Either fix or pull simplification on state HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flitter.