Git Product home page Git Product logo

bevy_skybox's Introduction

Bevy Skybox

Provides a skybox from a given image that can be attached to a bevy camera.

Assumes that the image is of the same format as the examples given in the assets folder: a net of six squares in the same shape as these examples, exactly aligned with the image rectangle and filling most of its width and height.

Usage

The usage is documented in the module comment at the top of src/lib.rs.

To demonstrate this, examples\board_flyover.rs puts a skybox around a flat "board". Key/mouse camera movement is provided by bevy_fly_camera.

Board Flyover example

Skybox images come from the following sources.

Image processing

Many skybox are available as net images. bevy_skybox assumes that the image is a specific net of a cube.

The assumptions about the image are listed in src/image.rs, but the image is measured like this.

Measuring the cube net

Build

Build using stable or nightly toolchain, e.g.

cargo run --release --example board_flyover

bevy_skybox's People

Contributors

benjajaja avatar byron avatar jomala avatar neo97dev avatar rubixdarcy avatar tgrcdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bevy_skybox's Issues

Skybox shows seams

I'm testing out bevy_skybox with the provided sample images, and I can observe seams at the top of the box (which I assume is not intentional?).

Screen Shot 2021-01-27 at 10 46 56 AM

Screen Shot 2021-01-27 at 10 48 22 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.