Jump to content

  • Log In with Google      Sign In   
  • Create Account


Level Editor - Reinventing the Wheel


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 NiteLordz   Members   -  Reputation: 369

Like
0Likes
Like

Posted 22 October 2012 - 08:38 AM

so i have my engine running nice and smoothly. It runs on Win32, Android and iOS, and its all one code base. I have the simple applications and what not (static and skinned model loading, deferred lighting, etc... )

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
Code makes the man

Sponsor:

#2 kunos   Crossbones+   -  Reputation: 2203

Like
0Likes
Like

Posted 22 October 2012 - 08:48 AM

there are already threads about this topic around.. my answer is always the same:

C# with your C++ engine exposed either through CLI/C++ (or whatever the .NET variant of C++ is called) dll or through simple C dll.
Stefano Casillo
Lead Programmer
TWITTER: @KunosStefano
AssettoCorsa - netKar PRO - Kunos Simulazioni

#3 NiteLordz   Members   -  Reputation: 369

Like
0Likes
Like

Posted 22 October 2012 - 09:03 AM

Sorry about posting about the topic again... i will search for them now. I was just hoping to other's experiences, ease of doing this, issues to look out for, etc...
Code makes the man

#4 ColinDuquesnoy   Members   -  Reputation: 1094

Like
0Likes
Like

Posted 22 October 2012 - 10:17 AM

You can either expose your engine to an high level programming language such as C# or Python or you can use gui libraries in c++ (Qt, wxWidgets).

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 Geometrian   Crossbones+   -  Reputation: 1456

Like
0Likes
Like

Posted 22 October 2012 - 01:28 PM

I suggest using python with Qt.

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.

Edited by Geometrian, 22 October 2012 - 01:29 PM.

And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.

#6 NiteLordz   Members   -  Reputation: 369

Like
0Likes
Like

Posted 22 October 2012 - 02:51 PM

Thanks for the info on qt. I will have to investigate it. As for python I already have angel script integrated into my engine. Maybe a change is needed :)

Thanks again
Code makes the man

#7 Kyall   Members   -  Reputation: 287

Like
0Likes
Like

Posted 23 October 2012 - 03:47 AM

You can also link your editor directly to your game some what.

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.
I say Code! You say Build! Code! Build! Code! Build! Can I get a woop-woop? Woop! Woop!

#8 jcabeleira   Members   -  Reputation: 671

Like
0Likes
Like

Posted 24 October 2012 - 09:17 AM

Finding a good GUI library is a pain in the ass, most solutions are just too hacky (multiple languages in the same aplication, etc.) or limited. I've investigated this in the past and found Qt to be the only decent solution. So, just go with Qt for C++, it works perfectly, is flexible and looks good. I've used it extensively in the past to develop a complex level editor so I guarantee you that it's good.

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 ColinDuquesnoy   Members   -  Reputation: 1094

Like
0Likes
Like

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 Krohm   Crossbones+   -  Reputation: 3017

Like
1Likes
Like

Posted 26 October 2012 - 12:49 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. ...

  • 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

I suggest sidestepping the problem completely. Consider using blender as an extremely powerful editor.

#11 Olof Hedman   Crossbones+   -  Reputation: 2716

Like
1Likes
Like

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.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS