Re: Achieving sound rotation using PySFML?

2016-07-09 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector


  


Re: Achieving sound rotation using PySFML?

I discovered that the listener direction thing wasn't working too well in sfml, and still couldn't wrap my head around it. As a result, I wrote a sound positioning function that positions sounds based on the player's theta rather than orienting the player. Thanks for the help though.

URL: http://forum.audiogames.net/viewtopic.php?pid=267504#p267504





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Achieving sound rotation using PySFML?

2016-07-08 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: Achieving sound rotation using PySFML?

You might want to check the documentation to figure out if the functions accepts radians or degrees.If it only accepts radians then you'll need to convert them over from degrees. If you don't know what radians are, here's a link.https://en.wikipedia.org/wiki/Radian

URL: http://forum.audiogames.net/viewtopic.php?pid=267308#p267308





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Achieving sound rotation using PySFML?

2016-07-08 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector


  


Re: Achieving sound rotation using PySFML?

Never used open al for rotation before, and I know how the functions work, but not what math to put in them to set the player's direction. I thought that I'd put something like thisDegs #this stores the direction in degrees the player is facing.sf.listener.set_direction(math.sin(math.radians(degs)), math.sin(math.radians(degs)), math.cos(math.radians(degs)))Because the function is x, z, y.  Is that correct code? I thought it would be.

URL: http://forum.audiogames.net/viewtopic.php?pid=267283#p267283





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Achieving sound rotation using PySFML?

2016-07-08 Thread AudioGames . net Forum — Developers room : Dino via Audiogames-reflector


  


Re: Achieving sound rotation using PySFML?

Could you share your rotation code? I would be interested in using Python for 3d games. I'd port it myself but I don't understand BGT, and, well, if the work's been done once then why do it again? Thanks.

URL: http://forum.audiogames.net/viewtopic.php?pid=267268#p267268





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Achieving sound rotation using PySFML?

2016-07-07 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: Achieving sound rotation using PySFML?

Those seem like what you'd want, you'd set the sound's position in 3D space and rotating the direction of the listener would then change from what direction you hear the sound. Its not all that different from the OpenAL Listener functions, from the PySFML documentation:classmethod set_direction(direction)Set the orientation of the listener in the scene.The orientation defines the 3D axes of the listener (left, up, front) in the scene. The orientation vector doesn’t have to be normalized. The default listener’s orientation is (0, 0, -1).Parameters: direction (sfml.system.Vector3 or tuple) – New listener’s orientation

URL: http://forum.audiogames.net/viewtopic.php?pid=267241#p267241





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Achieving sound rotation using PySFML?

2016-07-07 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector


  


Achieving sound rotation using PySFML?

Hi all,  I have rotation code implemented, meaning that the player can turn all the way around, walk, and side step with the current code I have. I ported this over from Sam Tupy's bgt rotation package.  There is a problem though. I'm not using a function to position sounds where I can specify where to pan and set their volume to, because I am using SFML's sound module. Here are the functions I have to work withsound.position(x, y, z)listener.set_direction(x, y, z)Maybee there are others that would help with this, but I think these are the most likely candidates. What I'm asking is, how do I make my sounds rotate in Python SFML? How do I make it so that when I turn, it actually sounds like the player is turning around?

URL: http://forum.audiogames.net/viewtopic.php?pid=267239#p267239





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector