Coder Social home page Coder Social logo

tefusion / godot-subdiv Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 1.0 8.89 MB

Fast Subdivision in Godot with opensubdiv

Home Page: https://godotengine.org/asset-library/asset/1488

License: MIT License

Python 2.30% GDScript 2.91% C++ 94.79%
gdextension godot godot4 opensubdiv subdivision godot-addon godot-engine

godot-subdiv's People

Contributors

fire avatar tefusion avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

v-sekai

godot-subdiv's Issues

Licensing

I think that both I and Camille should be listed in the license as significant contributors since this code was extracted from the Godot Engine branch. See authors.md https://github.com/godotengine/godot/blob/master/AUTHORS.md

https://github.com/fire K. S. Ernest (iFire) Lee (fire) https://github.com/godot-extended-libraries/godot-fire/tree/feature/3.2/opensubdiv-next

https://github.com/pouleyKetchoupp Camille Mohr-Daurat (pouleyKetchoupp) wrote the original proposal godotengine/godot-proposals#784

Extend MeshInstance3D and Mesh.

Core changes needed:

  • Callback for the set_base calls in MeshInstance3D to be able to set the correct base at the correct moment.
  • set_blend_shape value virtual
  • Access to internal skeleton

Compile error on windows. MSVC?

Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
scons: `godot-cpp\bin\libgodot-cpp.windows.debug.x86_64.lib' is up to date.
cl /Fosrc\subdivision_mesh.windows.debug.x86_64.obj /c src\subdivision_mesh.cpp /TP /std:c++17 /nologo /Z7 /Od /EHsc /D_DEBUG /MDd /DTYPED_METHOD_BIND /DDEBUG_ENABLED /DDEBUG_METHODS_ENABLED /D_USE_MATH_DEFINES /Igodot-cpp\godot-headers /Igodot-cpp\include /Igodot-cpp\gen\include /Isrc /Ithirdparty\opensubdiv
subdivision_mesh.cpp
src\subdivision_mesh.cpp(120): error C2440: '=': cannot convert from 'int' to 'const int *'
src\subdivision_mesh.cpp(120): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or parenthesized function-style cast
src\subdivision_mesh.cpp(121): error C2131: expression did not evaluate to a constant
src\subdivision_mesh.cpp(121): note: failure was caused by a read of a variable outside its lifetime
src\subdivision_mesh.cpp(121): note: see usage of 'num_channels'
scons: *** [src\subdivision_mesh.windows.debug.x86_64.obj] Error 2
scons: building terminated because of errors.```

Crash with float=64

Trying to enable float=64 for our build, but it's crashing.

Any idea how to debug it?

Extend from ArrayMesh and MeshInstance3D?

Can you explain why we're not doing this?

The advantage is I can take advantage of gltf2 export and the entire scene system is based ImporterMesh3D -> MeshInstance3D

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.