Python and 3d positioning with Libaudioverse
Hello all,
So, I'm now experimenting with making true 3d game in python where you can move in directions left, right, forward, back, up and down. So 3d sound will also be used.
There's one thing which confuses me though. Libaudioverse's positioning works totally different than bgt's (I don't know if it's similar to OpenAl or not because I haven't worked with OpenAl yet). I've chose Libaudioverse because it has many advanced features that may be useful later if I decide to implement reverb for large arias, or filters for representing objects behind the closed door.
So, in BGT you position sounds and listener by specifying x,y coordinates, e.g., 50, 0. Libaudioverse uses positive and negative values for this, and I'm not sure how to make it convertable to real coordinates, so instead writing (-1, 0, 0), I can simply specify x,y,z position of the object on a map let's say 50,50,0 and then convert it to values that Libau
dioverse understands. I'm not the best when it comes to math, so I need at least some guidelines on how to achieve this conversion. Let's say the room max size is 100 by 100, and you can clime upto 100 squares in the air, the player is at coordinates x50, y0, z0 and there's an object e.g. telephone ringing at room coordinates x50, y50, z0. Please note that this game will not have turning like in fps. Instead it'll work like an rpg where you can move in 4 directions (north, south, east and west), and you can clime up and down, for example on a ladder or tree.
I was trying to follow the code for Shooter game that was recently posted, but code is uncommented so it may take a lot of time.
Thanks for any help.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector