Git Product home page Git Product logo

Comments (13)

 avatar commented on July 20, 2024

oh I forgot, I using in Live Wallpapers

from rajawali.

 avatar commented on July 20, 2024

thanks, and one more: on the tutorial if selecting a monkey the monkey will be bigger. Is there a way to rturn a value only if select an object? so, a NAME string, or other...?

from rajawali.

 avatar commented on July 20, 2024

I tried it again, with the new files, but this is laggy again... (or please upload the new version somewhere)
I just removed the jar files, and copy paste the rajawali src files to my project.

from rajawali.

MasDennis avatar MasDennis commented on July 20, 2024

Strange. What device are you using?

from rajawali.

 avatar commented on July 20, 2024

galaxy s2

from rajawali.

ToxicBakery avatar ToxicBakery commented on July 20, 2024

I will be working on this today so maybe an update tomorrow? That is unless Dennis beats me to it :-P

from rajawali.

MasDennis avatar MasDennis commented on July 20, 2024

Please go ahead Ian, I have plenty of other things to focus on ;-)

from rajawali.

ToxicBakery avatar ToxicBakery commented on July 20, 2024

I implemented your listener in my wallpaper and it seemed to mostly miss and I can also comment that I am seeing the lag as well. It will probably be a few days before I can finish my thoughts on how to improve it but essentially I am thinking bullet hit detection may be a acceptable route to take. I'll post up again when I get a demo working.

from rajawali.

MasDennis avatar MasDennis commented on July 20, 2024

The way it currently works is that it does a render in the background with no shading, just colors. So that's a unique color for every object. Then it reads a pixel from the frame buffer and then it figures out to which object the color belongs to.
There's a lag the first time an object is picked because that's when the frame buffer is created. This could be sped up by creating the frame buffer in advance.
But the other ones will still have a slight lag. That's because it has to request a render form glsurfaceview, it can't do it immediately.
So a good alternative for this will probably be ray picking.

from rajawali.

ToxicBakery avatar ToxicBakery commented on July 20, 2024

: nod :

That makes sense. I believe some of my slow down comes from the number of objects I am rendering. Currently its 86. This really is not a strain for the GPU but the CPU seems to waste a lot of time giving the GPU instructions. I think the object picking only strains my poor design further.

I was planning to attempt rewriting my wallpaper in a style similar to your 2000 planes example which should make everything exponentially faster by offloading a lot more work to the GPU. Not sure if this will jive well with wanting to detect collisions/touches against the specific cubes though unfortunately.

from rajawali.

 avatar commented on July 20, 2024

Any news on this lag?

from rajawali.

ToxicBakery avatar ToxicBakery commented on July 20, 2024

I was not able to come up with a solution yet. I am looking at ray casting and looking at libgdx to see if maybe they have an implemented solution to this issue.

I have been incredibly busy this week and I will be out of town all weekend. So, if you have some free time and think you can come up with a sample of how to do it better I would be more than happy to help you get it working and functional in Rajawali.

from rajawali.

MasDennis avatar MasDennis commented on July 20, 2024

Closing this issue. A picking renderer has been put on the todo list.

from rajawali.

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.