Level Editor - Reinventing the Wheel
#1 Members - Reputation: 282
Posted 22 October 2012 - 08:38 AM
Now i have a scene structure (xml based) that i code by hand and lay things out. So the next thing i wanted to do was investigate creating a Level Editor which got me thinking. I know that UDK and others are built on top of the underlying engine, this is what i want to do. My engine currently supports split screen multi player using multiple (4) viewports and renders them individually properly.
So my question(s) are
1) what language do they code the level editors in. I know the engines are written primarily in c++, but GUI in c++ is not fun.
2) If i wanted this to only run on windows ( for now but possibly go cross platform ), what would you suggest
Any thoughts are welcome and thanks much
#4 Members - Reputation: 627
Posted 22 October 2012 - 10:17 AM
I suggest using python with Qt. You will have a cross platfrom solution with an easy to use GUI library and, once you have exposed your engine to python, you will be ready to integrate python as a scripting language for your engine!
#5 Members - Reputation: 1031
Posted 22 October 2012 - 01:28 PM
This is actually a good idea. Qt in my experience is the best designed and easiest to use GUI toolkit available. It's also cross-platform. Python is a joy to program in, and ease of use will be very important if you want people to use your engine.I suggest using python with Qt.
Edited by Geometrian, 22 October 2012 - 01:29 PM.
#7 Members - Reputation: 287
Posted 23 October 2012 - 03:47 AM
You send the render from the game via local network connection to your editor that then displays it, and you add some more network interfaces to handle editor commands, zooms, etc. The basic idea is that your engine/game becomes a network client of the editor rather than an integral part of it. I see this as an easier way to get an editor up & going; you don't have to expose your engine to script or higher level language, you just make a network interface layer.
#8 Members - Reputation: 427
Posted 24 October 2012 - 09:17 AM
I don't even see any reason to use Python for this, I believe C++ is the native language for Qt so you'll get less troubles going that way because from what I've heard, Python is supported through wrappers which don't expose the entire API. (If I'm wrong then please someone correct me)
#9 Members - Reputation: 627
Posted 25 October 2012 - 11:38 AM
I don't even see any reason to use Python for this, I believe C++ is the native language for Qt so you'll get less troubles going that way because from what I've heard, Python is supported through wrappers which don't expose the entire API. (If I'm wrong then please someone correct me)
You are true when you say that you can do everything you want using c++ and that qt for python are just wrappers that don't expose the entire API.
I've tried both with c++ and python and just found PyQt was the easiest and quickest way to develop cross platform gui applications. Even if the entire API is not wrapped, the most used modules are wrapped (see the complete list here ). I've never missed anything using this wrapper.
I'm using it at work for internal tools and for personal projects (network tools, persistent build system, game editor,... ).
Also, using python brings you the entire standard python library and other third party modules easily. For example, you can do wonderful things like adding plugins management and scripting to a gui application with only a few lines of code. (This is also possible with c++ but I'm sure it will take you more effort and time)
Edited by renega_666, 25 October 2012 - 11:46 AM.
#10 GDNet+ - Reputation: 1751
Posted 26 October 2012 - 12:49 AM
I suggest sidestepping the problem completely. Consider using blender as an extremely powerful editor.Now i have a scene structure (xml based) that i code by hand and lay things out. So the next thing i wanted to do was investigate creating a Level Editor which got me thinking. ...
- what language do they code the level editors in. I know the engines are written primarily in c++, but GUI in c++ is not fun.
- If i wanted this to only run on windows ( for now but possibly go cross platform ), what would you suggest
#11 Members - Reputation: 1230
Posted 26 October 2012 - 01:44 AM
I suggest sidestepping the problem completely. Consider using blender as an extremely powerful editor.
My suggestion too.
Or a plugin to any other editor your 3D guy(s) like to use.
Writing UI:s is a lot messier then one might think, specially 3d stuff, and you can easily spend more time on this then on your engine.
Also, not having to switch program after making your models is a nice productivity boost, and no need to learn (and invent) a new UI
Edited by Olof Hedman, 26 October 2012 - 01:46 AM.






