Results 1 to 10 of 27

Thread: BGRABitmap tutorial

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Well your last 2 tutorials go into 3D stuff, so I was just wondering how practical all that would be if you decided to do some animation for visual effect. Is it worth it to try this for a nicer looking application GUI or would we just be better off using OpenGL or Direct3D instead?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #2
    If you animate some phong buttons, it is very fast, but if you animate the whole screen, it is a little bit slow. So if you make some phong animation when the mouse moves over the controls, it would say it works.

    There is sample chart in testbgrafunc (it's in LazPaint archive). You can give it a try. You can see how smooth are the different capabilities of BGRABitmap.

  3. #3
    I'd like to play with this, but the FPC wiki seems to be down.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    I was wondering about a water or ocean type effect on the background of the form or something like that. I think I know what the answer might be though.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5
    Quote Originally Posted by chronozphere View Post
    I'd like to play with this, but the FPC wiki seems to be down.
    Yes, unfortunately. You can still have a look at the bgrafunctest folder in LazPaint archive. You can find it here :
    http://sourceforge.net/projects/lazpaint/files/src/

    Quote Originally Posted by WILL View Post
    I was wondering about a water or ocean type effect on the background of the form or something like that. I think I know what the answer might be though.
    Well, it depends. You can precalculate an ocean texture. Then, just showing it is ok. But if you want to animate it, well, it would be too slow, except maybe with a very small texture.
    Last edited by circular; 09-04-2011 at 08:11 AM. Reason: link

  6. #6
    Thanks. How can I install that lpk package? Can I move my source files after I have installed the package? (Really annoying that I have to ask this, because all the documentation for lazarus is inaccessible. )

    Update: It seems like they have fixed the problem.
    Last edited by chronozphere; 09-04-2011 at 04:13 PM.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  7. #7
    Once the package is installed, you need to specify package dependency in the project inspector. Then you can move your project whereever you want.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •