IrrDelphi (Irrlicht183, irrKlang130b) Delphi\Pascal headers

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
dbyoung
Posts: 2
Joined: Thu Mar 11, 2010 1:14 am

Excellent job!

Post by dbyoung »

Excellent job! thank!
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

dbyoung, thanks!

All, download new 0.03 version from first post with new features!
vgo
Posts: 1
Joined: Wed Aug 18, 2010 8:00 pm

Post by vgo »

I tried to test this, but it just won't work. All the precompiled examples crash and same happens in Delphi too.

I have Win7 x64 and Delphi 2010, I fixed the PChar<>PAnsiChar issues in the header, but I guess that's not enough...

The precompiled original 32bit SDK examples work just fine.

...

Tested it again with Delphi 2010, this time on WinXP x86 and after replacing all PChar with PAnsiChar in the header I can compile and run the examples. I just can't figure out why it won't work on Win7 x64...
DOCa Cola
Posts: 1
Joined: Tue Apr 13, 2010 7:48 am

Post by DOCa Cola »

great work on the header files :)

noticed a small issue though. when using the classes from multiple functions, crashes would occur. this seems to be related to the thiscall function. i used the backup 'thiscall' function you still had there which is working fine.

hope you haven't given up on continuing with irrdelphi
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

thanks for replies)

vgo, i will check it later
DOCa Cola, can you upload example?

This version also work with 1.7.2. New headers in progress
Drizztfun
Posts: 1
Joined: Sat Jan 22, 2011 9:13 pm

Post by Drizztfun »

Hello,

first, thank you very much for your effort, its running very well.

But i ran into one problem here

IMeshBuffer.GetVertices returns a PPointer, thats a Pointer to an Array of S3DVertex2TCoords

Does anybody here have a short sample of how to use that in Delphi? I mean how to access a specific entry of the returned array.

I have always avoided pointer-programming and now i am lost at this point.

Thank you very much in advance
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

Like this:

Code: Select all

....
var
 mb:        IMeshBuffer; // assigned meshbuffer
 mb_arr:  Pointer;
 v:           vector3df;
....
  mb_arr := mb.getVertices;
      case mb.getVertexType of
        EVT_STANDARD:
          v := PArrS3DVertex(mb_arr)[ index ].Pos;
        EVT_2TCOORDS:
          v := PArrS3DVertex2TCoords(mb_arr)[ index ].Vertex.Pos;
        end;
        EVT_TANGENTS:
          v := PArrS3DVertexTangents(mb_arr)[ index ].Vertex.Pos;
      end;
....
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

New version in first post :)
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Can you make a SourceForge or Google Code project for this please? The sendspace links will expire after a while, but people might want to use your project years in the future!
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

bitplane, Okay, not today, but very soon :)
william
Posts: 1
Joined: Mon Feb 07, 2011 4:19 pm

Good JOB, from a Hong Kong User

Post by william »

Nice to see the first Gaming Engineer I felt at lease satisfied with the demo so far. Is that possible add my email william_tseng@yahoo.com, and keep me posted, and I will be willing to be part of the member.

For recent release of 4.0,
I tried to complies under Delphi 7 Enterprise, but there has some code error there, so the header cannot install into packages.
If someone figure this out would be appreciated.
Complier Stops here:
... procedure getAs4Values(out vArray: dVector);
// operators
{$IFNDEF FPC}
class operator Positive(a: vector3df): vector3df;
class operator Negative(a: vector3df): vector3df;....
----------saids procedure/function expected.
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Re: Good JOB, from a Hong Kong User

Post by IrrDelphi »

william wrote:Nice to see the first Gaming Engineer I felt at lease satisfied with the demo so far. Is that possible add my email william_tseng@yahoo.com, and keep me posted, and I will be willing to be part of the member.

For recent release of 4.0,
I tried to complies under Delphi 7 Enterprise, but there has some code error there, so the header cannot install into packages.
If someone figure this out would be appreciated.
Complier Stops here:
... procedure getAs4Values(out vArray: dVector);
// operators
{$IFNDEF FPC}
class operator Positive(a: vector3df): vector3df;
class operator Negative(a: vector3df): vector3df;....
----------saids procedure/function expected.
Thanks :). But i some do not understood about mail.. Minimal required version is Delphi 2005 (Turbo Delphi recommended). Delphi 7 not support "class operator" and etc.
dbyoung
Posts: 2
Joined: Thu Mar 11, 2010 1:14 am

Thank IrrDelphi

Post by dbyoung »

gree bitplane
hope quick
thank IrrDelphi!
IrrDelphi
Posts: 32
Joined: Tue Oct 13, 2009 10:59 am

Post by IrrDelphi »

wlion
Posts: 2
Joined: Thu Apr 14, 2011 8:17 am

Post by wlion »

:D Good Job!! Thanks to IrrDelphi.

But there still bugs in this port !

such as : not suport software rending when added cammera、cannot remove a custom SceneNode & Animator ( didn't implemented)、and also memory leak in Custom SceneNode.

holping for next update!!


About Memory Leak In Custom SceneNode:

May be you forgot to release memory while destroy the custom sceneNode:

Code: Select all

FreeAndNil(VParent.FVParent.FIReferenceCounted);
System.Dispose(VParent.FVParent);
System.Dispose(VParent);
Post Reply