Coder Social home page Coder Social logo

Half of the model is missing about objmc HOT 10 CLOSED

godlander avatar godlander commented on August 23, 2024
Half of the model is missing

from objmc.

Comments (10)

Godlander avatar Godlander commented on August 23, 2024

i think last time i encountered something similar was due to the normals of the faces being inverted

im not sure how i can fix this

from objmc.

Godlander avatar Godlander commented on August 23, 2024

you can try to use recalculate outside normals in blender.

if some faces can't be resolved by that mayb look into this https://blender.stackexchange.com/questions/7910/what-is-non-manifold-geometry

from objmc.

GeorgeMixas avatar GeorgeMixas commented on August 23, 2024

I thought the same so I made sure that wasn't the case, normally when your faces are inverted you can see the other side of the model but in my case, it's fully transparent, you can enable backface culling in Blender and see that the faces aren't inverted.

Example:
download

from objmc.

Daminator4113 avatar Daminator4113 commented on August 23, 2024

I ran into a similar problem with one of my models, actually it's because the faces aren't modeled correctly. The easiest and fastest way I found to solve the problem is to triangulate all the faces (CTRL+T on blender)

Model in blender :
image

Model in game :
image

And it work :
image

from objmc.

Godlander avatar Godlander commented on August 23, 2024

they didn't want to triangulate the faces bcos it doubles face count.

anyway it's not the faces that are inverted but the normals. did you try recalculating normals?

from objmc.

GeorgeMixas avatar GeorgeMixas commented on August 23, 2024

I did and then I flipped them just for sanity's sake to make sure that wasn't the case.

@Daminator4113, What did you do for the model to show up like that in Blender? Mine shows up normally but perhaps what you did could be a clue on what's wrong with it, if something is.

Fliped normals:
download

Normal normals:
download

from objmc.

Daminator4113 avatar Daminator4113 commented on August 23, 2024

If you mean transparency, it's just a visual option :
image

And I don't think the problem is from flipped normals, I don't know how to explain, but this glitch appears when the faces is not correct (like my example with a useless vertice).

If you look closely on the weapon model, you will see a lot of incorrect faces, for example :
image

from objmc.

Godlander avatar Godlander commented on August 23, 2024

if some faces can't be resolved by that mayb look into this https://blender.stackexchange.com/questions/7910/what-is-non-manifold-geometry

yeah those vertices make normals unresolvable. maybe try the link i sent yesterday to resolve the invalid vertices/edges/faces

from objmc.

GeorgeMixas avatar GeorgeMixas commented on August 23, 2024

I found the problem, it appears that objmc doesn't like ngons, when I specifically use tris or quads everything works but if some part of the mesh is an ngon Minecraft doesn't render it.

Would it be possible to add support for ngons in the future?

Ngons provide the fewer faces possible with quads second and tris having the most faces as expected, that's also the reason why everything got fixed when I triangulated the faces.

from objmc.

Godlander avatar Godlander commented on August 23, 2024

minecraft does not have ngons. when creating custom models in vanilla you can only add quads that are made of two tris.

from objmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.