Comments (1)
This looks like it's displaying correctly to me, once you realise how polygons are drawn - it's a collection of triangles. In this case, a triangle fan.
First, it'll draw a triangle using the first, second and third points, then the first, third, and fourth, then the first, fourth and fifth etc.
That'll render any convex polygon correctly, and (accidentally) some concave polygons correctly - but you'll also get some shapes doing not-what-you-expected in the second leg.
In order to correctly draw concave polygons, you need to split them up into a combination of convex polygons.
from piston-examples.
Related Issues (20)
- Multi-window crashes in debug mode HOT 1
- Couldn\'t find any pixel format that matches the criterias HOT 3
- Closing window with mouse causes panic HOT 2
- [Request] Rectangle Shaders
- Getting-started example won't build, failed dependency: x11-dl
- Examples crash on Windows 7 running in Parallel Desktop. HOT 1
- multi_window.rs always segfaults HOT 2
- thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: DescriptorInit(PixelExport("Target0", None))', src/libcore/result.rs:999:5
- Image sample triggers Windows Security HOT 4
- Please update the dependencies for the tiled example HOT 1
- Hello World (and all other examples) crash on Windows 10 x64 with Rust stable 1.48.0 - thread 'main' panicked at 'attempted to zero-initialize type ... HOT 2
- tiled example runtime error HOT 1
- Examples are crashing when cursor touches the window
- tiled panics on resizing
- SVG Images not supported
- Rust analyzer complains about gfx_pipeline! in the cube example. HOT 1
- Issues with 'with_gl' function.
- Hello World example crashes
- multi_window segfaults HOT 3
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 piston-examples.