Jump to content
3DXChat Community

is it possible to import objects from blender?


Linny35

Recommended Posts

You cannot upload anything to the game from Blender. It won't work. 

The only file you can upload is .world format. All a .world file is, is object names and coordinances of where they are and how they are oriented.

Here is a sample line of code in a world file:

{"respawn":{"p":[-546.170349,5.85491133,-18.5286922],"r":268.586365},"ambient":[2.0,1.0,0.5,1.5,0.5,0.8,0.5,1.0,1.0,2.0,1.0],"oceanlevel":0.0,"weather":"Night","valuetype":"float","objects":[{"n":"group","objects":[{"n":"BoxCh","p":[-551.333557,6.62109756,-18.686861],"r":[270.0,270.45,0.0],"s":[0.349600166,0.0198717024,0.0775065348],"c":[0.7642106,0.508964539,0.0],"m":"metal_1"},{"n":"Cylinder","p":[-551.87384,5.94020176,-19.1817379],"r":[270.0,270.45,0.0],"s":[0.218497276,0.218510374,1.04880214],"c":[1.0,1.0,1.0],"m":"glass_2"},{"n":"Tube","p":[-551.87384,6.774902,-19.1817379],"r":[270.0,270.45,0.0],"s":[0.2621966,0.2622003,0.0218500532],"c":[1.0,0.666000366,0.0],"m":"metal_1"},{"n":"Tube","p":[-551.87384,6.76411,-19.1817379],"r":[270.0,270.45,0.0],"s":[0.244719,0.244719878,0.0437002219],"c":[1.0,1.0,1.0],"m":"Illum FLAT"},{"n":"Tube","p":[-551.87384,6.93891,-19.1817379],"r":[270.0,270.45,0.0],"s":[0.244719,0.244719878,0.0437001847],"c":[1.0,1.0,1.0],"m":"Illum FLAT"},{"n":"Tube","p":

As you can see this is not a digital asset model, it is more like a text document with instructions for the game.

Hope this clears it up for you.

Link to comment
Share on other sites

  • 1 month later...

When you copied this chunk of text, you didn't include the entire file, this would obviously be the case because the closing brackets and curly brackets are missing. But there is sense to make in this chaos of information. 

The first is the respawn spot and it's the very first and very last set of curly braces in the file. It opens a second set of curly braces with the following arguments:

  • "p" (postion)
  • "r" (rotation")
  • "ambient" which comes with its own set of sub-parameters set in square brackets with 11 comma-separated numbers corresponding to the 11 types of day or nightlight, snow, etc.
  • "oceanlevel"
  • "weather" (I think this should be the user-chosen weather or ambient type)
  • "valuetype" (not sure if this HAS to be set on float)
  • objects (and this is where the whole mumbo-jumbo starts)

Inside objects, you have a parameter named "no" with value "group" and I don't think user have any say in renaming this, so I guess this is where objects that were grouped by a creator would show up. For example, if you made a table with a flat surface and four legs and then you grouped them (five objects grouped into one), this is where the "n" named "group" would play a role.

After that, each object has a name ("n"), a position ("p") with three values for x, y and z coords), an rotation ("r"), a size ("s"), a coordinate or gizmo size ("c"), also with three values, and here I am not sure why they need a coordinate if we already have a position. Perhaps the "c" represents color, but in that case, why would it have three sets of values, right?

Anyways, lastly, a material ("m") which corresponds to a the names 3DX devs gave to their list of materials.

Perhaps, someone can try to make a new and empty file, put a box in it, a simple box, just 1 x 1 x 1, and see what the ".world" file looks like in Notepad, and then rotate the box in a certain way, and see the difference in Notepad again.

Link to comment
Share on other sites

Oh, and I see that the forum devs need to add a non-breaking space between the location and the actual user-given location. Or give it a colon and a space, even better. My location shows as "locationMiami" in one word, LOL.

Edited by Aeliana1999
Link to comment
Share on other sites

8 hours ago, Aeliana1999 said:

("c") also with three values, and here I am not sure why they need a coordinate if we already have a position. Perhaps the "c" represents color, but in that case, why would it have three sets of values, right?

Color coding is split into the corresponding Red, Green and Blue values. 

Black is (0.0,0.0,0.0) while white is (1.0,1.0,1.0).

If a color parameter is x, the number shown is x/255. Example: 64 will be shown as 0.25098039.

Link to comment
Share on other sites

9 hours ago, Aeliana1999 said:

Oh, and I see that the forum devs need to add a non-breaking space between the location and the actual user-given location. Or give it a colon and a space, even better. My location shows as "locationMiami" in one word, LOL.

While devs don't do it (expected to happen within the next 275 years, if planets get properly aligned and if it's not raining) you can add a space yourself, defining your location as ": Miami...", just like I did on mine 😉

Link to comment
Share on other sites

  • 1 month later...

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
×
×
  • Create New...