Combining 2 wrappers into 1

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Post by hendu »

Radikalizm wrote:
wahagn wrote:OK, but what tells you I want to skip the learning part??
So your plan is to build your big project at the same time you're learning the fundamentals, and you expect to write perfectly clean and stable code, suited for commercial distribution?
Heh, implying commercial code is either clean or stable :)

Bethesda among others would disagree with you.
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Clean and stable code is like working with limits, it's impossible to actually get there but you try to get as close as possible ;)

But I suppose you get my point in my previous post

Btw, just because certain companies make a mess out of their code doesn't mean messy and unstable code is an industry standard
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

serengeor wrote:
You could start by proving yourself and community that you can actually do something and code something on your own. If you need a gui, write one on yourself or find some implementation and make it work with your code, its not going to be easy but it's going to be worth it in the end.

Hey, I did it. And actually it wasn't diffcult at all.

How I did it:

1. I copied some of the dll's ( every dll exept the ones for physics),

I copied some .bi header files ( all .bi files exept the ones for physics)

and the IrrlichtWrapper_source folder from the irrlicht FB wrapper
and placed all those files in the examples_10g folder of Ninfa 3d



2. Then I copied all the files in the media folder from the Irrlicht FB Wrapper to Ninfa 3d's media map


3. I compiled the same GUI example of the FB Irrlicht Wrapper in Ninfa 3d and ... I succeeded

So now I am able to use the GUI functions of the irrlicht FB Wrapper in Ninfa 3d plus I can also use orther Irrlicht FB Wrapper functions if I like (so
I can handle meshes Ninfa 3D style and implent and use Camera's Irrlicht FB Wrapper style, altough I didn't test this kind of stuff yet)




@Serengeor: Does this mean that I have proven myself to the community?? :wink:
Last edited by wahagn on Thu Feb 24, 2011 4:04 pm, edited 2 times in total.
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

wahagn wrote:
serengeor wrote: @Serengeor: Does this mean that I have proven myself to the community?? :wink:
Not yet, If you post a working demo of those wrappers combined and working together than we'll see :)
Nice to see your trying to work on your own 8)
Working on game: Marrbles (Currently stopped).
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

Ok, I uploaded it at megauploud so you and others can test it

BTW: The only examples that shows that the FB Wrapper is intergrated is GUI.bas

BTW2 Oh and, I know I didn't implent the code myself like you asked me but I wanted GUI functions in Ninfa 3D and I got it

Link: http://www.megaupload.com/?d=ATEE0LE0


Edit: Oh and ofcourse you have to install FreeBASIC and a FreeBASIC IDE
to view the code of these .bas and .bi files:
http://www.freebasic.net/index.php/download <- FB
http://fbide.freebasic.net/ <- FB IDE
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

No testers? :(

Maybe because of the fact that you have to download the FB Compiler and IDE to view the source?? :?


Btw: Ofcourse you have to download these things to view the source but you don't need to download these things it if you just want to test some example Ninfa 3D .exe 's and offcousre the .exe of the GUI example I inetergrated from the Irrlicht FB Wrapper into Ninfa 3D
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

wahagn wrote:No testers? :(

Maybe because of the fact that you have to download the FB Compiler and IDE to view the source?? :?


Btw: Ofcourse you have to download these things to view the source but you don't need to download these things it if you just want to test some example Ninfa 3D .exe 's and offcousre the .exe of the GUI example I inetergrated from the Irrlicht FB Wrapper into Ninfa 3D
I guess most of people here code in c++ :)
And I don't think this would work under linux out of the box, would it?
Working on game: Marrbles (Currently stopped).
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

serengeor wrote:
I guess most of people here code in c++ :)
Yes, but they could test the .exe and they can open the .bas file (= FB sourcefile) with Word if they want to

BTW: There are also other .exe files in that package I uploaded wich show Ninfa 3D ( + Newton ) features. Like a little car driving sim, a nice fire sim (particles) , a clouds sim and more ( and offcourse my inetrgrated GUI example : GUI.bas -> GUI.exe)
serengeor wrote: And I don't think this would work under linux out of the box, would it?
FreeBASIC is cross platform so you can install and run it in linux:
http://www.youtube.com/watch?v=henTW2vST3I



Oh and once again the link to the download of Ninfa 3D mixed with Irrlicht FB Wrapper:
http://www.megaupload.com/?d=ATEE0LE0
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

Oh, I taugt Ninfa3D was windows only.
Working on game: Marrbles (Currently stopped).
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

serengeor wrote:Oh, I taugt Ninfa3D was windows only.

I don't think so because it uses Irrlicht, Newton and OpenAL and none of those iare windows only (.. I think)
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

wahagn wrote:
serengeor wrote:Oh, I taugt Ninfa3D was windows only.

I don't think so because it uses Irrlicht, Newton and OpenAL and none of those iare windows only (.. I think)
I think I saw some freebasic wrapper using directx for rendering, tough I don't really remember now nevermind.
Working on game: Marrbles (Currently stopped).
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

I have realised that this doesn't work like I wanted, because I get a lot
of errors if I include both .bi(=FB Header file) files in a .bas(= FB source file) file. so now I think I have to combine both header files into one big header file ... I will reply again when I'm finished doing this
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

wahagn wrote:I have realised that this doesn't work like I wanted, because I get a lot
of errors if I include both .bi(=FB Header file) files in a .bas(= FB source file) file. so now I think I have to combine both header files into one big header file ... I will reply again when I'm finished doing this
Heh, I actually taught something like this would happen, thats why I asked for working sample.

Its not going to be easy I think as both libs need access to device, you should probably be better implementing gui into other wrapper on your own by looking how its done in the other one and adapting it to the first one.

Come to the darkside(c++) and use all the functionality irrlicht has ! :D
Working on game: Marrbles (Currently stopped).
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

I have tried to intergrate GUI into Ninfa 3D but now I'm stuck cause I get like
10 errors, here they are:

http://img7.imageshack.us/f/errorsz.png/


I think this means that Ninfa 3d doesn't know what these things are


For the code in a word file ( the red parts are the code I added to the original) :

http://www.megaupload.com/?d=1C88VEHU
serengeor wrote:
Come to the darkside(c++) and use all the functionality irrlicht has ! :D

No, thanx I'm doing fine in programming heaven... :wink:
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

Well I can't help you with FB code, I haven't ever written anything in FB, tough I think its similar to Visual Basic?

You should try to contact one of the authors of the wrappers and ask him how you should go about this.
Working on game: Marrbles (Currently stopped).
Post Reply