How do you export a project from Blender to Unity? - unity3d

This is what it looks like in blender:
and this is what it looks like after being exported to unity:
The above is what results after only dragging the .blend file into the unity Assets folder, that's all I did. In Blender all the objects have only one Material with a single color or a single texture, so there's no complicated Materials. And in Unity I tried the "Extract Materials" option and it does nothing; and the "Extract Textures" option is greyed out.
I want it to look the same in Blender and Unity. Can someone point me in the right direction? I don't even know what to google anymore.

It's quite easy to recreate that in Unity.
ShaderGraph also has a "Voronoi" Node, which is very similar. Instead of a Color-Ramp (Blender) I sampled a Gradient.
For the fidget popper, I used a HDRP/Lit Shader on a new Material and just set Color, Metallic and Smoothness.

Related

Exporting Blender model in unity project

So I make some basic map in blender and I want to export it in unity project where I can play on it.
but it looks bad really bad, soo how to fix this?
sorry for low quality images.
Make sure your normals are orientated correctly in blender. Unity culls all faces that point away from the camera.
You can do this in blender by using the "Recalculate normals" tool. To make sure all your faces are pointing outward, you can enable visualizations in blender like this:
If you find any of these indicators pointing the wrong way, select this face and use the "Flip Normals" tool to flip any remaining inverted faces.

Importing blender textured objects into unity

I am able to get this particular textured model from a 360 camera in blender. Blender Image
However, how do i get this .obj model into unity? I am only able to get the shaded version of it, not the textured version. Unity Image
When you export the .obj you should have a .mtl which contains the material data and texture mapping. Make sure when importing into unity (and exporting from blender) the file is generated and read.
Check your blender material properties and the individual texture properties. you should try to combine all materials into a single material so that its easier to reconfigure the textures in unity.
Once imported into unity, check the material settings and check if you need to reference the texture files again, most often when importing exporting .obj, the texture path gets lost so you must re-reference it in the target software. Sometimes it is also necessary to re-assign the materials themselves.
Also check your rendering options in unity, you may just be seeing it untextured in the unity viewport. (on the top left corner it says shaded, try changing it to textured or some other option)
You may as well try to use other mutually supported file types, like .3DS which do not use a separate material file, or check for blender add-ons that can export with all necessary settings for Unity.
Finally, your model is way too complex, it is raw data from a 3D scanner or ripper, I suggest you remake it so that you have manual control over each face and texture. (or at least for practice of doing the export-import operation).
More details like pictures of your material settings of both blender and unity would help in assisting you further.

Unity materials appear broken

I've recently imported a Unity project that references .fbx file.
When I imported the project (which was created by another user) all surfaces are pink.
Having looked at all the materials the following is observed
All the materials in the top level materials are present but are shades of grey not as the material should appear
At specific assest level (assets->material_name->material) there are no materials
All textures are present
All objects have a material associated with them which are all from the grey materials.
I can force change a material by selecting the surface and manually changing the material from its default to the one material which isn't grey "teleport" for all three surface materials.
There is a seemingly related error at the bottom "speedtree materials need to be regenerated". I've googled this however, the only solution was to select the prefab option in the assets list which is not an existing option in my project.
Any thoughts would be awesome.
CBusBus
This is a shader problem. Please note that shader is not the-same as material. You plug shader into a material. The circled image below shows a "Standard" Shader that is attached to a material named "CubeMat2".
The imported Object can be pink because:
1.The shader is missing in the Project.
Manually copy the shader into your project and re-attach it to your material.
2.The shader is obsolete or uses a keyword that's not available your current version of Unity.
Make sure you are using the-same version of Unity "another user" used to create the original project.
3.A simple import bugs. This happens somethings.
All you have to do is select the material, change the shader to another Shader then change it back to what it was before. For some reason, this seems to fix the issue.
4.There is an error in the shader. If there an error in the shader, Unity can't compile it and it will be pink when attached to a material. Also, if there is a shader error, you will see that in the Console tab. You will have to fix that error.

created a model in blender, imported into Unity and not affected by light

I created a hand model in blender, imported it into my scene in Unity and it does not get affected by my lights.
I created some seam lines and unwrapped the thing. I have other elements that I created in a similar way and the only difference I can appreciate here is that this one is not a mesh renderer, it is a skinned mesh renderer, because it has bones inside.
This is how it looks like, you can see the "torch light" focusing to it, making a round of light, and the hand is getting weird lights, like only the reflected light from below or something.
Those are the settings of the mesh
Looks like the normals are wrong. You can try to invert normals in blender or change the import settings (in Unity) of your hand mesh to calculate normals instead of using the normals in the blend file (See normals & tangents section here).
It is definitely an issue with normals. Something wrong is going on during exporting probably.
Try Calculate option under Normals in Importer settings
Hope that helps.

Texture from Blender doesn't appear in Unity 3D

I've searched endlessly for an answer to this question. However, I have created a model in Blender and export it as a .FBX directly into Unity. But the textures I have applied in Blender do not render in Unity (Even in the preview screen). I have UV Unwrapped the model, and created a custom texture pattern to suit. I've inserted the textures into Unity, however this just loads them how Unity feels, not how I'd like it to look.
I've attempted to add it as a .blend file, but Blender crashes, and it fails to convert to an .fbx file in Unity. The model is of a wall, with 3 doorways, and 3 doors. The wall has its own texture, and the doors all have the same texture. (I'd upload images but haven't earnt enough rep).
Is there a simple solution? Or am I over looking the whole process and missing something important out?
after you UV unwrapped your model you save the uv in a file in blender you should apply that file as a texture to your model in unity and you will be done,tell me if you have already done that. Here are useful tutorials.
I had better luck exporting it as a wavefront object. Under transform select Path Mode: Copy and you should get your materials.