Sign in to follow this  
deleted

Unity Import a game in an engine

Recommended Posts

Hi,

I have been working, with a friend of mine, on a C++ project for a year now.

When we started, we didn't know what rendering engine we wanted to use.
That's why we have left the graphic part aside so far.
(Actually, we are using a very simple Ogre3D rendering code. Good enough for us to test our game)

We are realising that using a game engine like Unity would probably help us to achieve better graphics.

Question 1

> What do you think about using Unity (or any game engine) ONLY for its graphics?
First, I didn't really like the idea (Ogre seems sufficient for this kind of task)
But after thinking about it, I have to admit that this feature alone is already a huge time saver for indie developers (you don't have to understand the 3D rendering theory)

Question 2

I saw Unity only accepts JS and C# scripts.
Our project is written in C++.
We already have plenty of classes and files, and we do not want to start over...
Is this C# thing a limitation for us?

> How hard would it be to convert/import our game in an engine like Unity?
(We would like to keep it like it is, and only throw the Ogre3D part away)


Thanks in advance, and happy new year from France Edited by deleted

Share this post


Link to post
Share on other sites

I have never done anything like this before, but I think you are going to have to change nearly all your code to work with C#. The languages themselves are fairly similar but you may be importing libraries that aren't a part of C#.

Also there is a large component of a Unity project that isn't in code that you may have to remove any code you wrote for those things and redo it on Unity's visual side. This includes placement of 3D objects in your world, light sources, sound sources, sky boxes and various properties. (I'm not completely sure about this but even if you don't have to remove your old code for these things you would want to anyway because that's one of the main advantages of Unity)

 

Depending on how much you have done than it may be more trouble than it's worth to move over to Unity, unless you are facing specific issues with Ogre. If you have written less than 3000 or so lines of code than  it won't be too much trouble to move to Unity or start over, but any more and this becomes a huge task.

 

Good luck

Share this post


Link to post
Share on other sites

Personally I prefer something like Ogre to Unity just because I like the freedom and pure coding side of it...just feel like I have more control. Also unless you purchase the full version you won't have all the features that you would find and are maybe already using in Ogre. Unity has its pros like its graphical editor and animation system but since you've already started with Ogre I'd stick with it. Maybe try Unity on your next project and decide if it's for you?

 

Graphics wise Ogre can do just as well as Unity too, you just need to write the shaders to achieve that.

 

Unity can do C++ but you might need to purchase the full version (I might be wrong here it's been a while since I looked at it).

 

And at the end of the day you'll learn and understand things alot more using Ogre because you can dig through the engine and see whats happening. 

Share this post


Link to post
Share on other sites
Also there is a large component of a Unity project that isn't in code that you may have to remove any code you wrote for those things and redo it on Unity's visual side. This includes placement of 3D objects in your world, light sources, sound sources, sky boxes and various properties

Actually, our worlds are randomly generated.
We do not need to place lots of objects or lights manually. So the Unity level editor might not be that helpful for us.

And at the end of the day you'll learn and understand things alot more using Ogre because you can dig through the engine and see whats happening.
Sure, but still we fear that Unity would do it better than us.
We agree with the fact that Unity does not necessarily have better graphics than Ogre.

But we are wondering if it is worth the effort.
Ogre is great, but perhaps it offers too much "control" for us, 3D newbies.
Is it possible to obtain nices results with Ogre, while keeping it simple? Or do we have to understand much more things than someone who uses Unity does? Edited by deleted

Share this post


Link to post
Share on other sites

As minibutmany stated, if you've already coded a fair amount of the game then you will be spending alot of time not only merging your application into Unity, but also learning Unity and C#. If you feel that the time it will take to do all that is worth the outcome then by all means use Unity.

 

And as I said earlier, unless you buy the pro version of Unity then you won't have all the "pretty" things it offers such as realtime shadows or render targets. See here.

 

Also, Ogre has a pretty good community that are often happy to help. 

Edited by Nyssa

Share this post


Link to post
Share on other sites

Heya,

This is a good question smile.png I'm actually doing the same thing right now. Basically I had been making a game with a C++ 2.5d game engine and now I am porting it to Unity for a couple reasons. The main reason is so that we can easily publish the game to the OUYA indie game store since they have been working with Unity and will have a 1 button publish functionality. The other reason is, as you've already point out, the graphics. I am finding that it is way less code to do identical things, but that I have to pretty much manually rewrite the game. Luckily I was only about 2 months into the project, you can see it here:

 

http://www.gamedev.net/classifieds/item/1419-lfm-25d-space-rpg/

 

But, I am getting close to finish porting it and it is already much better and manageable code wise. For example creating 50 randomly generated asteroids in code is as simple as making a prefab from the model and doing pretty much the same thing in a C# script, The GUI systems / menu's I managed to recreate without buying any of the GUI packages (NGUI, EZGUI, etc) from the Unity asset store all from a single script of only 400 lines of code compared with about 1000 lines of code from my C++ GUI class of the other game engine.

 

If you've been working on it for a year, then maybe it is not worth porting, and just finishing your current game and then starting your next game in Unity. You can get a better idea by maybe doing a quick and dirty prototype in Unity and then ask yourself how much longer it would take to port the full game.

Edited by Rorakin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Announcements

  • Forum Statistics

    • Total Topics
      628346
    • Total Posts
      2982201
  • Similar Content

    • By koto
      Hello,

      I'm developing a roguelike game. Currently it's in a playable state and I think it's a high time to show it and hopefully get some feedback.

      The game has following features:
      - turn based
      - procedurally generated levels
      - tons of loot
      - spells system
      - trading system
      - some quests
      - some limited crafting
      - door/key/lever mechanics
      - quite a lot of different (look/behaviour) monsters

      Trailer:
      Demo: http://kotogames.com/wp-content/uploads/2017/11/OuaD_demo.zip
      Regards,
      Tom
       
    • By Afambus
      Hello,
      I have a full experienced team that looking for a composer and another 3d designer, im expecting as much from you there are other people in this server that can help you we have a determined team, we have done many things in our game there is more information in the discord about everyone and there skills there region and about the game, if you join the discord pm asap
      https://discord.gg/b2teN3m
    • By BAG Labs
      Mobile SoS

      Platform: Android
      Genre: Board
      Link: Google Play
       
      This games sharpen memory and test your strategies to place S-O-S pattern within time limit and serve 3 difficulties as Easy, Normal, and Hard.

      Goals of the game is to put S-O-S words in patterns (Horizontal, Vertical, and Diagonal) alternately with enemy.
       
      Features:
      Single Player Multiplayer Achievements Leaderboards  
       
      Screenshot:

       

       

       
      Link: Google Play
       
      Please help us improve this game with review
    • By abarnes
      Hello!
      I am a game development student in my second year of a three year program and I would like to start building my portfolio. I was thinking of creating some games to show what I can do to potential employers since I wont have any work related experience when I graduate. But as I'm sure you all know there are tons of ways to approach developing/designing a game and I'm curious if anyone had any insight as to any "standards" that come with this? Is it okay to use game engines like Unity, Unreal, Game Maker etc? Or would it be better to make a game from scratch to better show case your skills? Any and all advice will be greatly appreciated!
    • By Hilster
      Hello 2D Artists,
      I've started making a 2D Puzzle Adventure game for mobile and I'm looking for someone who would want in on creating assets for the game. The core of the programming is pretty much complete, you can walk within the grid laid out and push boxes, when there is an object on top of a pressure pad it will activate the linked objects or if there is one object with multiple linked pressure pads it requires you to activate all points for the object to become active. 

      The level iteration for the game is quick and simple, a Photoshop file that is made of individual pixels that represents objects is put into the game and it creates the level out of those pixels with the assigned objects.
      The objects that need sprites created so far is the character, box, pressure pad, door, trap door, the walls, the stairs and the tiled background.
      I intend to add more objects so the amount I'd like to add will be extended.
      My motivations for posting here is to have something that looks nice to be able to display on my portfolio, so if you're looking for a working game that you can place your art into and improve the look of your portfolio then we're in business.
      Please reply with a few past examples of your art below and I'll be in touch!
  • Popular Now