Share

3D Mesh-To-Heightmap Generator

Code

Programming Languages: C

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2008-07-06 svn co https://mesh2hmap.svn.sourceforge.net/svnroot/mesh2hmap mesh2hmap

Show:

What's happening?

  • Fix malloc usages (patch included)

    The attached patch fixes the following issues: Check pointers returned by malloc. It may return NULL on allocation failure. Replace random size check. 40Mb is just random and it can easily be hit in the real world. Use 4G instead, which is a better limit (32-bit address space limit). If the machine does not have enough memory, malloc will tell us. There's no need to check against...

    2009-05-14 21:40:53 UTC by tuxsoft

  • Fix incorrect rendering (patch included)

    The attached patch fixes a rendering bug that results in the attached shapes-broken.pgm image. The expected image is attached as shapes.pgm. The patch replaces a comparison ((float)x == 0.0) by (fabs(x) < very_small_fp_value). Due to floating point not being exact, it depends on the FP format and the CPU whether a direct comparison will be true or not. The ==0.0 test breaks on PowerPC and...

    2009-05-13 11:13:15 UTC by tuxsoft

  • Comment: Fails to build on PPC (Patch included)

    This also fixes compilation for x86_64.

    2009-05-12 21:27:58 UTC by tuxsoft

  • Fix more fgetc() calls (patch included)

    The attached patch fixes more fgetc()s, which put their result into a char. The result must be put into an int, because otherwise it breaks wrt EOF on systems with char=unsigned char.

    2009-05-12 21:25:50 UTC by tuxsoft

  • Fix parser on systems where char is unsigned (Patch included

    On systems like PPC and Sparc a C "char" is unsigned by default. So it can not hold the magic EOF that's returned by fgetc() on end-of-file, because EOF usually is -1. So the parser fails to detect and end-of-file condition on such systems. The attached patch fixes this by using "int" for the "ch" variable. (fgetc() also returns an "int" type)

    2009-05-12 10:41:10 UTC by tuxsoft

  • Fails to build on PPC (Patch included)

    The following patch fixes a linker error on PPC due to the compiler choosing to not inline the sub_cross2d function. gcc -std=c99 -o mesh2hmap main.o mesh2hmap.o parser.o output.o matrix.o -lm mesh2hmap.o: In function `get_grid_height': mesh2hmap.c:(.text+0x2f8): undefined reference to `sub_cross2d' mesh2hmap.c:(.text+0x344): undefined reference to `sub_cross2d' collect2: ld returned...

    2009-05-12 10:08:12 UTC by tuxsoft

  • 3D Mesh-To-Heightmap Generator

    hessint committed revision 90 to the 3D Mesh-To-Heightmap Generator SVN repository, changing 1 files.

    2008-07-06 05:41:05 UTC by hessint

  • 3D Mesh-To-Heightmap Generator

    hessint committed revision 89 to the 3D Mesh-To-Heightmap Generator SVN repository, changing 1 files.

    2006-11-07 01:16:26 UTC by hessint

  • mesh2hmap-0.3.2 released

    - Fixed Makefiles to work with GCC 4.x - Rewrote VRML parser so that it can handle DEF/USE keywords.

    2006-11-04 08:48:13 UTC by hessint

  • 3D Mesh-To-Heightmap Generator

    hessint committed revision 88 to the 3D Mesh-To-Heightmap Generator SVN repository, changing 1 files.

    2006-11-04 08:32:47 UTC by hessint

Our Numbers