• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 
24 November 2024, 03:04:19

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - aksdb

1
Hmm, not that I know of. Probably the best way would be to just attach the patch and a note (readme or something) to svn. After Lazarus 0.9.23 is released, it can be merged (I guess there is no reason for downward compatibility then).
On the other hand ... someone who uses the Imaging Lib from svn, probably also uses Lazarus from svn (or at least he has the necessary skills to do so ;)).
2
In the lazarus revision 11861, the RawImage implementation got changed to a more OO approach, breaking the current implementation of the ImagingComponents.

I attached a patch to resolve this.
3
Seems to work great. At least it didn't cause any trouble so far and the textures are displayed correctly :)
Thanks for that fast response and implementation.

Btw. I saw you also started several Canvas methods, looks also great :)
5
It would be useful, if for example CreateGLTextureFromImage/File/etc. would somehow return the size of the texture (for example as var-parameters), as these methods may modify the actual size of the texture (power of 2). The size is always necessary to know (how to draw the texture otherwise?) so it saves time and performance if one does not have to additionally query the texture size from opengl/dx/sdl after creating the texture.
6
The only thing I would like for future versions if most likely already on your list:  more canvas functions
as they are available in Delphi (for example drawing and/or filling circles and/or circle sections), as
many of these functions are not even available in Lazarus' TCanvas implementation.
If I have another idea I'll let you know :)
7
That was indeed the problem. As I need transparency I will just set the alpha bit before processing the pixel.
Your imaging library is really great. Saves me much trouble with lazarus and cross platform development
(as TBitmap does not have scanline and as I need the image as well in OpenGL as for TCanvas).

Thanks for the fast help and for that great work :-)
8
I forgot to attach the two images I generated to test it. Here they are.
9
I have a problem generating a texture from an ImageData. The image is generated during runtime as ifA1R5G5B5 by directly writing to the memory behind image.Bits
It is then converted to ifA8R8G8B8 and used throughout the application. If I draw it to a canvas (DisplayImage) it works just fine. I can even save it to a file and it displays just fine. But if I convert it to a texture it is not displayed at all.
To test the behavior I created a bitmap file using delphi's TBitmap.Scanline and saved that as F2A.bmp and created a second one using TImageData.Bits under lazarus and saved it as F2A_.bmp. I then generated the texture by using LoadGLTextureFromFile("F2A.bmp") and for the second one LoadGLTextureFromFile("F2A_.bmp"). The first one (TBitmap generated) is displayed correctly where the second one (TImageData generated) does still not show up, although both files can be viewed in any graphics application (I used xnView and Pixel to test it). Maybe someone can see more, but currently I suspect the problem within the imaging library. I'm just not able to find a solution :(
SMF spam blocked by CleanTalk