Giter Club home page Giter Club logo

Comments (8)

Nilirad avatar Nilirad commented on September 22, 2024

It's one of those features that I wanted to implement, but currently I don't want to commit much time into developing new features.

If anybody wants to tackle this, feel free to do it. This issue can also be used to discuss a potential solution.

from bevy_prototype_lyon.

rockerBOO avatar rockerBOO commented on September 22, 2024

Thank you Nilirad! Is this something that lyon can do in its library, or is it something specific that will need to be added to bevy_prototype_lyon to have an image fill? Or is this something with adding the image to the geometry inside bevy_prototype_lyon? The GeometryBuilder makes me think it creates a mesh, so we can apply the material to the mesh?

I wouldn't mind looking into it, but I'm newer to rust/bevy and this library. Need some pointing to areas of interest, if possible.

For instance, I think this is the closest example of a struct that has a material and a mesh2d, MaterialMesh2dBundle. So do we need to add a material to this struct? I can look into this option later.

Thank you!

from bevy_prototype_lyon.

Vixeliz avatar Vixeliz commented on September 22, 2024

Hello I am also interested in this. I'm curious if in the meantime if it would be possible to use the existing mesh2d handle from the created shape in the materialmesh2d bundle. I'm gonna do some testing on how to do this without modifying the library cause I am not at the skill level to do that but I will update here if i find a temporary solutions.

from bevy_prototype_lyon.

Vixeliz avatar Vixeliz commented on September 22, 2024

So after messing around for a bit it seems one of the limiting things is the lack of vertices having uv's but I may be wrong i'm very tired. I'm mildly curious why you use a custom render pipeline? Out of wanting to legitimately learn why wouldn't bevy's default pipeline work? It would probably make it easier to do stuff like materials as well. Just curious honestly same with the custom shader. Either way awesome library!

from bevy_prototype_lyon.

Nilirad avatar Nilirad commented on September 22, 2024

I don't exactly remember why I initially chose to use a custom render pipeline. Also, a lot of the new rendering code was made by @rparrett after the initial release.

A lot of things have changed, both on bevy and lyon, since I created this crate, so it may be possible that a simpler solution would work.

from bevy_prototype_lyon.

Vixeliz avatar Vixeliz commented on September 22, 2024

Maybe I will mess around trying to use the standard bevy pipeline in a fork.

from bevy_prototype_lyon.

Vixeliz avatar Vixeliz commented on September 22, 2024

I have been messing for a few hours and I don't think I'm familiar enough with bevys render pipeline yet to do this myself but I may tackle it again in the future.

from bevy_prototype_lyon.

rparrett avatar rparrett commented on September 22, 2024

I don't exactly remember why I initially chose to use a custom render pipeline. Also, a lot of the new rendering code was made by rparrett after the initial release.

I think it may have been necessary at some point in the past in order to use vertex colors. I'd guess that it's not necessary anymore and you could just use a MaterialMesh2d.

Another obstacle might be supporting DrawMode::Outlined properly, since both the fill and stroke share the same mesh/entity.

from bevy_prototype_lyon.

Related Issues (20)

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.