Code Monkey home page Code Monkey logo

kn5-converter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kn5-converter's Issues

blue textures

when converting a map from kn5 to obj and opening it in blender 99% of textures are completely blue.
image
image

Error while loading converted .fbx files with 3D viewers

I convert .kn5 files to .fbx files and try to open with three.js and other 3D viewers available online, but I get the same error. The model files are here.

TypeError: Cannot read properties of undefined (reading '0')
    at slice (FBXLoader.js:4123:13)
    at getData (FBXLoader.js:3935:9)
    at FBXLoader.js:1913:19
    at Array.forEach (<anonymous>)
    at FBXLoader.js:1911:16
    at Array.forEach (<anonymous>)
    at GeometryParser.genBuffers (FBXLoader.js:1786:25)
    at GeometryParser.genGeometry (FBXLoader.js:1586:24)
    at GeometryParser.parseMeshGeometry (FBXLoader.js:1575:15)
    at GeometryParser.parseGeometry (FBXLoader.js:1516:17)

The UV scale is too big when exporting to OBJs.

When exporting kn5's to OBJ there's an issue with the UV scaling, the scaling is too larger, which causes the texture to look small and tilled as seen in the picture.
From lines 674 to 678 you have an IF statement that uses the parameter DetailUVMultiplier from the material and applies it to the actual mesh. which I think is wrong. since shader-related scaling should not be applied to the actual mesh but stay in the shader/material or passed to the mtl and then processed. Removing that line fixes the UV scaling issue.
scale_issue
uv_fixed

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.