If I wanted to use a Language with other libraries?

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.
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

If I wanted to use a Language with other libraries?

Post by LizardGamer »

I'm wanting to use Bullet physics (using the Bullet wrapper), OpenAL (with cAudio), and a couple other libraries etc. But would I be able to access all of this functionality if I used one of the Irrlicht language bindings?

I know that I would have to bind a language library to irrlicht (like C# with greenya's .NET wrapper), but with that done would I be able to access functions/commands of the other libraries (Bullet, OpenAL etc) using (e.g C#)?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

You'd need wrappers or ports for all those other libraries too I'm afraid

Managed languages like C# don't really like to play with non-managed languages like C++ all too much, but I don't think it'd be too hard to find wrappers or ports for major libraries like bullet
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

Post by LizardGamer »

Radikalizm wrote:You'd need wrappers or ports for all those other libraries too I'm afraid

Managed languages like C# don't really like to play with non-managed languages like C++ all too much, but I don't think it'd be too hard to find wrappers or ports for major libraries like bullet
It looks like I'm learning C++ in the next couple of weeks.

But what would I do if I wanted to just use it as a scripting language, would I still need C# bindings for bullet and openal or something else.

(Plus I either going to be choosing C#, AngelScript or Chaiscript for scripting in my game)
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Well no, of course not, a scripting system uses functions you exposed from your engine/game yourself so it does not connect directly with any other libraries you're using

I've looked into using C# for scripting in my engine too, and I considered using it for a while, but I decided to use python in the end
zester
Competition winner
Posts: 52
Joined: Sun May 01, 2011 6:50 am

Post by zester »

I've used every language know to man, and personally I have found c++ to be the easiest to
use. I think python is far more complex than c++. I would go with C++ and if you really need
in game scripting http://code.google.com/p/zester/wiki/Lua_C it doesn't get easy'r than that.
But honestly most games don't even need scripting.
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

Post by LizardGamer »

zester wrote:But honestly most games don't even need scripting.
But really, having a scripting language makes game production easier.
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

zester wrote:I've used every language know to man
That would be one huge accomplishment if that were true, here's a wikipedia list of all programming languages excluding some dialects, you actually took the time to learn them all? :D
zester
Competition winner
Posts: 52
Joined: Sun May 01, 2011 6:50 am

Post by zester »

Radikalizm wrote:
zester wrote:I've used every language know to man
That would be one huge accomplishment if that were true, here's a wikipedia list of all programming languages excluding some dialects, you actually took the time to learn them all? :D
Ok funny guy you know what I mean!!! Lol
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

zester wrote:
Radikalizm wrote:
zester wrote:I've used every language know to man
That would be one huge accomplishment if that were true, here's a wikipedia list of all programming languages excluding some dialects, you actually took the time to learn them all? :D
Ok funny guy you know what I mean!!! Lol
I know ;) Just couldn't let the opportunity go :D

I have to disagree with you on C++ being the easiest to work with in my experience though, although right now it is the language I'm most comfortable in, managed languages like C# and Java are in my opinion still a lot easier, and I'd assume this would be even more true for inexperienced people since you don't have to worry about tons of other things besides your program's functionality
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

Post by LizardGamer »

Radikalizm wrote:
zester wrote:
Radikalizm wrote: That would be one huge accomplishment if that were true, here's a wikipedia list of all programming languages excluding some dialects, you actually took the time to learn them all? :D
Ok funny guy you know what I mean!!! Lol
I know ;) Just couldn't let the opportunity go :D

I have to disagree with you on C++ being the easiest to work with in my experience though, although right now it is the language I'm most comfortable in, managed languages like C# and Java are in my opinion still a lot easier, and I'd assume this would be even more true for inexperienced people since you don't have to worry about tons of other things besides your program's functionality
Well, C++ looks good and I think I might be good with it (I'm not sure because it is a big language, and how long it takes to learn).

Java looks really easy (maybe more for me, but not sure about how slow it is, becuase I want my games to be fast).

Lua, AngelScript, Chia (or Chai)Script looks really easy (which of course would be faster than Java)

I not truely sure what I want to learn as a main programming language (or as a scripting language)

But Java, C# or Lua might sound good as a primary language.
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

C++ will require some time to learn, the problem is that there are a lot of concepts (like memory management, correct pointer usage, etc.) you need to learn which actually require you to already now about some other programming concepts
I'm not saying it's not possible to learn C++ directly from the start, I'm just saying that it's probably going to be rather frustrating since you'll have to learn the basics and the more advanced stuff at the same time

If it's purely for irrlicht that you need a language I'd go for C# since the .NET wrappers available now are the most up-to-date of all wrappers (the Java wrapper is severely outdated for example)

Don't worry about speed too much, especially not when you're just setting your first steps in game programming, you should start worrying about it when you need to do more low-level stuff, and even there it doesn't really matter that much


And btw, Lua is a scripting language and is not suited as a main language (unless you're a full-time scripter of course)
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

Post by LizardGamer »

Radikalizm wrote:C++ will require some time to learn, the problem is that there are a lot of concepts (like memory management, correct pointer usage, etc.) you need to learn which actually require you to already now about some other programming concepts
I'm not saying it's not possible to learn C++ directly from the start, I'm just saying that it's probably going to be rather frustrating since you'll have to learn the basics and the more advanced stuff at the same time

If it's purely for irrlicht that you need a language I'd go for C# since the .NET wrappers available now are the most up-to-date of all wrappers (the Java wrapper is severely outdated for example)

Don't worry about speed too much, especially not when you're just setting your first steps in game programming, you should start worrying about it when you need to do more low-level stuff, and even there it doesn't really matter that much


And btw, Lua is a scripting language and is not suited as a main language (unless you're a full-time scripter of course)
Do you know if C# mono works with greenya's .net wrapper?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

LizardGamer wrote:
Radikalizm wrote:C++ will require some time to learn, the problem is that there are a lot of concepts (like memory management, correct pointer usage, etc.) you need to learn which actually require you to already now about some other programming concepts
I'm not saying it's not possible to learn C++ directly from the start, I'm just saying that it's probably going to be rather frustrating since you'll have to learn the basics and the more advanced stuff at the same time

If it's purely for irrlicht that you need a language I'd go for C# since the .NET wrappers available now are the most up-to-date of all wrappers (the Java wrapper is severely outdated for example)

Don't worry about speed too much, especially not when you're just setting your first steps in game programming, you should start worrying about it when you need to do more low-level stuff, and even there it doesn't really matter that much


And btw, Lua is a scripting language and is not suited as a main language (unless you're a full-time scripter of course)
Do you know if C# mono works with greenya's .net wrapper?
I haven't worked with greenya's wrapper so I couldn't say for sure, but unless he has added some windows dependencies in there and as long as he wrapped all functionality for a linux device (since I assume you're working with linux) I wouldn't see why not
LizardGamer
Posts: 83
Joined: Fri May 28, 2010 8:59 am
Location: Perth, Australia

Post by LizardGamer »

I wish the other people make the other language wrappers would continue, because I only have one problem with C# which is that there are 2 different groups making C# (Microsoft for windows and Mono for everyplatform) and I'm not sure but I think this can cause compatibility issues with ppl with the Microsoft one(Because of the differences).

And irrlicht is a big community and the language wrappers are just dying whilst the Ogre community is big and there language wrappers are still going.

(Since I think that the Lime wrapper one is the only one alive for the irrlicht community)
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Post by hendu »

Just a note, if you release your game for linux using mono, you will have a hard time getting it anywhere. MS tech is not universally loved.
Post Reply