hiteshsuthar / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

VBO's broken on several devices (Droid/Samsung/Emulator/...) #128

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I tried to use "setBackground(background = new 
FixedBackground(Textures.background))",not work.
2.I tried to use " bg = new GameObject(0,0,480,320);
        bg.setTexture(Textures.background);  
        add(0, bg);",not work.
3.Above method can be work in emulator.

What is the expected output?

display the background picture in the real machine.

What do you see instead?
no background in real machine

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
1.5

Please provide any additional information below.

Original issue reported on code.google.com by ljq981...@gmail.com on 28 Jul 2010 at 7:16

GoogleCodeExporter commented 8 years ago
real machine means SAMSUNG I5700

Original comment by ljq981...@gmail.com on 28 Jul 2010 at 7:20

GoogleCodeExporter commented 8 years ago
i don't see background
my machine is SAMSUNG SHW-M100S.

Original comment by heross...@gmail.com on 28 Jul 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Having same issue with SAMSUNG CAPTIVATE. Background does not show up, same 
with buttons from tutorial menu. Completely works on all emulators.

Original comment by harwina...@gmail.com on 28 Jul 2010 at 2:18

GoogleCodeExporter commented 8 years ago
I'm having the same issues with my Samsung Captivate (i897).  All black screen 
when trying to bring it up on my device.  This works in my emulator though 
(Using a 1.6 emulator)

Original comment by pklind0...@gmail.com on 28 Jul 2010 at 2:19

GoogleCodeExporter commented 8 years ago
I tried running my same code on an emulator for 2.1 and 2.2 and I saw that I 
got black screens as well.  What I then discovered is that the Trunk has bug 
fixes that the .jar does not have yet, so I created a .jar out of the trunk 
code.  My emulator comes up fine now for 2.1 and 2.2, however it is still 
coming up as a black screen for my Samsung Captivate.

Original comment by pklind0...@gmail.com on 28 Jul 2010 at 5:11

GoogleCodeExporter commented 8 years ago
I changed to use NORMAL_PRIORITY instead of PRIORITY_VBO and it shows up on my 
device now.  Although I don't know if that's the right option to use here or 
not.

Original comment by pklind0...@gmail.com on 28 Jul 2010 at 6:43

GoogleCodeExporter commented 8 years ago
OK,I used another method, change the back ground picture real size to 479*320,I 
can see the background in the device.

Original comment by ljq981...@gmail.com on 29 Jul 2010 at 1:15

GoogleCodeExporter commented 8 years ago
This is the VBO issue.

Original comment by rtaylor205@gmail.com on 29 Jul 2010 at 7:07

GoogleCodeExporter commented 8 years ago
I used the background picture in helloworld demo, It can display normaly,but 
when i changed other picture , i can't.
I changed to use NORMAL_PRIORITY instead of PRIORITY_VBO ,but it did't work .
And I used the way of the Comment 7 , the result is same.
The log is : java.lang.Exception: Loading TextureAtlas.

Original comment by mp870...@gmail.com on 30 Aug 2010 at 9:43

GoogleCodeExporter commented 8 years ago
I changed to use rokon-2-1-0.jar , the background picture can display normaly.
Thanks!!

Original comment by mp870...@gmail.com on 30 Aug 2010 at 12:10

GoogleCodeExporter commented 8 years ago
I tried all of the above patches (except recreating a jar file from the trunk 
code) but no success on my emulator.

Original comment by tombolo...@gmail.com on 3 Sep 2010 at 11:21

GoogleCodeExporter commented 8 years ago
I just wanted to confirm that I just built the newest Trunk of Rokon (366) and 
until I changed the priority from setDrawPriority(DrawPriority.PRIORITY_VBO); 
to setDrawPriority(DrawPriority.PRIORITY_NORMAL); I would only get a black 
screen, but the Logic and Render FPS were still being reported properly.
I am running a Motorola Droid (A855) 2.2 rooted.
The strange part is that in build 365 I did not have this issue.

Original comment by telekawaru on 8 Sep 2010 at 4:48

GoogleCodeExporter commented 8 years ago
Some things I found out since I started with this yesterday with my i5700: when 
your own background won't show (only total black) make sure it's 32bit color 
depth, this did it for me. Also it's true that only NORMAL works for this 
phone, not with VBO. With 2.1.0 (366) none of these works.
And one thing I experienced: when using forceLandscape() the phone already has 
to be in landscape. Otherwise the title bar won't disappear and nothing else 
happens.

Original comment by klaus4...@gmail.com on 16 Sep 2010 at 8:50

GoogleCodeExporter commented 8 years ago
Here is a link with some examples of supported GL_Extension sorted by device. 
http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-differ
ent-android-devices . My i5700 doesn't look good there ^^. Hopefully those 
Non-Samsung-drivers that are in the works right now can change that at least 
for people willing to mod their phone (like me ;))

Original comment by klaus4...@gmail.com on 19 Sep 2010 at 1:49

GoogleCodeExporter commented 8 years ago
I'm facing exactly the same problem mentioned in comment 9. 
I created a simple png image in paintbrush, but when I try to display it in 
helloworld tutorial I get a blank screen. However the display is fine with the 
default image in the helloworld tutorial. 

Original comment by thedemon...@gmail.com on 17 Oct 2010 at 8:13

GoogleCodeExporter commented 8 years ago
I am using following code to set background image

public void onCreate() {
    createEngine(480, 320, true);
    rokon.setBackgroundColor(0, 0, 0);
}

@Override
public void onLoad() {
    atlas = new TextureAtlas(512, 512);
    backgroundTexture = new Texture(objLevel.getBackgroundImage());
    atlas.insert(backgroundTexture);
    background = new FixedBackground(backgroundTexture);
    TextureManager.load(atlas);
}

@Override
public void onLoadComplete() {
    rokon.setBackground(background);
    for (int i = 0; i < alphaSprites.size(); i++) {
        rokon.addSprite(alphaSprites.get(i));
    }
}

Someone please tell me why the background image was not showing up. The people 
above talking about priority, please explain it in detail, sumbit a sample code 
if possible. Thanks

Original comment by dee.dee...@gmail.com on 3 Aug 2011 at 1:50