freezy / freezy/VisualPinball.Engine

Handle kicker holes in playfield

Open
#16 2 comments 0 reactions 1 assignee Claimed by @freezy View on GitHub
geometry unity
Dominant language
C#
Stars
508
Forks
73
Avg merge
43m
Merged PRs (30d)
3

Description

Currently the playfield's material is cut-out, meaning that if there's no texture, it's opaque. This results in the kickers being virtually invisible. Here's a textureless playfield in Visual Pinball:

![image](https://user-images.githubusercontent.com/70426/72933047-42cbdc80-3d61-11ea-95ed-feeeb192acf7.png)

...which renders like that in Unity:

![image](https://user-images.githubusercontent.com/70426/72933064-4bbcae00-3d61-11ea-803b-a94590d80b99.png)

In most cases this shouldn't matter, since playfields are textured, and the kicker will be transparent.

A possible solution to implement the same behavior as Visual Pinball is to cut out the geometry of the playfield with a library like [triangle.net](https://github.com/garykac/triangle.net).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.