Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Apr 2006
Offline Last Active Jun 15 2014 02:19 PM

#5123607 array performance / direct memory access?

Posted by on 14 January 2014 - 11:02 AM

You might be better off embedding Python in your app - check it out, it's simple.

#5112575 Alignment requirements

Posted by on 27 November 2013 - 04:11 PM

I'm having trouble registering a float3 class with a float3(float x, float y, float z) constructor as a scoped ref type. Calls specifying asBEHAVE_CONSTRUCT fail when the flags are asOBJ_REF | asOBJ_SCOPED and adding asOBJ_APP_CLASS fails when registering the object type. How would I do that? 


If possible, I'd like to cast a vote for the alignment feature request described at http://www.gamedev.net/topic/606270-memory-aligned-objects/?gopid=4835684 - aligned vector types exist in every single game engine that I know of, and that option would significantly improve the ease of binding.

#5092533 Atomic File Library - C, BSD Licensed.

Posted by on 08 September 2013 - 02:44 PM

I wrote a small library that provides atomic files with transaction support on platforms that don't have native transactional filesystems. I basically wrote that to avoid potential file corruption when writing out things like save game files etc., but it should be widely useful especially since the transactions can be nested.


The library can be found at bitbucket: https://bitbucket.org/sherief/ext-atomic-file .It's BSD licensed and has only one dependency (SQLite 3). The repository contains Visual Studio 2012 and Xcode 4.x projects. The code is in C (though it's compiled as C++ on VS since it uses some C99 features) and should be portable. 


Questions and comments welcome. 

#5078171 Releasing a new parser generator, BSD license

Posted by on 16 July 2013 - 10:17 AM

I wrote a parser generator for use in my HLSL to GLSL translator, and now I've decided to release it under the BSD license: 





#4803586 Generating screen-aligned texture coordinates

Posted by on 27 April 2011 - 10:07 AM

Aha, that was it, thanks a million.

#4793958 Per-pixel motion blur

Posted by on 03 April 2011 - 03:36 PM

I highly recommend checking out Eric Lengyel's article in Game Engine Gems Vol. 1.

#4758025 Two Open Source (BSD) utilities I wrote

Posted by on 12 January 2011 - 04:47 PM

I recently cleaned up and uploaded a couple of small utilities I wrote to help me with work to BitBucket. The first, "Text to C String", takes a text file as input and outputs a string suitable for embedding in a C[++] file. I use it to embed shaders into my code as const char*s, so that small demo apps I write end up self contained. The second, "Binary to C Array", does a similar thing for binary files - it turns them into an unsigned char array (like "{ 0x0A, 0x07, 0x1B }") suitable for embedding in a source file. I use this to embed other binary dependencies like Ogg files into my exe, again for the sake of having a single simple, self contained application. I hope someone would find them useful.

Text to C String

Binary to C Array