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 ...
  • 72.8k
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

How can I resize my Blender models when importing to Unity?

Take care about unity import settings... If you click on your model in unity you will see scale factor among the parameters. Take care the value is correct to fit your needs.
  • 2,624
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.2k
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 ...
  • 117k
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 ...
  • 117k
3 votes

What exactly IS a model?

A model often refers to it's geometric data such as vertices (aka mesh data) and it's rendering properties commonly refered to as materials to give you the actual rendered object. A single model can ...
  • 1,997
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
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.6k
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 ...
  • 113k
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.6k
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 ...
  • 15.7k
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. ...
  • 924
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 ...
  • 117k
2 votes
Accepted

How do I load a model through AssimpNet into Monogame?

So I took a look through the MonoGame content pipeline code to see how it works and turns out its using AssImpNET. So importing your models via the MonoGame pipeline is a solution to your question. ...
2 votes

Normal mapping for Android and iOS

The model itself is not more costly to made but an additional texture is required. Depending on the artist a new texture has to be drawn or the bumpiness is created from a high detail version of the ...
  • 403
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

Blender DirectX exporter to Panda3D

The first error means you are passing a set (ie. {1, 2, 3}) to the Actor constructor whereas it expects a dictionary (ie. ...
  • 326
2 votes
Accepted

Correct way of modelling for a multiplayer FPS game

How many first-person shooters do you know where the player can see their legs when looking down? Most games use completely different models for other characters and for the player-character when in ...
  • 113k
2 votes
Accepted

How do I properly import an fbx 3D model into Unity3D?

You probably don't need .obj if you want to use .fbx. _D usually indicates a diffuse texture, _N is a normal map. You must create a new material and assign those textures into it.
2 votes
Accepted

3dsMax to Mudbox - Import Warning: UV not a complete set

Looks like sometimes mudbox gets angry when the unwrap has zero-area faces (not correctly unwrapped) or you have UVs too close to the edge of the map. Can you shrink them all down towards the center (...
  • 3,022
2 votes

What exactly IS a model?

There is no absolute answer. Generally a "model" is some representation of something interesting in your computer program. In CG it often means the geometry, and a typical model format might be ...
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
Accepted

How can I implement procedural humanoid generation like MakeHuman?

So you start off with a base mesh. Maybe a few. It might be split up into multiple portions (eg, the shoulder mesh, the neck mesh, the head mesh.) Each section might have a variety of "options" (eg. ...
2 votes

Libgdx, how do i get the translation and rotation of a node from a model instance?

You will need to normalize the rotation matrix to remove its scale. This can be done by normalizing all 3 rows of the transform basis matrix. ...

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