Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

3D Data base

Discussion in 'Scripting' started by rimiki, Aug 13, 2015.

  1. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    Hi dears,

    I'm looking to save 3D models into a data base and load them when in need.
    I never did that but we can do it as I know.
    Does any body did it before using mysql or any other database?
    Any solutions?

    Thank you for any suggestions.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Getting models with UVs and normals into Unity at runtime is pretty tricky.

    Any particular reason it has to be a database, and not say, an asset bundle?
     
  3. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    database because maybe it gonna be a web project. Other way you mean just put them in folder then show whatever I want?
    I'm interested to know how I could manage database of 3D object, hope it's possible..
     
  4. Carvuh

    Carvuh

    Joined:
    Mar 25, 2013
    Posts:
    25
    Could you explain how you will be using the database for a web based project? Are you going to be taking external files from other players and loading them into the game? Or are you just trying to think of something that might be easier for you guys to manage? Loading 3D assets from a database, would probably hamper not only database size, but also complexity, as GroZZleR out, loading UV's and normals from a database doesnt sound all that easy, seeing how most of that stuff is stored in the 3D model's file itself. Unless you could find some sort of import settings...

    Anyways, If you are looking for a way to store 3D Models, I would use something like an asset bundle, or something similar.

    I have not looked into this as much as I have done the typing here, but I believe Unity prefabs has their own file extension? You could use YAML to serialize them into a database I suppose.

    http://docs.unity3d.com/Manual/FormatDescription.html
     
  5. rimiki

    rimiki

    Joined:
    Dec 30, 2014
    Posts:
    102
    What is asset bundle? Is it unity file where to put 3D models like resources file or am I wrong? Thank you.
     
  6. Carvuh

    Carvuh

    Joined:
    Mar 25, 2013
    Posts:
    25