Google comes up with some decent looking results for "2d bin packing", try http://www.astrokettle.com/data.html
Is it really much more efficient to store the images in one big texture?
Search found 5 matches
- Fri May 16, 2008 1:04 am
- Forum: Advanced Help
- Topic: A class to display sprites
- Replies: 7
- Views: 840
- Wed May 14, 2008 1:52 pm
- Forum: Beginners Help
- Topic: Strange (2d) alpha behavior
- Replies: 3
- Views: 593
Thanks for the reply. Here is an image to better describe this strange behavior: http://imgplace.com/image_bin/9978/eed125dfb070313b4f5f9ca73826da80.jpg.th.jpg Well what should the background colour be? What are you drawing the image on top of? Do you still call beginScene and endScene? The backgrou...
- Wed May 14, 2008 12:23 am
- Forum: Beginners Help
- Topic: Strange (2d) alpha behavior
- Replies: 3
- Views: 593
Also, rgb 1,1,1 or 2,2,2 are also recognised (incorrectly) as 0,0,0 This seems like a bug to me? If I do: Driver->makeColorKeyTexture(image, video::SColor(0,255,0,255)); Driver->makeColorKeyTexture(image, video::SColor(0,0,0,0)); Then the pink areas will be transparent, but only because the first ca...
- Tue May 13, 2008 11:00 pm
- Forum: Beginners Help
- Topic: Strange (2d) alpha behavior
- Replies: 3
- Views: 593
Strange (2d) alpha behavior
When I call makeColorKeyTexture using black rgb 0,0,0 and render it with draw2dimage, it appears with proper transparency in the pure black areas, as expected. A sprite with a black background is rendered perfectly. //Once driver->makeColorKeyTexture(image, video::SColor(0,r,g,b)); ... //Each loop d...
- Fri Mar 07, 2008 7:30 pm
- Forum: Beginners Help
- Topic: Strange values when extracting vertices...
- Replies: 7
- Views: 537
Your code only works correctly if the vertex type is actually video::S3DVertex . Irrlicht supports several other vertex types [video::S3DVertexTCoords or video::S3DVertexTangents], and you must account for that. You could fix that with something like this // variable length arrays are not supported...