C++Builder with Irrlicht

A forum to store posts deemed exceptionally wise and useful
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

No problem about the delay. I've haden't have any success with BCB and irrlicht on 0.10 or 0.11. I still get that error at the core::stringc template.
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Re: string<T>& operator=(const B* c) give errors w

Post by etcaptor »

etcaptor wrote:Hi all,
in file:

CCSMLoader.cpp

in fuction

code:
--------------------------------------------------------------------------------
void Surface::clear()
{
........
//replace textureName = 0; with
textureName = '/0';
//or textureName = ""
}
--------------------------------------------------------------------------------
That is my solution at now. You also can reove CCSMLoader from irr project if you have not plans to use this format in your game.

So, I start compiling and uploading Irr 11 with BCB6. Check this topic again after few hours
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Irrlicht v.011 for BCB6 was uploaded

Post by etcaptor »

Hi, I uploaded Irrlicht port on:

http://www.etcaptor.bobos.ca/Projects/I ... BCB6.part1
http://www.etcaptor.bobos.ca/Projects/I ... BCB6.part2

Seems this hosting not suports big files and rar amd zip extension, so I've split file.

Rename Irr011BCB6.part1 to Irr011BCB6.part1.rar
and Irr011BCB6.part2 to Irr011BCB6.part2.rar

after downloading
Last edited by etcaptor on Fri Aug 12, 2005 12:18 am, edited 1 time in total.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

Ok the URL of part 2 is wrong but I understood downloading the file Irr011BCB6.part2 instead :). I'm, downloading it now.. it goes slow..
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

Ok I got it to work nicely!
With the include files and your dll it works completely.
But with my own compiled dll directx has a very short view distance?
I used the latests version of the dx9 sdk, but didn't compile including dx8.
Why is this view distance so short??
setfarvalue and all won't make any influence, same for lightning and fog it won't diffrer.
EDIT: Ok so I tried using this instead of 0.09 in my somewhat big project.
At runtime it sais: Error can't find entrypoint for createdevice in IRRLICHT.dll.
I do link against irrlich.lib and irrlidht.dll is in the folder.
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Maybe I not understood right... Have you run irr011BCB6 with dx9?
I can't. It's work for me under Opengl and DX8.

It's strange, because for example irr09BCB6 stop working under DX9, when my PC was upgraded. The only one version of IrrBCB that now works with dx9 is old NX version. But only on this PC.
But with my own compiled dll directx has a very short view distance?
I used the latests version of the dx9 sdk, but didn't compile including dx8.
I thinks that this problem is related with dx lib files. On my PC I have installed Microsoft DirectX 9.0 SDK (Summer 2004). So, you must use your dx lib files. See this part again:

Microsoft lib file is created as COFF library, whereas Borland linker works with OMF library files, so:
- Use COFF to OMF Converter located on C++Builder/bin directory like:

coff2omf.exe d3dx9.lib d3dx9bor.lib

- Change the name of d3dx9.lib original file and the rename d3dx9bor.lib to d3dx9r.lib

- Use Borland Import lib tool located on C++Builder/bin directory like:

/implib.exe/ implib d3dx9.lib d3dx9d.dll
After that just copy these lib files to lib\CBUilder6 folder and recompile engine.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

I indeed used directx9. Not 8 since I didn't halo all header files for dx 8.
Like dx8dcore.h isn't in the dx sdk anymore.
I did that coff2omf stuff, I will try with an older direct x sdk now then.
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

It works now!! It's awesme man!
EDIT: DirectX still gives an error. Maybe I have to do some parameter to compile direct x libaries and dll's? I assume I need them?
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Only this was added by me in IrrConfig.h, to get BCB with Irrlicht.

Code: Select all

#if (_MSC_VER < 1300 && !defined(__GNUC__) && !defined(__BCPLUSPLUS__)) 
#undef _IRR_COMPILE_WITH_DIRECTX_9_
#pragma message("Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.")
#endif

Code: Select all

&&!defined(__BCPLUSPLUS__)
With my old PC and DirecX SDK this was issue for DX9, but now it's not working for me.

If you have any idea or you get any solution with DX9, please tell us. When this line is adde I can see that Irrlicht.dll increases by size... I will make some DX9 attempts too.


.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

I also get the following error.. dunnoif you get it too? fixed it maybe?
I get it at runtime.
"sqrt: domain expection error".
I remember I got it at previous versions after updating to smooth fps cam.
And the camera in irr11 is smooth already, so that problem might be around there?

Thanks,
- Myth
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Do you use

Code: Select all

#include <float.h>
  _control87((_control87(0, 0) | ~0011), MCW_EM);
before CreateDevice fuction?
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Myth
Posts: 81
Joined: Wed Apr 13, 2005 5:48 pm

Post by Myth »

Yes. If I leave it out I'll get the floating point division by zero error when switching to FP cam.
JOIN MY (100mbs 2x 3GHZ CPU) IRRLICHT FORUMS
http://irrlicht.halo4you.com/forums/
For all your programming quesitons and irrlicht ones!.

My fan site: http://www.halo-center.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

OK, try this in your App:

Code: Select all

#include <bcbmath.h>
I wrote this file to avoid this kind of problems.
You can find this file in Irrlicht\include and include directory.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

BCB6 for Irrlicht v.012.0

Post by etcaptor »

Sources for compiling of BCB6 with Irr v.0.12 are ready.

Here is a link:

http://www.etcaptor.bobos.ca/Projects/I ... 12BCB6.zi_

rename file like Irr012BCB6.zip after downloading.

In zip file are only changed sources for BCB6. I've not tested it with my current projects at now, so if you have any problems or errors, post me here please.

Also BCB5 works with Irrlicht too and because comes with free borland compiler can be used with Irrlicht. If anyone interests from Irrlicht with BCB5, can post me here.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Bazzilic
Posts: 21
Joined: Mon Jun 20, 2005 6:44 pm
Location: Moscow, Russia

Post by Bazzilic »

etcaptor, that's great! thanks a lot! And, i think you should tell Niko to include these changes into official IrrLicht releases!
Sincerely yours, Bazzilic
Post Reply