3D World Studio loader now w/Terrain splatting (Irrlicht1.5)

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

whoa Tireswing! this is some amazing work you've achieved! 3dws is one of the most powerful level editors-lightmappers out there!
As someone mentioned above, you could still export from 3dws to b3d and load into Irrlicht, but it's also great to have the chance of loading the file directly. Someone had written a similar loader for the previous Cshop version, which then got merged into the source. Let's hope this becomes another file format supported by Irrlicht. Gonna give it a look right now and check a bit about collision and stuff.

many thanks! ;)

Regards,
Alvaro
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

mmm, didn't run for me, and couldn't get the source to compile :(

Will post the error message later.
tireswing
Posts: 6
Joined: Wed Aug 29, 2007 3:19 pm

Post by tireswing »

Sorry, I've been away for a while so I wasn't checking this thread. Did you ever get it to run? If not, if you post the error message, I'll try to get it figured out.

Joe
Eagle
Posts: 20
Joined: Tue Nov 27, 2007 7:50 pm
Location: USA
Contact:

Post by Eagle »

This is very cool stuff guys! I'm so glad I found this place~
Any luck with the splating import?

always,
Vickie ;)
tireswing
Posts: 6
Joined: Wed Aug 29, 2007 3:19 pm

Post by tireswing »

Don't know if anyone still uses 3D World Studio, but I started a new project, so I updated my loader for Irrlicht 1.5. It now supports importing terrain layers using texture splatting on DX9 or OpenGL. For all other drivers, it still uses the base layer and light map only.
Arcoroc
Posts: 51
Joined: Wed Oct 01, 2008 11:40 pm
Location: Canada

Post by Arcoroc »

Sounds great, will give it a try.
Thanks for sharing.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

wow its cool!
i guess im gonna use this to my project ^^
thanks
Image
Image
syntaxcrysis
Posts: 2
Joined: Sat Aug 15, 2009 8:56 am

Hello

Post by syntaxcrysis »

Hi, I could really need some help with compiling this source if anyone feels like helping.
When I try to compile this code in Vs2005 i get the following errors;

Code: Select all

[b]Error	1	error LNK2019: unresolved external symbol "public: virtual __thiscall C3DWScene::~C3DWScene(void)" (??1C3DWScene@@UAE@XZ) referenced in function _main	3DWS.obj	[/b]

[b]Error	2	error LNK2019: unresolved external symbol "public: bool __thiscall C3DWScene::load(class irr::IrrlichtDevice *,char *,bool,bool,char *,char *)" (?load@C3DWScene@@QAE_NPAVIrrlichtDevice@irr@@PAD_N211@Z) referenced in function _main	3DWS.obj	[/b]

[b]Error	3	error LNK2019: unresolved external symbol "public: __thiscall C3DWScene::C3DWScene(void)" (??0C3DWScene@@QAE@XZ) referenced in function _main	3DWS.obj	[/b]

[b]Error	4	fatal error LNK1120: 3 unresolved externals	G:\dev\3DWS\3DWS\Debug\3DWS.exe	1	[/b]
And if i instead try to use Dev-C++ i get these errors;

Code: Select all

[b]20 G:\dev\3FWSLoader\src\main.cpp In file included from G:\dev\3FWSLoader\src\main.cpp 

67:7 G:\dev\3FWSLoader\src\3DWScene.h [Warning] no newline at end of file 

  [Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverE' 

  [Linker error] undefined reference to `C3DWScene::C3DWScene()' 

  [Linker error] undefined reference to `C3DWScene::load(irr::IrrlichtDevice*, char*, bool, bool, char*, char*)' 

  [Linker error] undefined reference to `C3DWScene::~C3DWScene()' 

  [Linker error] undefined reference to `C3DWScene::~C3DWScene()' 

67:7 G:\dev\3FWSLoader\src\3DWScene.h ld returned 1 exit status [/b]
I would appreciate it ALOT if somone could help me, cheers!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need to include the obj files from the loader into your project. Either link them into the Irrlicht.dll, or into your app. You just included the headers, that's not enough.
syntaxcrysis
Posts: 2
Joined: Sat Aug 15, 2009 8:56 am

Post by syntaxcrysis »

hybrid wrote:You need to include the obj files from the loader into your project. Either link them into the Irrlicht.dll, or into your app. You just included the headers, that's not enough.
Thanks for the quick answer.
But the loader source did not come with any obj files, so i cant even compile the original loader source.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you have to compile the cpp files into obj files, thought you already suceeded with that...
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

Will this work with 1.7?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Why can't you simply test it, instead fo *always* writing these dumb, silly 'will this work' posts? Man :evil:
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

How does this load entities from 3D World Studio? Does it place them as empty scene nodes? Or do I have to load a point entity list myself?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
leebojammin
Posts: 16
Joined: Thu Jun 15, 2006 8:45 pm

need something open source && free

Post by leebojammin »

3DModelerMan wrote:How does this load entities from 3D World Studio? Does it place them as empty scene nodes? Or do I have to load a point entity list myself?
Its all moot to me, since I can't really afford to buy this thing atm, so ill have to use something else that has a 'free' license since im not leet enough ( I doubt I'm alone there).

Does anything even exist for irrlicht atm, that combines some very nice projects ive seen here so far:

paging code with splatting ( amazingly useful and thx for it )
entity placement

That would easy be enough to get me started,and if I missed something or there is a easy fix please dont be shy. It would be nice to use irredit I suppose , but its not oss so one can't access the source ( unless you're somewhat rich of course ) to change anything ,so a non viable option for most of us I presume, but correct me if something has changed.

I suppose it wouldn't be horribly difficult to create something,but I wanted to ask before reinventing.

thx
L.
Post Reply