Ok guys, I thought it was about time I wrote a new tut so I decided to try out creating content for Irrlicht with blender. In this case I wanted to give terrain a shot using Ben Omari's latest exporter. This tutorial shows how to create a small terrain in Blender, which may come in handy if you need to set up a a landscape for your level in a quick way.
As usual, you'll find the tut in PDF, a template project and the required files in the zip file.
3 quick notes for windows users:
1. The scripts folder for blender in Windows is usually located at:
C:\Program Files\Blender Foundation\Blender\.blender\scripts
I may have typed it wrong in the tut.
2. The exporter in windows doesn't load with the UI presented in the tutorial but with 2 simple options. Use "export selected". It's either that or I couldn't find the exporter in windows.
3. In windows, you do have to open your X file in DX's Mview and re-save it. Otherwise it will show up without textures.
Extra quick update!
The plugin works the same with interface and everything but you got to get rid of blender's native exporters (DirextX8Exporter.py, and DirectXExporter.py). Otherwise ben omari's won't show up. So make sure you only got omari's "DirectXExporter241.py" in your scripts folder. If you export with this script, you don't need to re-save in Dx's Mview. The model loads ok, textured and everything! yay!
The plugin in windows:
So backup your other DX exporters somewhere in your drive and leave only ben omari's!
I'm glad you found it useful Omaremad! It's a compilation of blender tuts I read here and there, so it's really nothing new but perhaps concisely applied. And, yup, sometimes the simplest ways to do things are the ones we forget, hehehehe.
Just adding to his post, if you goto your terrain and press the Objects Button, then go across the the Particles Button, set a value of 0.001 for Normal and Random, then Increase the Value of particles.. And turn animation into static, change the colour to green and then place another plane with the colour brown underneath that you should end up with the following. (Which I made woot!)
I have a question though, can I use this scene in Irrlicht?
the particles in blender are just path on which the renderer puts billboards polys.... i believe the obj exporter transforms the path into poly too but keep in mind such a scene will have gazillions of thembased on your particles settings.... not really realtime oriented
edit: also, you can enhance that grass by using strand option (this gives you the possibility to vary the particles thickness on the lenght) and a grass texture to vary colors. nb: valid for blender renders, dunno about the obj exporter.
main.cpp:43: error: cannot declare variable `receiver' to be of type `MyEventReceiver'
main.cpp:43: error: because the following virtual functions are abstract:
C:/irrlicht-1.4.2/include/IEventReceiver.h:262: error: virtual bool irr::IEventReceiver::OnEvent(const irr::SEvent&)
main.cpp: In function `int main()':
main.cpp:129: error: invalid conversion from `int' to `const wchar_t*'
main.cpp:129: error: initializing argument 2 of `int swprintf(wchar_t*, const wchar_t*, ...)'
make.exe: *** [main.o] Error 1
Execution terminated