Another quick tutorial: creating terrain in Blender

A forum to store posts deemed exceptionally wise and useful
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Another quick tutorial: creating terrain in Blender

Post by afecelis »

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. :D

As usual, you'll find the tut in PDF, a template project and the required files in the zip file.

Hope you find it useful. C&C are welcome! :wink:
http://afecelis.gdlib.net/Irrlicht/terrain.zip
Image
Last edited by afecelis on Thu May 18, 2006 2:14 am, edited 2 times in total.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

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. :wink:
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

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! :wink:
The plugin in windows:
Image
So backup your other DX exporters somewhere in your drive and leave only ben omari's!
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

Hmm i tiried making sevral terrains for a blender game but your method ispretty cool

i didnt even know about that smooth falloff button, thanks.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I'm glad you found it useful Omaremad! :D 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. :wink:
KrisVA
Posts: 4
Joined: Sun Jun 11, 2006 4:28 pm
Location: Fredericksburg, VA

Post by KrisVA »

There are great Blender Plugins for this:

Ants Landscape Creator

http://blenderartists.org/forum/showthread?t=34955

MakeHuman(high poly human meshes)

http://www.dedalo-3d.com

Fiber(for grass and hair)

search for this can't remember the Url
Blender Modeller/Animator
BearNanMan
Posts: 1
Joined: Tue Aug 01, 2006 11:27 pm

no need to remove the two original exporters

Post by BearNanMan »

open the directx241 exporter in text view then change the line

Name: 'DirectX(.x)...'

something else, like

Name: 'DirectX241(.x)...'

then save the changes and be sure to hit the <Re-evaluate Scripts> button in the user prefs window under File Paths->Python
wetneb
Posts: 3
Joined: Mon Apr 16, 2007 12:05 pm

Post by wetneb »

The link is dead. Can we get another location ?
Thanks.
mhack
Posts: 38
Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA

Post by mhack »

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

Post by afecelis »

Thanks for the file Mhack! :D I had completely lost it!

I'm mirroring it on the new FTP as well:
http://files.wildspad.com/afecelis/irrl ... errain.zip
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

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!)

Image

I have a question though, can I use this scene in Irrlicht?
Programming Blog: http://www.uberwolf.com
Lekane
Posts: 31
Joined: Thu Jun 01, 2006 7:07 pm

Post by Lekane »

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.
IrrNoob
Posts: 110
Joined: Sun Nov 16, 2008 8:01 pm
Location: Fort Collins, Us

Post by IrrNoob »

when I made a project in dev cpp and compiled the main.cpp file, I got these errors:

Code: Select all

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
Whats going on?
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

It's telling you in plain text what's going on. And your post has nothing to do in this thread.
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

Thanks, cool tutorial
Post Reply