Code Monkey home page Code Monkey logo

Comments (4)

RaceTheMaSe avatar RaceTheMaSe commented on August 16, 2024

Some further info after digging deeper:
I am trying to use a FRuntimeMeshVertex<true, true, true, true, 3> VertexWithThreeUvs; directly resulting in an error: error C2039: "TypeInfo" missing

Also tried adding a DEFINE_RUNTIME_MESH_VERTEX(FRuntimeMeshVertexTripleUV); and DECLARE_INTERAL(...) which results in a crash.

from realtimemeshcomponent.

Koderz avatar Koderz commented on August 16, 2024

It's been a while since I've tried it and the macros have changed a bit since then and you're also the first to ask about using more than 2 but...

You should be able to do it via a combination of something like..
DECLARE_RUNTIME_MESH_VERTEX(FRuntimeMeshVertexTripleUV, true, true, true, true, 3, ERuntimeMeshVertexTangentBasisType::Default, ERuntimeMeshVertexUVType::HighPrecision)

in the header and

DEFINE_RUNTIME_MESH_VERTEX(FRuntimeMeshVertexTripleUV);

in the cpp file.. if that doesn't work let me know. I'm not able to test that right this second.

from realtimemeshcomponent.

RaceTheMaSe avatar RaceTheMaSe commented on August 16, 2024

Thats how I declared it, and this crashes the engine in RHI somewhere with errors about NaN in matrix transforms. (not at my PC right now, to be more precise). Don't know what is happening there, as in the initial material I use it doesn't take the additional UV channel into account at all.

Btw: I really like the well engineered code you produced! :-)

from realtimemeshcomponent.

RaceTheMaSe avatar RaceTheMaSe commented on August 16, 2024

All Good, the template with three UVs works! :)

from realtimemeshcomponent.

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.