- Home /
I Have A Problem Importing A Map From Blender
Okay, I have this map I got from a game. I put in Blender and exported it as a Blend file. I put it in Unity, but when I put it in the scene, everything but the ground shows up. It doesn't show in the hierarchy or anything.
What do I do. Any help is much appreciated :)
Not enough information.
"Okay, I have this map I got from a game."
What does the word "map" mean to you here? 3D data?
"I put in Blender and exported it as a Blend file."
So you've got 3D data in blender and you can see the ground?
It's just not there when you add it to the scene in Unity?
Can you see the object representing the ground in the hierarchy of the imported 3D file (when you expand the file to view its contents) in the project view?
AlwaysSunny, in 3d games, "maps" refer to the terrain, or setting of the gameplay
Have you tried exporting as a .fbx from blender? usually has less errors I have found
also: "It doesn't show in the hierarchy or anything." This sounds like you haven't acctually added the object to your scene, is this right? Also, keep in $$anonymous$$d that sometimes .blend files can be imported into the project assets area but will not be 'dragged' into a scene due to a bug between the communication between blender and unity
Answer by Pflobus · Jul 09, 2015 at 03:11 PM
Rather than exporting it as a .blend file, try a .dae file. That always works for me.
@Pflobus I will try that.
@AlwaysSunny. Here is a video just for you to see what I mean. I was unable to record Blender but I did take some screenshots and put them in.
Don't see a video link. Again:
A video is not necessary. The problem you are describing is caused by having inverted normals. In blender, select the terrain object. Enter edit mode. Select all the faces on the mesh. Press Ctrl+F and choose "flip normals". Save and exit.
Answer by ei1 · Jul 08, 2015 at 10:02 PM
In blender, is the ground upside down? Blender allows you to see the backside of flat objects, but unity makes them transparent. Is the ground parented to a strange object? It could be buried under a long hierarchy.
try importing the ground individually, just to see if it works.
This is not necessary. Something else is going on. Please answer the questions I asked in my original comment to help us help you:
So you've got 3D data in blender and you can see the ground?
It's just not there when you add it to the scene in Unity?
Can you see the object representing the ground in the hierarchy of the imported 3D file (when you expand the file to view its contents) in the project view?
Is the ground even a separate mesh unto itself? It probably should be if not. Intuitively separating meshes is generally a smart move.
Also, @ei1 makes a valid point; your mesh may simply have inverted normals. If you can see the object's name in the scene hierarchy view, it exists in the scene. Navigate the scene camera to the underside of where the mesh should be (or rotate the mesh), and see if you can view it from below.
As eil said, I mean terrain. Also, yes I can see it from the bottom of the map/terrain. I can even walk on the bottom, but on the other side (I mean the actual playable part of the map) I just fall through.
Allow me the time to make a video to show you. In the mean time, how do I fix it?
@Andymandc please post non-answers as comments, not answers.
A video is not necessary. The problem you are describing is caused by having inverted normals. In blender, select the terrain object. Enter edit mode. Select all the faces on the mesh. Press Ctrl+F and choose "flip normals". Save and exit. Problem solved. ;)
@AlwaysSunny That method didn't work. Also, when I enter edit mode and press T, the contextual menu does appear, but ther is nothing talking about normal :/
Your answer
Follow this Question
Related Questions
How to use Height Maps 2 Answers
Issue with importing raw heightmaps (made in photoshop) 5 Answers
Problem with importing Blender to Unity 1 Answer
Can't paint detail on terrain. 1 Answer
Import a blender map in unity ? 0 Answers