Hot answers tagged

7 votes
Accepted

How can I calculate the bounding box of a 3D model?

When you're reading the model into your game, you'll be iterating through each vertex of the model. Simply keep track of the max/min for each X, Y and Z axes. Using these values you can find the ...
  • 73k
5 votes

How to merge two objects in Blender

If the result in the image satisfies you, here's how I achieved it. Subsurfed the initial cube once Created a second cube and scaled it Added a boolean modifier to ...
  • 151
4 votes
Accepted

How to make (or where to get) a half-sphere mesh that textures properly?

You shouldn't really worry about cutting of the other half of the sphere since Unity doesn't render faces that are looking away anyway. That doesn't solve your problem however. Try to save your sphere ...
  • 336
4 votes
Accepted

What technique should I use to implement the following type of "diggable" terrain?

Data / Model vs. View / Rendering First let's clear up one thing: data model vs. view, in the sense described by MVC. One moment you're talking about one: How can I implement such a modifiable ...
  • 29.3k
4 votes
Accepted

How to prevent Unity from triangulating faces of imported models?

Unity supports the following MeshTopology types: Triangles Quads Lines LineStrip Points It does not, at the time of writing this answer, support topologies with 5 or more points per polygon. To ...
  • 125k
4 votes

What models am I allowed use when selling my game?

First: I am not a lawyer, please contact a lawyer for actionable legal advice. Use of the 3D models depends on the license the model maker provided. You should be able to read the license and see if ...
  • 141
4 votes

How to replace texture maps on models in a packaged game?

Typically this is done via DLL injection. You insert a piece of custom software that poses as the graphics driver while you're running the game. Each frame, when the game tries to ask the graphics ...
  • 125k
3 votes
Accepted

Unity5 imported models show no texture

It looks like the Wings3D object doesn't have texture coordinates. There is a texture applied, it's just not applied correctly. Without texture coordinates, it'll just stretch a single pixel of the ...
  • 15.7k
3 votes

In XNA, how do I access a model's dimensions with code?

There are a couple ways. This way shows how you can do it at runtime by grabbing out all the vertices to build the BoundingBox around the model. The first answer on this page is super old but the ...
3 votes

Lazy way to figure out the two sides of a border?

I believe the solution is simple - mark vertices of the path as impassible and run regular Dijkstra for this input. If it fails to find a path you are sure they are on different sides. Edit: If your ...
  • 4,880
3 votes
Accepted

How to achieve this kind of look of a cube in a most efficient way?

I will be giving you two answers, The one for your actuall problem,and another one with a cube that has faces colored based on how much they are facing top: To simply create a Cube like that: Create ...
3 votes

How can I create and load models with additional information?

This is not going to be as easy as you think it would be, because only the Unity Editor can load Blender files. When you import a Blender file, it is converted to Unity's internal format. This is the ...
  • 115k
3 votes
Accepted

How do I shade / model low poly smooth surfaces that come to sharp edges?

You need to set the mesh to smooth, then "cut" the edges that have to be sharp by duplicating them. You need to select the edges you want to make sharper, then hit Ctrl + E and choose the "edge split"...
  • 14.7k
3 votes
Accepted

Can I use Adobe Fuse CC models in my commercial game?

Yes, you can. See the PDF document that can be found here on Adobe's website. Additionally, this page on Adobe's forums describes a bit more in layman's terms what you can and can't do with Adobe ...
  • 16k
3 votes

How can you tell if what you're buying is legal?

As always with questions like this, let me start out by saying that I am not a lawyer, and if you want more professional advice, seek out a legal practitioner to help you with your specific issue. ...
  • 925
3 votes
Accepted

How can I cut a doorway through my wall at runtime?

Actually cutting this hole in the mesh can be challenging. It's doable - 3D modelling packages manage it all the time - but it can be computationally intensive to handle every potential case, and it ...
  • 125k
2 votes

How many LoD versions of a model should I have?

This technique is called LOD (Level of Detail). Look it up and you will easily find several references on the internet. How many levels of detail you use is completely up to you. It depends heavily ...
2 votes

Will I lose the mesh if I delete the original prefab?

If I understand you correctly, you have created a model and then imported it to Unity. This model is what you call Cube and contains a mesh. So, just check the file extension of your Cube - Unity5 ...
  • 186
2 votes
Accepted

Assimp, Blender and model rotating

A common problem exchanging 3D data between different programs is the axis directions. The cause of the issue comes when deciding the direction of each axis, blender uses the right handed cartesian ...
  • 356
2 votes

Why does unity obj import flip my x coordinate?

I had quite a discussion about this with Unity customer support, which you can see here. The short of it is this: The actual OBJ file format specification declares that, "A right-hand coordinate ...
2 votes
Accepted

Mixamo Models not Importing Correctly in Unity

This looks like inverted normals. Is there an option for that somewhere? (In Mixamo as well as Unity). Also, check the material in Unity. It might be set to Transparent/Bumped Diffuse. Switch that to ...
  • 351
2 votes

High poly vs Low Poly when creating model

I think your question is about modelling assets for your game and whether you should start with a low or high poly prototype. To me it makes sense to prototype quickly and therefore choose whichever ...
  • 531
2 votes
Accepted

Make models not see through

I think I figured it out. If anyone knows another way please do share. I had to enable DepthBuffer in DepthStencilState in the <...
  • 195
2 votes

How to join two cubes?

Ultimately, you can take whichever option suits you best, personally. You would easily get away with either. Leaving the Cubes Separate If you do not join the cubes, they should import into your ...
  • 5,203
2 votes

How to join two cubes?

If you generate box collider's on empty objects with shape of these boxes, and your scripts are on a parent of 2 objects that have these colliders, any of these colliders will trigger OnCollisionEnter(...
2 votes
Accepted

why one model can have different vertices and normal size?

The Wikipedia page about the Wavefront .obj file, contains a lot of information boiled down to less lines than it could be. Some files have more vertices and some have more normals. Does it means I ...
  • 380
2 votes

Should LOD models be used in mobile games?

One of the things that makes it hard to answer this question is the quickly evolving diverse landscape of mobile devices. Not only are they getting more powerful and higher resolution, there are still ...
  • 5,199

Only top scored, non community-wiki answers of a minimum length are eligible