A terrain editor w/ gui

A forum to store posts deemed exceptionally wise and useful
Post Reply
Blueman27
Posts: 5
Joined: Sat Nov 21, 2015 1:17 am

A terrain editor w/ gui

Post by Blueman27 »

After searching the web for ages searching for a terrain editor that was free, easy to use, and did not include a bunch of garbage like the unreal editor, I came across a code snippet for a terrain editor on the Irrlicht forums that was rather incomplete and broken. So me being me I decided to build on it and add a gui the result of this can be found here https://github.com/nking1232/Irrlicht-Terrain-Editor . Enjoy and well as of now I don't plan on doing a whole lot more with it but I might change my mind and fix that garbled mass of spaghetti code.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: A terrain editor w/ gui

Post by Cube_ »

You haven't added a LICENSE file, what license applies? (the default is "all rights reserved, you can look but you can't touch")
"this is not the bottleneck you are looking for"
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: A terrain editor w/ gui

Post by CuteAlien »

Just a few hints:
basemap.bmp and brush.png are missing. Without them it crashes.
Pointers like "brush" should be initialized with 0 - otherwise they contain random values (really all pointers should be initialized to 0 always, there's rarely a situation in which that is not a good idea).
Once they are initalized a function like generateBrush can check for example first if brush exists - otherwise not drop it.
Function setUpDevice is not used.

Couldn't test much because I get crashes - probably would have to create brush.png (i just re-coded it to avoid crashes) and maybe other bitmaps. Maybe you could add some example images for those to the repository.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Blueman27
Posts: 5
Joined: Sat Nov 21, 2015 1:17 am

Re: A terrain editor w/ gui

Post by Blueman27 »

Sorry forgot about that I was kinda rushed when i added that to github. Thanks ^3^

Edit: Brush.png is not technically needed it's just there because the original terrain editing code used it. I might just get rid of it and store brushes entirely in memory from now on.
Post Reply