#183 BGR24ToRGB24 not working in Lazarus (scanlines problem)

open-accepted
nobody
None
5
2011-06-19
2011-06-19
Johannes
No

GLScene Version : v1.1_March_2011_SVN_revision_5593
Lazarus : 0.9.30
File : GLFileQ3BSP.pas
Function : LoadfromStream

Good day

Ran into problem when calling LoadfromStream funtion inside it it calls BGR24ToRGB24 to set the bitmap, but this calls the scanlines function of tbitmap, Lazarus does not have this and from what I read wont really have it anymore. I tried to look at alternative tbitmap replacements and could not really get something that is suitable.(BGRABitmap seems to be something to look at but it is alot to add just for scanline option).

I thought I mention it here. If I might get solution I will post , but it is something to look at.

thanks

Johannes

Discussion

  • Johannes

    Johannes - 2011-06-19

    Okay I think I might have found a fix for it, I just dont have valid q3bsp files to test with. I used TLazIntfImage to work with it,. I also had to change GLFileOCT.pas the same way to work.

    As soon as I can get one of these files to test with I will report back
    thanks

     
  • Johannes

    Johannes - 2011-06-19

    Okay, it seems to work could load a example bsp file in with no errors, I have uploaded the 2 files I fixed to the following url (cannot attach to this but entry it seems) if you want to look at it

    www.dominion-it.co.za/lazarus/FileFormats-update.zip

    Hope it helps

    thanks

     
  • YarUnderoaker

    YarUnderoaker - 2011-06-19
    • status: open --> open-accepted
     
  • YarUnderoaker

    YarUnderoaker - 2011-06-19

    Okay, I applied your changes, but without tests. Can you attach some projects with this file formats for me?

     
  • Johannes

    Johannes - 2011-06-19

    Hi there.
    Okay I updated the same zip file, it has a sample file inside it now also that you can use. I am almost finishing converting all the AdvDemo's to Lazarus, then you can use the GLViewer to view this file.

    Hope it helps

    thanks

     
  • Nobody/Anonymous

    I really like what you guys tend to be up too. This type of clever work and coverage! Keep up the very good works guys Ive added you guys to our blogroll.
    <a href="http://www.nanowrimo.org/en/participants/tenorfield2" title="Freelance writers">Freelance writers</a>