Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - livingcode

Pages: [1]
1
Support / Re: Strange behaviour with static Texture background
« on: December 20, 2010, 05:48:32 pm »
That's true :) + I can be sure JPCT-AE works well on my i7500 :) Thank You!

2
Support / Re: Strange behaviour with static Texture background
« on: December 19, 2010, 03:47:29 pm »
Yes, I know ;)
Offtopic: I've seen here (http://www.jpct.net/forum2/index.php/topic,1853.0.html) that You still have 1.5 on Your Galaxy. Did You know that 2.2.1 is already possible on i7500? Works great, fast (as fast as i7500 can :D), only down side is that bluetooth doesn't work (im not sure about that, because I dont use it anyways..) Link: http://code.google.com/p/gaosp/

3
Support / Re: Strange behaviour with static Texture background
« on: December 18, 2010, 10:06:07 pm »
Heh if it works on my i7500, than it works anywhere ;) Heh (Google Chrome shows broken icon ;))

4
Support / Re: Strange behaviour with static Texture background
« on: December 18, 2010, 07:27:35 pm »
Omg, it works :) fb.clear() solves the problem. Thank You!

(I guess http://imageshare.web.id has some problems with displaying thumbs. It works ok, if you click on 'broken icon' :) )

5
Support / Strange behaviour with static Texture background
« on: December 18, 2010, 05:42:32 pm »
Hello!
I want to make a static background (from picture) and to show a simple cube infront of it. I have modified the Hello World example - instead of using color for background, I used 512*512 big Texture. But when I rotate cube, something strange happens:

(when I load it and don't touch it)




(the more I touch/rotate it, the more it fades!)

Code modifications:
I load my texture into TextureManager from onCreate()
Code: [Select]
TextureManager.getInstance().addTexture("textureBG", new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.garden)), 512, 512)));

And then in the onDrawFrame(GL10 gl)
Code: [Select]
fb.blit(TextureManager.getInstance().getTexture("textureBG"), 512, 512, 0, 0, 512, 512, false);
world.renderScene(fb);
world.draw(fb);
fb.display();

What am I doing wrong? How can I fix it?
Thank You!

Pages: [1]