I want to import an external fbx file to a stand alone unity project - unity3d

Hello how can I import an fbx file to a unity build project without using unity engine.so I can access the new fbx file from the exe that I have built.

Use this link It will work for sure. It can handle all formats like fbx, obj, glb, gltf etc.

Related

I want to connect excel and unity

i want to connect Excel or Google Sheet to Unity. I want to extract values from them and apply them directly from Unity. I already tried this, but failed my all try. if you find many ways, tell all of them to me
I make google sheet and import sheet read unitypackage. but didn't work
In order to use a spreadsheet file's contents in Unity you need to:
Save the Excel file as a CSV file by going to File > Save As and
selecting the CSV format in the Save As dialog box.
Import the CSV file into Unity by going to Assets > Import Package > Custom Package and selecting the CSV file in the Import Package dialog box.
Use a plugin or script to read the CSV file in Unity. There are
several plugins and scripts available that can help you read CSV
files in Unity. For example, you can use the EasyCSV plugin, which
can be found on the Unity Asset Store.
Once you have imported the CSV file and are able to read it in
Unity, you can access the data in the file and use it in your game.

Conversion from USDZ file to glTF file

I am currently trying to work with AR in android but I have been given models in .usdz format. So far I have been looking for a way to convert this file into one that works with android (.fbx .obj .gltf), preferably being .gltf.
Can someone tell me if there is some support to this kind of conversion?
From what I have researched there is a support to convert files the other way around, meaning from .obj .fbx to .unsz.
Updated: May 10, 2022.
Now USDZ to glTF conversion is possible
At first, you need to install Autodesk Maya 2020 | 2022 | 2023 with Maya USD plug-in.
Then unzip a USDZ zero-compressed archive to get a binary USDC (sometimes ascii USDA) file format and a set of textures. You need to import USDC into Maya. And if you need you can edit those PNG or JPG textures.
Unzipping a USDZ file in macOS
In macOS Finder change the suffix of USDZ file to ZIP.
Uncompress ZIP file using Archive_Utility.app or RAR_Extractor.app.
In Autodesk Maya (with pre-installed USD plugin) import USDC model.
Edit USDC model.
Use Babylon exporter to produce a glTF format.
Recording this for posterity.
You can convert a USDZ file to GLB easily through the following steps.
Open said USDZ file in XCode.
File -> Export... , select Digital Asset Exchange (DAE)
From here you can choose any other tool like https://products.aspose.app/3d/conversion/dae-to-glb or https://github.com/KhronosGroup/COLLADA2GLTF (it's just much easier to find DAE to GLB convertors.)
Voila. However, do note that while on iOS quick look obeys your pivot point origin, but on Android Scene Viewer does not.

Unity3D problems with FBX models

I am currently trying to make a game in Unity but have encountered a problem that I've tried to solve for a couple of hours without success.
I've downloaded a package from the Asset Store with a foundation to a game. In this downloaded project the models used for the game is stored in one .FBX file which contains all the individual models. The creator of this package has a method for "re-skinning" these models, where he says that one should open the .FBX in 3DS Max, attach your new model to the old, and then remove the old model.
I've done a character in MagicaVoxel which I then export as an .OBJ and import it to 3DS Max and follow his instructions. But when I export the new .FBX with my new model and test it with Unity the model is super tiny and the colors are wrong. This is especially weird because all the other models are perfectly fine.
Have tried numerous ways, but since I'm new at both Unity, MagicaVoxel and 3DS Max I haven't the skill to solve this problem myself.
Thanks in advance!
Rasmus

Is there any way to import solidworks files into unity as assets?

I'm attempting to program a simple chess game using the unity game engine. However, I can't work out how to import the assets that I've created in Solidworks into Unity.
Is it possible to do?
SolidWorks files tend to describe parametric geometry, such as NURBs, but most game engines prefer to work with raw polygons.
Unity has direct support for the following model formats: FBX, OBJ, DAE, 3DS.
SolidWorks can export to STL format, which other programs should be able to convert to OBJ, DAE, and/or FBX. Recommending a specific tool is beyond the scope of Stack Overflow, but I know that such tools exist. I recommend searching terms such as "stl to obj conversion".
These sorts of headaches are fairly common with 3D assets, since so many programs use customized file formats.
Also with 3DS studio max, you can directly open Solidwork files and then export as them as .fbx (you need to have Solidworks installed in the same machine as 3DS Max).
about SolidWorks (SLDPRT, SLDASM) Files:
http://help.autodesk.com/cloudhelp/2015/ENU/3DSMax/files/GUID-861F1B25-0F1B-4E79-A660-821F4CD2175B.htm
Other free tool for converting 3D files: (can save as .obj, which unity reads)
MeshLab
http://meshlab.sourceforge.net/
*Update for 2018:
Unity has partnered with this CAD importer company, and its available to purchase from: https://unity3d.com/pixyz
They support pretty much all the available CAD formats, including SolidWorks
full importer list at https://www.pixyz-software.com/plugin/
Just for reference, since Solidworks 2019 it is not necessary to use any AddIn/3rd Party Plugin. It is supported out of the box: https://help.solidworks.com/2019/english/whatsnew/t_export_using_extended_reality.htm
the "XR exporter" in SOLIDWORKS will allow you to export the model with some additional content (animation, appearances, metadata) to the GLTF / GLB fileformat and using the GLTF importer for unity (should be free) you're done.

How to load a 3d model from URL in unity?

What is the best way to load a 3d model from a URL inside of unity at runtime. I have tried this obj importer
http://wiki.unity3d.com/index.php?title=ObjImporter
But the mesh in not imported properly. What other options exist? Assetbundle needs a pro version and even that won't solve as I need to load a 3d model from url. Any suggestions?
The way to go would be asset bundles. They are Unity's (proprietary) way to load prepackaged, compressed assets from a file or an URL. All asset bundles must be prepared and built in Unity Editor.
If you need a more general approach which loads a raw file format like fbx, obj, 3ds, collada, et cetera, you should use the Assimp library. Assimp library is written in C++ but there is a wrapper for C#.NET here.
There are also wrappers for Unity like this Unity Assimp being free but quite outdated. The Asset Store though is packed with format specific importers including this free OBJ importer.
2021 update
Unity now also has Addressables which are an evolution of the aforementioned Asset Bundles. In a sentence, Addressables are memory managed, asynchronously loadable resources that can be loaded from local or remote end points.
There are a couple of libraries available to load 3d model from a URL in Unity.
These are the best two libraries to load the model from remote location at runtime.
Asynchronous Importer and run-time Loader for Unity
Runtime OBJ Importer
Asynchronous Importer and run-time Loader for Unity is quite a useful tool to import obj files from a remote location with texture and materials. where the Runtime OBJ Importer might miss the texture/material of the model.
Demos:
https://github.com/codemaker2015/unity3d-runtime-model-importer
https://github.com/codemaker2015/Runtime-OBJ-Importer-Demo