Jump to content

  • Log In with Google      Sign In   
  • Create Account

EasyCoder

Member Since 19 Aug 2011
Offline Last Active Mar 02 2013 10:09 AM

Posts I've Made

In Topic: Problems with playing sounds using SoundPool

19 February 2013 - 04:18 PM

I have spent on this problem now over a week, took the whole class apart, modified, changed parameters, removed bits which I thought could cause the problem... No improvement. Re-sampled all sounds to the lowest sampling rate possible... No improvement either.

 

I am getting really fed up with this problem and starting to think I might dump the whole unreliable SoundPool and replace it with some other way of playing sounds...

 

Does anybody have any suggestions as to what is the best and most reliable way of playing sounds in Android? unsure.png (not music - short sound effects).


In Topic: Problems with playing sounds using SoundPool

13 February 2013 - 09:01 AM

Does it happens after switching from apps to apps ?

 

It happens immediately after start of the app, when I attempt to play the first sound.


In Topic: glRotatef behaves strange

27 July 2012 - 09:01 AM

Cool - so then this topic can be closed Posted Image

In Topic: glRotatef behaves strange

27 July 2012 - 06:42 AM

Use glOrtho instead of gluPerspective.

If you hold your hand 45 degrees like the image and put it far left of your head and them move it towards the right, you will see the same thing. On the left your hand is facing you, on the right it is facing away from you and distorted because you are looking down the side of the hand and cant see the front anymore.


Yes, your explanation makes perfect sense to me.

And gluOrtho2D works like a charm ! Posted Image

Now all 15 objects rotate exactly at the same angle. Thanks for your help & suggestion.

Only one more question: can you swap back and forth between gluOrtho2D and gluPerspective within the onDrawFrame ?

This is for a game which I am developing, and the engine is already finished and working fine in gluPerspective, so I am not very keen to change it to gluOrtho2D.

I just want to do that rotation effect in gluOrtho2D, then get rid of the objects and swap back to gluPerspective.

Is this possible ?

In Topic: glRotatef behaves strange

26 July 2012 - 09:58 AM

If those quads are rotated 45 degrees about the Y-axis, then the only reason I can see for that behaviour is normal perspective effects. Objects to the left will be viewed more from the right that centered objects and thus appear, due to perspective, slightly narrower. Think of a cube; the further to the right on the screen the cube is, the more of its left side you can see. They are not rotated, but perspective shifted.


I see. Is there any way to change the perspective, so they all appear the same ?

PARTNERS