Comments (13)
oh I forgot, I using in Live Wallpapers
from rajawali.
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.
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.
Strange. What device are you using?
from rajawali.
galaxy s2
from rajawali.
I will be working on this today so maybe an update tomorrow? That is unless Dennis beats me to it :-P
from rajawali.
Please go ahead Ian, I have plenty of other things to focus on ;-)
from rajawali.
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.
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.
: 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.
Any news on this lag?
from rajawali.
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.
Closing this issue. A picking renderer has been put on the todo list.
from rajawali.
Related Issues (20)
- jcenter repository has been depracated
- Seeking Luminance based desaturation
- Seeking Lighten and Darken Blend Modes
- Seeking point texture plugin
- improving SpriteSheetMaterialPlugin efficiency HOT 1
- Seeking Flexible Sprite Sheet Animation
- Seeking runtime adjustment of AlphaMask threshold
- Please restore AnimatedSpritesFragment to example app
- Stencil Buffer is not initializing corrrectly,
- Some `ScreenQuad` materials spew error messages at frame rate
- Objects starts to render with delay when camera if far from them HOT 1
- How to translate object with touch screen?
- anyway to implement ray in the library?
- Create Sphere with phiStart, phiLength, thetaStart, thetaLength HOT 1
- LoaderFBX.java:347 ArrayIndexOutOfBoundsException
- display obj model in AR
- Examples are broken
- When will the new version be released?
- load obj file fail,NumberFormatException: For input string: "nan"
- Caused by: org.rajawali3d.loader.ParsingException: Couldn't find texture ingrid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rajawali.