Jump to content

  • Log In with Google      Sign In   
  • Create Account


JavierMC

Member Since 31 Jul 2005
Offline Last Active Feb 22 2014 09:31 AM

#4873956 openAL not looping source

Posted by JavierMC on 18 October 2011 - 09:52 AM

Everything looks fine to me. It's been like a year since I used OpenAL tho.

I don't use alut but it looks like it's already creating a context by itself. As for the looping issue, the only difference I see is that I use

alSourcei(source, AL_LOOPING, loop);
alSourcei instead of alSourcef, but I'm not sure if it matters.


#4837318 FBX Models

Posted by JavierMC on 19 July 2011 - 05:18 AM

Hi, I've recently added FBX support to a preprocessing tool, and this is what I think.

If you only want to load models, it's decent. If you just want to load polygons, normals, etc. then you can do it pretty easily and without concerns about speed. It may take some time getting used to the SDK, but support is good and I think it's worth it.

Now the ugly part comes with the animations. In a debug build a file with a single animation can easily take more than 2 seconds*. The humanoid.fbx that comes with the SDK takes more than 8 seconds. In release it's pretty much instant (didn't time it) so it may not really be a concern. I also should mention that some malformed files caused the SDK to crash.

Now speed aside, I went into a lot of troubles because each program likes to export things... differently. Let me explain. At least in the files I used, the animation keyframes in a file exported with version 6 would contain absolute values for the translations and rotations, whereas a file exported with version 7 would contain values relative to the previous keyframe. And even worse, files from Maya have to be loaded differently than files from Max. (see here) **

I wouldn't use it directly in an engine, but that's mainly because I prefer having a private format that I can load safely.

* At least in my experience. Opening the file and calling Import() is what causes the big slowdown. However be advised that my implementation may be faulty and I may be loading more than I should, even if I'm setting most options to false.
** You can avoid this by having the SDK evaluate the complete transformation at a given time.



#4824419 Hardest game as a child, still hard as an adult?

Posted by JavierMC on 17 June 2011 - 04:31 AM

I... I never beat Alex Kidd in Miracle World :unsure:


PARTNERS