A terrain editor w/ gui
A terrain editor w/ gui
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.
-
- 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
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"
Re: A terrain editor w/ gui
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: A terrain editor w/ gui
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.
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.