Giter Club home page Giter Club logo

Comments (4)

zicklag avatar zicklag commented on May 30, 2024 1

Ah, I see. This would be easier if there was a function directly on the camera that would do the calculations for you, but since we are switching to Bevy's renderer, that would mean that you would just do it however Bevy does it, so I think we won't worry about adding a feature for it here.

As soon as I get the chance, I'll give you a code sample showing how to get the world position, after I test it and make sure it works. :)

Feel free to ping me if I don't respond within the next couple days or so!

from bevy_retrograde.

zicklag avatar zicklag commented on May 30, 2024 1

OK, so in the currently released version of Bevy Retrograde this is pretty much a math nightmare and I don't have a solution for it right now. đŸ˜Ļ Essentially positioning the pixels on the screen is all done in a shader and it would take replicating that code in Rust in order to figure out which pixel on the screen refers to what position in space. ( Not horrible but not time I have right now to try and fix something we are going to trash once we switch to Bevy's renderer )

The way that I designed the current renderer is just horrible for this and it should be way simpler, so it is another good reason for moving to Bevy's renderer.

Unfortunately right now I think the best option is to try to use the experimental version of Bevy Retrograde, but that requires using both Bevy Retrograde and Bevy itself from unreleased git versions. Both of which are unstable, especially the rendering because it uses Bevy's new work-in-progress renderer. ☚ī¸

Then you'd have still to find out from the Bevy folks ( because I haven't done it yet ) how to get the world position of the cursor. And I'm not sure I'll have time to help with the experimental version of Bevy Retrograde, so you might just get stuck on that anyway.

I'm sorry to say there isn't a great option for this right now. Sorry I couldn't help more! It should be resolved eventually when the new version of Bevy comes out, and I have time to update Bevy Retrograde after that, but I'm not sure when either are going to happen.

from bevy_retrograde.

boyswan avatar boyswan commented on May 30, 2024 1

No problem at all, appreciate you taking the time to look into it 👍

from bevy_retrograde.

boyswan avatar boyswan commented on May 30, 2024

@zicklag Sorry to nudge, I'm sure you're busy, but I'm totally stuck with this one 😔 Would really appreciate some pointers!

from bevy_retrograde.

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.