Using Irrlicht in Visual Basic .NET

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Newbie

Using Irrlicht in Visual Basic .NET

Post by Newbie »

Simple question: Is there any way to use Irrlicht in VB.NET? If so, how?

ASP
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Quick Answer: NO.

Reason: Irrlicht is a C++ library and cannot be used in Visual Basic. Period! :P Sorry for the bad news.
________
Gnosticism Advice
Last edited by disanti on Tue Feb 22, 2011 8:07 am, edited 1 time in total.
Celhtar

Post by Celhtar »

Kinda wrong, VB.NET can interface itself with any dll, using the Interop assemblies... but you'll have to write a wrapper
Celhtar

Post by Celhtar »

I meant P/Invoke
Newbie

Post by Newbie »

Yeah, I figured I'd have to write a wrapper. Do you know of any existing ones?

I'm not to good with C\C++, so could you give me an outline of what needs to be done to create a wrapper?

Thanks,
ASP
Guest

Post by Guest »

Oh, and just wanted to thank you guys (girls?) for the quick response. A lot of the forums I frequent will take a couple of weeks to respond, if you get a response at all :)

ASP
codechief
Posts: 15
Joined: Thu Apr 01, 2004 1:15 pm
Location: Canada

Post by codechief »

At this time, it might not be possible to interface with VB.Net and other .Net languges. In future .... only Niko (and a few other determined programmers) know :)
I mean a port to the .Net framework that uses Managed DirectX is needed.
Writing wrappers to the existing will slow Irrlicht down, thereby loosing its edge.

There are a few books that teach game programming (even 3D game programming) with VB but as far as I can tell there is no commericial game engine based on VB....
and that says it all I think :)

cc
soconne
Posts: 87
Joined: Fri Mar 05, 2004 2:00 pm

Post by soconne »

Truevision3D is written for use with VB and is fast as heck. You can also use it with C++, C#, Delphi (i think). So it is possible and will be fast to get Irrlicht working with VB .NET
Newbie

Post by Newbie »

"Writing wrappers to the existing will slow Irrlicht down, thereby loosing its edge."
Will it really make much diffirence? I knew it would slow it down a little, but it shouldn't slow it more than 2-5 FPS at most, should it?

If anyone can offer any advice on how to go about making a wrapper I'd appreciate it, otherwise I guess I'll go buy myself a good C\C++ book and try it myself.

ASP
Celhtar

Post by Celhtar »

Well using p/invoke you won't hae that much slowdown, and the wrapper will be written in vb if you really want it...
though i suggest you to rather use c#, its support for unmanaged code (like irrlicht) is better, due to its support of pointers.

Anyway, if you still want to try, here's a link to get you started : http://www.codeproject.com/dotnet/PInvoke.asp
Post Reply