[android-developers] Re: Can we bind one object on surface of another in openGL ES??

2010-04-14 Thread Robert Green
Consider buying a book like this. It will explain everything there is to know about OpenGL. http://www.amazon.com/OpenGL-Reference-Manual-Official-Document/dp/032117383X/ref=sr_1_25?ie=UTF8s=booksqid=1271244837sr=8-25 I, like you, thought that I would learn by asking people, but it turns out

[android-developers] Re: Weird OpenGL performance in Nexus one

2010-04-14 Thread Robert Green
I get around 35 FPS on the N1 on my current 2D game in-dev. The thing about it, though, is that it's plenty of framerate. The game feels totally smooth at that rate and doesn't really experience significant drops (unless you count gmail sync), even when I throw 200 particles out into the scene.

[android-developers] Re: Weird OpenGL performance in Nexus one

2010-04-14 Thread Robert Green
:45 am, Robert Green rbgrn@gmail.com wrote: It's going to depend on more factors than number of sprites.  GPUs are usually fill-bound and so the functions you use to filter and blend have a large impact on performance.  What does your test do?  Does it distribute small quads all over

[android-developers] Problems with mipmaps + non-square textures on MSM7200?

2010-04-13 Thread Robert Green
Just wondering if anyone else has come across this. The MSM7200 (G1,Mytouch,Eris,Hero,Cliq,etc...) supports mipmapping but not hardware mipmap generation. That's not a big deal as you can just divide the texture by 2 a bunch of times til you're at 1x1 and it works fine. That works for square

[android-developers] Re: Weird OpenGL performance in Nexus one

2010-04-13 Thread Robert Green
It's going to depend on more factors than number of sprites. GPUs are usually fill-bound and so the functions you use to filter and blend have a large impact on performance. What does your test do? Does it distribute small quads all over the screen like particle effects do? Are the quads

[android-developers] Re: About opengl in android 2D UI

2010-04-13 Thread Robert Green
You may want to take this to the android-platform group. On Apr 8, 10:29 pm, xiaochun zqy2000...@gmail.com wrote: In android 2D UI, what's the function of opengl? graphic system draw picture and text by  skia-opengl-framebuffer, so in 2D UI  what's the function of opengl? in

[android-developers] Re: How to apply different textures on different faces of a cylinder

2010-04-12 Thread Robert Green
Kirti - Get either the OpenGL superbible or the redbook. It's money well-spent. On Apr 12, 12:15 am, kirti kaul kirti.k...@wipro.com wrote: Hello, Can anybody tell me how to apply apply different textures on different faces of a cylinder?I am able to apply one texture which covers the whole

[android-developers] Re: Draw Text on GLSurfaceView

2010-04-12 Thread Robert Green
In OpenGL, you need to write a text renderer. There are several examples and implementations floating around on the web. For example, I wrote a class that, given a font and a font size, generates an atlas texture and stores all of the individual character locations and metrics for me. I then

[android-developers] Dear Mark Deloura

2010-04-12 Thread Robert Green
Dear Mark Deloura, I see that you started your first day at Google today. Congratulations on the new gig! I thought as part of your first day as the new Android games guru, I would make a concise list of things that make game development tough for us full-time Android game developers. 1) Touch

[android-developers] Re: Dear Mark Deloura

2010-04-12 Thread Robert Green
happening. On Apr 12, 2:19 pm, Mark Murphy mmur...@commonsware.com wrote: Robert Green wrote: 3)  Background processes destroy intense game framerates, even on 2.1. http://www.androidguys.com/2010/03/16/code-pollution-background-foreg... Where did I go wrong in this analysis

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-10 Thread Robert Green
get it to the logic thread. Current program flow is as follows: onCreate() - GameView() - World() Renderer() GameLogic() On Apr 9, 3:24 pm, Robert Green rbgrn@gmail.com wrote: Eddie, Yes, that'll do the trick. As far as the multiple threads goes, sure you

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-09 Thread Robert Green
It's pretty easy to do this: I use a World to write to and read from for the two sides. Makes networking nice too. My World has a simple lock. Only one thing can write to it or read from it at a time. in GameLogicThread: run() { while (!done) { // wait for renderer world.getLock(); //

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-09 Thread Robert Green
really have no clue what a lock is. On Apr 9, 12:03 pm, Robert Green rbgrn@gmail.com wrote: It's pretty easy to do this: I use a World to write to and read from for the two sides.  Makes networking nice too.  My World has a simple lock.  Only one thing can write to it or read from

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-09 Thread Robert Green
not quite clear on how. Could I, for example, create my World object, then pass that object to the renderer and logic objects when I create them? I did a small bit of reading on this topic, but still am not quite sure. On Apr 9, 1:55 pm, Robert Green rbgrn@gmail.com wrote: Yeah, you're

[android-developers] Getting file extension of resource?

2010-04-09 Thread Robert Green
I use raw resources for several kinds of binary files. Some times we have a few different types that are interchangeable for a task. Is there any way to determine the extension of a raw resource? I normally open by using Context.getResources().openRawResource.. The problem is that I have to

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-09 Thread Robert Green
() - World() Renderer() GameLogic() On Apr 9, 3:24 pm, Robert Green rbgrn@gmail.com wrote: Eddie, Yes, that'll do the trick. As far as the multiple threads goes, sure you can drive your logic off of the call to onDrawFrame but there is a situation in which having

Re: RE : Re: RE : [android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-08 Thread Robert Green
to rotate the desktop on n1. Le 7 avr. 2010 23:01, Robert Green r... -- //|¯¯¯||¯¯¯|||\¯¯¯\ \\|___||      ¯¯|¯ |       |/     / ||\  ¯¯\|      '¯¯¯'||       |\     \ ||/___/|___|||/___/ -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-07 Thread Robert Green
 pm, Robert Green rbgrn@gmail.com wrote: By the way - things seemed good but I'm still having the occasional lock-up.  The last one caused the phone to lock up badly enough that I had to pull the battery :( On Apr 6, 2:18 pm, Robert Green rbgrn@gmail.com wrote: I'm

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-06 Thread Robert Green
the hack int the glwallpaperservice class avoid some crashes with screen rotation on droids. On 5 avr, 20:24, Robert Green rbgrn@gmail.com wrote: Oh, so you solved it??  What's the issue and what's the workaround? On Apr 4, 3:33 pm, unixseb unix...@gmail.com wrote: i can help you

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-06 Thread Robert Green
By the way - things seemed good but I'm still having the occasional lock-up. The last one caused the phone to lock up badly enough that I had to pull the battery :( On Apr 6, 2:18 pm, Robert Green rbgrn@gmail.com wrote: I'm in disbelief, but it works!  Why does that hack work

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-06 Thread Robert Green
Green rbgrn@gmail.com wrote: By the way - things seemed good but I'm still having the occasional lock-up.  The last one caused the phone to lock up badly enough that I had to pull the battery :( On Apr 6, 2:18 pm, Robert Green rbgrn@gmail.com wrote: I'm in disbelief, but it works

[android-developers] Re: Google IO sold out!

2010-04-06 Thread Robert Green
I'm in the same boat. I'm still going to SF that week in case anyone wants to get together after hours. On Apr 6, 3:20 pm, kylestew kyles...@gmail.com wrote: I tried to register too late for Google IO and its already sold out. I really wanted to go this year and don't care about getting a free

[android-developers] Re: opengl es and Live wallpaper

2010-04-05 Thread Robert Green
Careful with that - it's not currently working correctly on Droid 2.1. I've been posting info to this group but no good responses so far. I debugged it for over a day and can't see anything wrong with the threading or order of egl calls. Seems like something else is wrong... On Apr 5, 11:29 

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-05 Thread Robert Green
Can any of the authorities step in on this? So far no one has found or at least posted a solution to this problem. It's affecting several of the GL live wallpapers on the market right now (just look at comments on them - many complain of freezes on Droids) On Apr 4, 12:19 am, Robert Green rbgrn

[android-developers] Re: opengl es and Live wallpaper

2010-04-05 Thread Robert Green
times back to back, I'll respond to your other posts with as much information I can. On Apr 5, 12:40 pm, Robert Green rbgrn@gmail.com wrote: Careful with that - it's not currently working correctly on Droid 2.1.  I've been posting info to this group but no good responses so far.  I

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-05 Thread Robert Green
time now ! On 3 avr, 23:56, Robert Green rbgrn@gmail.com wrote: I've had this reported to me by a few people using the GLWallpaperService code I posted.  I've been debugging this for hours and have so far tracked the problem down to egl.eglCreateWindowSurface(display, config

[android-developers] Re: Droid Reboot when using VBO in opengl es codes

2010-04-05 Thread Robert Green
Hmm I wonder if this is at all related to the problems I'm having with GL lockups on the Droid at the moment. I see a resize in there, are you flipping orientations? On Apr 5, 6:18 pm, Louis yanglfya...@gmail.com wrote: Hi, All: I am working on a app which render geometrics with VBO in NDK

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-03 Thread Robert Green
I have the official 2.1 update on my Droid. It came OTA and installed normally. I observed that my 3 GL games run great on it but my 2D canvas one does not. It feels like it lurches a bit now and it was totally smooth on 2.0.1. Strange. I would think it would run locked at 30 but still

[android-developers] Re: Your feedback on Samples/Tutorials/Articles

2010-04-03 Thread Robert Green
Missing Samples: GL Live Wallpaper. There's an example of a canvas- based live wallpaper but none of the ones that ship on the N1 or Droid 2.1 are canvas, they are all GL. Maybe one isn't, but that's not the point. Correctly handled GL init code (especially on orientation change) would be

[android-developers] Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-03 Thread Robert Green
I've had this reported to me by a few people using the GLWallpaperService code I posted. I've been debugging this for hours and have so far tracked the problem down to egl.eglCreateWindowSurface(display, config, nativeWindow, null); It never returns and every notifyAll() after that results in:

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread Robert Green
Also Received Droid in Fargo, ND a few days ago. So that's one for 3.5 star/5000 DL and one for ADC2 top 200. Thanks Google! One already has the 2.1 update. On Apr 3, 3:45 pm, timedilation udayan.k...@gmail.com wrote: Although my Droid auto-updated to 2.1 couple of days back, I don't see the

[android-developers] Working GL init/deinit on Droid 2.1 WallpaperService?

2010-04-03 Thread Robert Green
Hey guys, Looking for some WallpaperService EGL code that is stable when flipping orientations multiple times on a Droid. I've been debugging for a full day now and everything looks correct to me, yet my code is getting stuck sometimes in eglCreateWindowSurface. It usually works a few times

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-03 Thread Robert Green
/android/issues/detail?id=4283 On Apr 3, 5:56 pm, Robert Green rbgrn@gmail.com wrote: I've had this reported to me by a few people using the GLWallpaperService code I posted.  I've been debugging this for hours and have so far tracked the problem down to egl.eglCreateWindowSurface(display

[android-developers] Re: Weird Thing with my posts

2010-03-30 Thread Robert Green
I got one of those yesterday as well. Here's my theory: Someone somewhere has an account set up so that it automatically replies to emails (vacation responder, etc) They are subscribed to this group and receive an email Their responder responds. The message bounces because the group filters

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-30 Thread Robert Green
Droid in Minneapolis, MN via FedEx Home Delivery On Mar 30, 11:26 am, Matt thatsthesolut...@gmail.com wrote: Got a door tag Saturday from FedEx, but I was still sleeping at 9AM, and had no idea they'd be delivering it then.  I called FedEx last night, and apparently, they are shipping these

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-30 Thread Robert Green
Nope, it's a normal Verizon Droid. Yeah so what's the deal for us that got an ADC2 qualification and a regular market 3.5/5000 qualification? Should I be watching for another phone in the next week? Normally I'd keep my mouth shut and gratefully take what I can get but I'm moving on Thursday

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-29 Thread Robert Green
the CPU wakes up after being stopped for an hour or whatever, you don't suddenly have a bunch if spurious stuff to do.) On Thu, Mar 11, 2010 at 12:23 AM, Robert Green rbgrn@gmail.com wrote: FYI - Good that you're doing it that way.  I have to recommend switching to nanoTime, though

[android-developers] Re: glDrawElements vs glDrawArrays with glColorPointer in opengl es GL10

2010-03-24 Thread Robert Green
and three different normals depending on the triangle it belongs to, so the arrays can't have (?) the same one to one relationship. So, the question is how do I map the colors to the indexed vertex? /Perty On 24 mar, 06:00, Robert Green rbgrn@gmail.com wrote: Vertices, Texture

[android-developers] Re: glDrawElements vs glDrawArrays with glColorPointer in opengl es GL10

2010-03-24 Thread Robert Green
. /Perty On 24 mar, 18:37, Robert Green rbgrn@gmail.com wrote: In short, what mario is saying is that if you have the same vertex and you want different texture coordinates for it (like if you want to display the same texture on each side of a cube, the verts each need 3 different

[android-developers] Re: glDrawElements vs glDrawArrays with glColorPointer in opengl es GL10

2010-03-23 Thread Robert Green
Vertices, Texture coordinates, Normals and Colors have a 1 to 1 to 1 to 1 relationship. That means that for any given vertex, you can define: The vertex's location The texture coordinate The normal The color If you define 4 vertices (with or without any of the other attributes, doesn't matter),

[android-developers] Re: Touch Event flood

2010-03-21 Thread Robert Green
Ugh. How is this not totally fixed in 2.0+? I know it's not as bad as 1.6- but properly implemented, touch events should have a negligible impact on performance. On Mar 21, 10:47 am, Mario Zechner badlogicga...@gmail.com wrote: I just coded up a simple performance for a project of mine and

[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.

2010-03-18 Thread Robert Green
Kevin, First of all, let me clarify some numbers: Your average EA game costs a lot more than 10s of thousands of dollars. I bet no iphone port of any game cost them less than 100k to do. I wouldn't be surprised if they spent 100k-500k on an iphone version of an existing title. They deal with

[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.

2010-03-18 Thread Robert Green
that can do that. I am stuck on how to do graphics as well. I can't pay anyone to do art, so I think I am going to have to digitize stick figures. On Wed, Mar 17, 2010 at 11:41 PM, Robert Green rbgrn@gmail.com wrote: Kevin, First of all, let me clarify some numbers: Your average EA game

[android-developers] Re: Strategies for using Touchscreen MotionEvent Coordinates

2010-03-18 Thread Robert Green
Rocco, you're experiencing basic 2d scaling dilemma. There are several ways you can go, each with its compromises. The gist of it is that your game will need to work correctly on screens ranging from 320x240 to 854x480 if you want to support every android device. If you take off the qvga

[android-developers] Re: OpenGL Circle drawing

2010-03-18 Thread Robert Green
That's not OpenGL. That's a Canvas method. You could use that to draw to a texture, upload that and draw a quad with that texture on it, appearing to be a circle. On Mar 18, 4:34 am, tarin tatarenkov...@gmail.com wrote: Loki, you can try this: Paint paint = new

[android-developers] Re: OpenGL Circle drawing

2010-03-18 Thread Robert Green
such as a slide up menu or animated swirl. Thanks for your suggestion Robert I am now looking at picking up the books you mentioned also I see Google just officially released the ES 2.0 supports yesterday so like you said best not to pick up a dated book. Tom On Mar 18, 1:49 pm, Robert Green

[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.

2010-03-17 Thread Robert Green
Since no one else has responded I'll talk about what I did, though I haven't gone cross-platform yet (which is why I didn't respond right away). I chose cross-platform technologies just in case I ever wanted to and I know that they will work for it. What works well for me for my leaderboards and

[android-developers] Re: Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.

2010-03-17 Thread Robert Green
and Rails suggestions. No, I'm not a Google fanboy, but with a free device coming sometime soon, if Google asked me, I'd sheepishly say yes sir, yes I am a fanboy :). Justin On Wed, Mar 17, 2010 at 11:25 AM, Robert Green rbgrn@gmail.comwrote: Since no one else has responded I'll

[android-developers] Re: 2d Game...how to make a cicle?...code

2010-03-16 Thread Robert Green
Look into using Canvas to draw various primitive shapes, such as circles, rectangles and lines. On Mar 16, 3:26 am, massimo maxloveg...@gmail.com wrote: Hi, I would like to make a game. How I can make a cicle for the game? I use Eclipse I have make the new project and I have the class with

[android-developers] Oh crap. I missed IO registration :(

2010-03-16 Thread Robert Green
Yes this is about Android development :) Well I've been planning on going to IO for months but was waiting for my business account to get enough cash in it to go. Turned out I waited too long and now there are no IO tickets left :( Did anyone here buy one that they will no longer be using? I'd

[android-developers] Re: OpenGL Circle drawing

2010-03-16 Thread Robert Green
Tom, I have to recommend just getting a book on the subject. I learned most everything off of examples and documents on the web. After several months, I finally picked up the blue book and everything I had scoured to find is clearly demonstrated in it. Look for the red book and the blue

[android-developers] Re: Want to start building 3d games, pointers?

2010-03-15 Thread Robert Green
Ronnyek, There are a few methods of picking a 3D object from a 2D coordinate. The ones I know of are (in order of popularity): 1) gluUnProject to get a ray, then use a collision detection algorithm to check against your object bounds 2) Use the color/depth buffer -- This involves a special

[android-developers] Re: General lag issues with real-time games

2010-03-13 Thread Robert Green
Markus, You'd be surprised by how much stuff people have running on their phones. 2.0/2.1 seem to be better at handling it with a game but in general, I think it's an issue of educating people to shut off sync and certain wasteful tasks while playing games. I REALLY wish Android would add a

[android-developers] Attn: Devs running games or apps in compatibility modes

2010-03-11 Thread Robert Green
I know several of you wrote your apps and games before 1.6 was out or before you had a trusty N1 or Droid to test on. This led to many apps that rely on compatibility mode, that is, a width (when portrait) that is always 320 to make things work out. For 3D games, this made our games continue to

[android-developers] Re: Creating first game

2010-03-10 Thread Robert Green
Marlo, I put together something just for guys like you - http://www.rbgrn.net/content/54-getting-started-android-game-development On Mar 9, 3:11 pm, Jiri jiriheitla...@googlemail.com wrote: This might be helpfull. http://www.anddev.org/2d_tutorial-t3120.html Jiri veel plezier. ;) On

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Robert Green
Does answering questions on this group count? :) On Mar 9, 10:37 am, Streets Of Boston flyingdutc...@gmail.com wrote: This is similar to the seeding program for Android Market Developers. I don't know what the criteria are to get selected for this seeding program (which forums, how many

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Robert Green
to. On Wed, Mar 10, 2010 at 3:58 PM, Robert Green rbgrn@gmail.com wrote: Does answering questions on this group count?  :) On Mar 9, 10:37 am, Streets Of Boston flyingdutc...@gmail.com wrote: This is similar to the seeding program for Android Market Developers. I don't know what

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Robert Green
I only have a meager 340 in this group. :) On Mar 10, 4:57 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I don't know what determines whether you get an Android device or not. I have 600 msgs overall on this board (in the top 10) and about 150 in Android Discuss. On Mar 10, 5:53 pm,

[android-developers] Re: Can static library is created by android 2.0 work at android 2.1?

2010-03-10 Thread Robert Green
Bluestar, Any shared object you generate using the NDK for a previous version of Android should be forward compatible. IE: If you compile some code that runs fine against 2.0, it should (for the most part) also work against 2.1. On Mar 8, 8:35 pm, bluestar bluestar8...@gmail.com wrote: I

[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?

2010-03-10 Thread Robert Green
I kind of do something like this. I set a flag to false onResume and then set it true if the back button is hit. onPause, if that flag is true, I know it's because my user is backing out and I can respond in a certain way (knowing that we'll be going back to a previous activity). The previous

[android-developers] Re: How do I simulate the Home key programmatically?

2010-03-10 Thread Robert Green
If you want to exit, just use finish(). On Mar 10, 10:23 am, Wides erich.weid...@gmail.com wrote: Hi, I have a requirement to implement an Exit button in my Android application. I don't really care about killing the activity stack, I just want to have the same effect as pressing the Home

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-10 Thread Robert Green
Samsyn, For multiplayer synchronization, you absolutely can not count on the current time of either device. Here's one way to handle it: Both host and client use System.nanoTime() / 100; That gives you a fairly accurate counter to use. Host sends snapshots with their current time. Client

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-10 Thread Robert Green
a lot to do, given that it is also giving me all those nice debug hooks :-)  I shouldn't be so demanding.  I love you, Eclipse, I really do, except when you crash or that time you deleted every source file in my project with nary a warning. Thanks again! - Dan On Mar 10, 5:53 pm, Robert Green

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Robert Green
I've been really wanting an extra device to run OS builds on. Also, I get reports of people running my live wallpaper off of G1s and other devices. Having another device for those custom builds would be great. On Mar 11, 12:45 am, Bob Kerns r...@acm.org wrote: I suppose it's too late then, to

[android-developers] ADC3?

2010-03-09 Thread Robert Green
I just gotta ask... Does anyone have any knowledge of an upcoming ADC3? :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: Stopped unexpectedly on a real phone but not on the simulator

2010-03-08 Thread Robert Green
Posting a stack trace from your log would be extremely helpful: ) On Mar 8, 1:19 am, CMF manf...@gmail.com wrote: Hi all, I have an MapView app downloaded from internet, when I tested it on the simulator, everything is fine, but when I installed it on my phone, the app stopped unexpectedly.

[android-developers] Re: What to do about developers who publish games with the same name as what you have published...

2010-03-06 Thread Robert Green
Ask a lawyer. If you own copyrights and he is infringing, you may be able to file a dmca take down request with google. So far, they have been quick about honoring those. On Mar 5, 4:15 pm, greenrift jtgi...@gmail.com wrote: I have an app that was published last fall.  Recently a developer

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-03-04 Thread Robert Green
Ugh, these articles are making me out to look like I was on some kind of expose mission. The conversation I had with the guy was like this: He said, Why didn't you use dual analog joysticks? I said, Because it won't work right on HTC phones. Run my test app to see why. And now there are 200+

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-03-04 Thread Robert Green
, then I will double rant on the Market problems, to keep the pressure on you Android Team !! :D Thanks for the info Robert. Yahel On 4 mar, 18:18, Robert Green rbgrn@gmail.com wrote: Ugh, these articles are making me out to look like I was on some kind of expose mission

[android-developers] Re: OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-02 Thread Robert Green
For a perpendicular surface optimization, it's not about how much rotation but if there is _any_ rotation. It's like this - perfectly aligned = optimized. Anything other than perfectly aligned = additional processing. So that would make sense as to why you're seeing a high framerate with an

[android-developers] Re: OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-01 Thread Robert Green
The MSM7200 contains many optimizations to make certain types of filling fast. I never run full screen, 512 textures with linear min and mag on like you have in your code. Try it with nearest neighbor on both and see how it goes. On Mar 1, 3:10 am, Michele Scorcia michele.scor...@gmail.com

[android-developers] Re: Textures are white on Droid (and not other phones)

2010-02-27 Thread Robert Green
I don't have access to my Droid at the moment but my guess is that it maybe didn't like that alpha bits texture parameter? Perhaps you could just try without that. The minimal parameters that you need are the s and t clamp method and the minification and magnification function. I recommend

[android-developers] Re: Textures are white on Droid (and not other phones)

2010-02-27 Thread Robert Green
Oh.. yeah, you should run in the native Res by setting the supports screen flags in the manifest and then use drawable-nodpi. Both phones should scale the same but it depends on the manifest. I actually think that the n1 may support non power of twos but I don't have the extension list in front

[android-developers] Re: Textures are white on Droid (and not other phones)

2010-02-26 Thread Robert Green
Your textures are being scaled and are no longer power-of-two. Either put them in drawable-nodpi or turn off scaling on the decoder configuration. On Feb 26, 4:05 pm, Barrett_A lbarrettander...@gmail.com wrote: I'm using GLSurfaceView to render OpengGL 3D.  It works great on my nexus one, the

[android-developers] Re: Textures are white on Droid (and not other phones)

2010-02-26 Thread Robert Green
Actually, I just noticed that you said it works on the n1. My previous guess is probably wrong then... On Feb 26, 4:05 pm, Barrett_A lbarrettander...@gmail.com wrote: I'm using GLSurfaceView to render OpengGL 3D.  It works great on my nexus one, the emulators, and at least the G1.  However, on

[android-developers] Re: Send key event using native methods or low level classes -- possible solutions ??

2010-02-25 Thread Robert Green
Let me just say that as someone with a lot of UI development experience (in Android, SWT and Swing anyways), if you're looking to programmatically push controls, your design is most likely wrong. I have developed maybe 50-100 screens of GUIs and have never needed that functionality. Consider

[android-developers] Re: making videogame - newbie need help =P

2010-02-25 Thread Robert Green
Vlad and Kofa, I have to say again that all of that high level stuff (layouts and imageviews) is totally inappropriate for a real-time game. Consider loading all graphics into bitmaps, running a logic thread and drawing to a SurfaceView. You will have far superior performance and can do

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-25 Thread Robert Green
function to get to it. On Feb 25, 12:39 pm, Robert Green rbgrn@gmail.com wrote: Let me explain something.  Using directly allocated NIO buffers is a DIRECT LINK between Java and native.  The pointer you get from (void *)GetDirectBufferAddress points to the exact memory that the Java buffer

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-25 Thread Robert Green
these calls, so the GL system could be using the memory directly much later than you expect. You should probably not deallocate the buffer until the next frame comes around, when you know the system is done with the data. On Feb 24, 2:50 pm, Robert Green rbgrn@gmail.com wrote: The OpenGL

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-25 Thread Robert Green
might get filled with junk it will still be valid floats of some sort, since the array is only written to from java. Best regards, Viktor Linder On 25 Feb, 20:08, Robert Green rbgrn@gmail.com wrote: Actually, let me clear something technical up.  I just realized that the OpenGL native

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-24 Thread Robert Green
, 21:25, Robert Green rbgrn@gmail.com wrote: You're probably pointing something to some bad memory location somewhere.  I know you didn't post all of your real code so I can't really say for sure but it looks to me like you may be doing something wrong with your buffers.  Here's how

[android-developers] MediaPlayer MIDI gapless loop?

2010-02-23 Thread Robert Green
Trying to loop a song for a game in MIDI and I'm getting a noticeable gap when looping. I'm currently just using MediaPlayer like I use for looping OGGs normally. Is there something wrong with my file or does the current implementation (Tested on 2.1) have a short gap in the loop? -- You

[android-developers] Re: OpenGL and the use of ByteBuffers

2010-02-23 Thread Robert Green
If you're creating a bitmap dynamically, writing one byte at a time with .put(), I wouldn't be surprised at all if it's really slow. If at all possible, move that code into native. You can preallocate a ByteBuffer in Java, pass it into native and work on the pointer directly in native, then use

[android-developers] Re: OpenGL and the use of ByteBuffers

2010-02-23 Thread Robert Green
texture each frame may be too much. Any other ideas how I can speed this up? On Feb 23, 6:42 pm, Robert Green rbgrn@gmail.com wrote: If you're creating a bitmap dynamically, writing one byte at a time with .put(), I wouldn't be surprised at all if it's really slow.  If at all

[android-developers] Folder Chooser?

2010-02-22 Thread Robert Green
Hey guys, I'm wondering if anyone has a lead on some nice code to do a Folder Chooser / Directory Picker? I know they wrote one at OpenIntents but I don't want to package the whole OI thing with my app - it'll make it bigger than I need. I just want a nice interface for picking directories (As

[android-developers] Re: OpenGL Texture Scaling Problem

2010-02-19 Thread Robert Green
I got hit with that at first as well. Basically, an OpenGL Implementation does not guarantee perspective-correct texturing, though people surely would be upset if there were no option to have it. That hint is a normal thing to have to apply to ensure that every implementation will do its best to

[android-developers] Re: making videogame - newbie need help =P

2010-02-17 Thread Robert Green
That's a custom job, my friend. You will want to write this like any normal video game, using GL or at least a SurfaceView. You will need to track the touch movement and keep the world's position, which you will then want to draw (clipped) along with all of the objects, transformed to that

[android-developers] Re: OpenGL Textures

2010-02-17 Thread Robert Green
Create texture geometry - 1 2D coordinate per vertex, so for your 4 verts, you could use this: float texLeft = 0f; float texTop = 0f; float texRight = 1.0f; float texBottom = 1.0f; float texArray[] = { texLeft, texTop, texLeft, texBottom , texRight, texBottom, texRight, texTop}; put texArray into

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-16 Thread Robert Green
You're probably pointing something to some bad memory location somewhere. I know you didn't post all of your real code so I can't really say for sure but it looks to me like you may be doing something wrong with your buffers. Here's how I do it: -- Load -- GL11 gl11 =

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-15 Thread Robert Green
Droid handles better than the rest so far but my tests still showed errors. Occasionally it still flips axis and has some small interactions between the two fingers on near-axis touches. It's better but doesn't seem as good as iPhone/iPod touch's screen. On Feb 15, 5:51 pm, Dianne Hackborn

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
I guess I really should have posted an example, huh? Here's the structure that works: public class MyWallpaperService extends GLWallpaperService { public MyWallpaperService() { super(); } public Engine onCreateEngine() { MyEngine engine = new MyEngine(); return engine; }

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
, not into the Service. All the service really needs to do is create engines. Engines do everything else. Follow the structure I posted and you should be golden. On Feb 14, 3:18 pm, Robert Green rbgrn@gmail.com wrote: I guess I really should have posted an example, huh?  Here's the structure

[android-developers] Re: Live Wallpaper --OpenGL Help/Advice.

2010-02-14 Thread Robert Green
.) Play with polygons 2.) Teach the students pictured in that article to play with polygons based on the template I now have. They'll love it! Thanks again! Josh Beck Northeast ISDhttp://www.linuxclassroom.com On Feb 14, 3:25 pm, Robert Green rbgrn@gmail.com wrote: The problem

[android-developers] Re: Nexus 1 opengl driver problem

2010-02-14 Thread Robert Green
If the snapdragon chip follows suit with the MSM7200, GL Lights will cause the CPU to be involved in calculations, which is why you'll see a big performance hit. Check out all of these brew whitepapers from Qualcomm. They talk about lots of that stuff:

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-12 Thread Robert Green
Where did my original post go? Was it deleted? This is a valid problem. How is it that the hardware coming from both HTC and motorola has the same problem? Also - how was this a solved problem with iPhone several years ago? I'm trying to compete with that platform but problems like this make

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-12 Thread Robert Green
Nevermind, I found it - it got segmented somehow. On Feb 12, 11:33 am, Robert Green rbgrn@gmail.com wrote: Where did my original post go?  Was it deleted? This is a valid problem.  How is it that the hardware coming from both HTC and motorola has the same problem?  Also - how

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-12 Thread Robert Green
in that the MotionEvent is reporting incorrect data..but somewhere in there is the correct data.. and from what it looks like, Lukehutch's code resolves that issue? If that is correct, great.. maybe Robert Green and others can take that class of his and retrofit it and report back

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-12 Thread Robert Green
be working with. On Feb 12, 4:55 pm, Robert Green rbgrn@gmail.com wrote: Luke's code cleans up some basic stuff like gestures involving pinching but it can not fix the two independent point problem. Currently, even with his code which filters out some noise, it is impossible to have

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-12 Thread Robert Green
I've had many posts missing recently as well. I'm not sure what the deal is. On Feb 12, 8:26 am, tony obrien tobsourcecode...@gmail.com wrote: Hi, I have been attempting to operate within the android-developers and android-beginners Groups. I understand that new members are moderated, and

[android-developers] Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-11 Thread Robert Green
To further confirm what others have been saying - Multitouch is not suitable for games on Android at the moment. I'm trying to implement a simple control system - left thumb is a virtual analog stick (working fine with single-touch) and a fire button on the right. I wanted to go with another

<    1   2   3   4   5   6   >