Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: FPC4NDS: devkitPro's 2D examples

  1. #1

    FPC4NDS: devkitPro's 2D examples

    I'm trying to fix bugs in libndsfpc and the 2D part should work pretty fine now (well, at least it works fine in dkp 2D examples). I have decided to upload those 2d examples on libndsfpc SVN, so if you are interested, you can get an idea about how things work.

    About 3D: several problems here... I'm going on very slowly, because I need to test all code on the real NDS. In fact emulators aren't very good in 3D stuff at this time
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #2

    FPC4NDS: devkitPro's 2D examples

    Another update

    This time I have put on SVN some NeHe's 3d examples, sound related stuff and... well, this is the changelog from SVN:

    + Added a lot of new examples from devkitPro (NeHe's 3d, sound, input, debugging, libfat)
    + Added Christmas PGD demo sources
    * Fixed postest.inc, dma.inc, timers.inc
    * Updated video.inc
    * Fixed and updated a lot of stuff in videoGL.inc (mainly fixed point conversion and 3d funcs)
    As usual, any feedback is very appreciated
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  3. #3

    FPC4NDS: devkitPro's 2D examples

    hi Legolas

    It's been a while since I played with the DS stuff, I'll try and give it a go for you when I get a miniute.

    I also tried to modify the port of SDL to allow 3D but didn't get very far cos the emulators are not good at 3D (in software or hardware).

    I'll have a look at the nehe demos in SVN and see if I can figure out where I went wrong.

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  4. #4

    FPC4NDS: devkitPro's 2D examples

    New No$gba 2.4b and Ideas 1.0.1.6 seem good enough for 3d. At this time I have some problems with display lists (some geometry flickering) and maybe I have found a bug in fpc in int64 handling, that prevents fixed point math coprocessor to work.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  5. #5
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    FPC4NDS: devkitPro's 2D examples

    Would OpenGL|ES work on the NDS? If there was compatibility with SDL that might be an option.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    FPC4NDS: devkitPro's 2D examples

    OpenGL for NDS is a sort of GL "simulator" only or, as stated on devkitpro's docs, "a Video API vaguely similar to OpenGL". IMHO an OpenGL|ES porting is feasible, but not at this stage of developement.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  7. #7

    FPC4NDS: devkitPro's 2D examples

    I have uploaded all remaining 3D examples now (excepted for a couple of overcomplicated NeHe conversions :roll.
    I have released a new zip package with lib and examples too
    For all interested people, I *strongly* recommend to update to this release, because there are tons of bugs fixed, several improvements and new features here and there
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  8. #8

    FPC4NDS: devkitPro's 2D examples

    hi.

    using your package gives me an error.

    code:
    Code:
    program Touch;
    &#123;$apptype arm7&#125; //...or arm7
    &#123;$define ARM7&#125;   //...or arm7, according to apptype
    &#123;$mode objfpc&#125;   // required for some libc funcs implementation
    uses
      ctypes; // required by nds headers!
    &#123;$include nds.inc&#125;  // headers!
    var
      tempPos&#58; touchPosition;
    
    procedure CatchTheTouch&#40;&#41;;
    begin
      tempPos &#58;=  touchReadXY&#40;&#41;;
      IPC^.touchX &#58;= tempPos.px;
      IPC^.touchY &#58;= tempPos.py;
    end;
    
    begin
      // Reset the clock if needed
      rtcReset&#40;&#41;;
      irqInit&#40;&#41;;
      irqSet&#40;IRQ_VCOUNT, @CatchTheTouch&#41;;
      irqEnable&#40;IRQ_VCOUNT&#41;;
      while true do
        swiWaitForVBlank&#40;&#41;;
    end.
    error:
    ppcarmnds touch.pp7 -Sg
    dma.inc(111,83) Error: Identifier not found "DMA_START_FIFO"
    dma.inc(111,84) Error: Illegal expression
    touch.pp7(35) Fatal: There were 2 errors compiling module, stopping
    Fatal: Compilation aborted
    i have tried it standalone and tried it with copying over the existing
    libnds-directory. both gave me the same results.

    is the error on my side?

  9. #9

    FPC4NDS: devkitPro's 2D examples

    This error should be fixed in svn now.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  10. #10

    FPC4NDS: devkitPro's 2D examples

    wow, fast! :D

    but ... still doesn't work. it gave me the same error. i even doublechecked
    by downloading version 0203 again.

    am i the only one who has this problem? ... or am i the first to try it out? xD

Page 1 of 4 123 ... LastLast

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
  •