Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Translating heavy math code from c/c++ to pascal [ Award!! ]

  1. #21

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    Quote Originally Posted by Delfi
    err, what do you mean?? there is a problem in matrix math, the goal is to get the code translated into pascal and make it work, There is a bug in some math routines or some other code that i must have translated errorenous, i couldn't locate the error after 2 rewrites. I could use the c dll if i wanted to, and i can use it from delphi (see one of example apps) so that header has no byte alingment problem, but the one used in delphi translated project doesn't matter what alingment it has, since it is all native to delphi / fpc, isn't it?

    savage: there's now an additional 100€ award, not just copy of delphi 1.
    alignment still matters, but I clearly see no reason why you just cannot use the c dll after fixing alignment issues or use C++ builder to compile it into .obj files and link them into your Delphi code (FPC supports this?)...translating that code into delphi means translating part of newton into delphi which is kinda awkward (eg. dVector, dMatrix, dQuaternion)...

  2. #22

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    [quote="Setharian"]alignment still matters, but I clearly see no reason why you just cannot use the c dll after fixing alignment issues or use C++ builder to compile it into .obj files and ]

    exactly because of that precise reasons, i am going to make changes to the car dynamics code, which i'd like to have in pascal, there is NO UNIFORM linking for at least 3 platforms on which i'd like to use this on (meaning i'd have to compile and link separately on each platform) also there are certain security issues if u use an externally linked library - people might just replace it with a hacked version and cheat.. delphi can link bcb obj files, but fpc DOES NOT link obj files made with delphi or bcb (wrong format). those dvector, dmatrix etc.. files are not part of newton, but of the sdk examples, i translated them already (but the translation might be broken)
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #23

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    Ok guys, stop being lazy, vacations are over, help me would you? :/
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  4. #24

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    Quote Originally Posted by Delfi
    Ok guys, stop being lazy, vacations are over, help me would you? :/
    Did my previous post help you at all (Re: static variables)?
    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  5. #25

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    I had a quick look on the code and I haven't even been able to compile it yet... Why are you mixing VectorGeometry unit used by GLScene with your own stuff It's a total mess and one can't easily see what's going on...

    I'm working on vehicle physics myself and the original C project may be useful for me as well...
    If you develop an idiot proof system, the nature develops better idiots.

  6. #26

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    Quote Originally Posted by vgo
    I had a quick look on the code and I haven't even been able to compile it yet... Why are you mixing VectorGeometry unit used by GLScene with your own stuff It's a total mess and one can't easily see what's going on...
    because i'm not using glscene where the code will be used, and i didn't write the original c++ code, i only translated it (twice, but both translations didn't work and i can't locate the flaw)

    Quote Originally Posted by vgo
    I'm working on vehicle physics myself and the original C project may be useful for me as well...
    well, if you get this working, you can use the code for whatever you want.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  7. #27

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    I'm cancelling this.. it's not as if anyone shown much interest into solving this aniway.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  8. #28

    Translating heavy math code from c/c++ to pascal [ Award!! ]

    Quote Originally Posted by Delfi
    I'm cancelling this.. it's not as if anyone shown much interest into solving this aniway.
    Hi Delfi,
    you never said if what I posted helped you at all...

    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

Page 3 of 3 FirstFirst 123

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
  •