Coder Social home page Coder Social logo

eliemichel / dagamendment Goto Github PK

View Code? Open in Web Editor NEW
167.0 9.0 22.0 29.06 MB

The official implementation of the research paper "DAG Amendment for Inverse Control of Parametric Shapes"

License: Other

C++ 85.58% CMake 2.34% Python 9.73% Shell 0.06% Batchfile 0.05% C 2.24%

dagamendment's Issues

ImportError: cannot import name 'project' from 'DagAmendment.Accel' (unknown location)

bpy.context.space_data.recent_folders_active = 1
bpy.context.space_data.system_folders_active = 3
bpy.context.space_data.system_folders_active = 3
bpy.context.space_data.params.filename = ""
bpy.context.space_data.recent_folders_active = 1
Modules Installed (DagAmendment) from 'D:\DagAmendment-v1.1.1.zip' into 'C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons'
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\DagAmendment_init_.py", line 81, in
from . import properties
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\DagAmendment\properties.py", line 33, in
from .SamplePoints import SamplePoints
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\DagAmendment\SamplePoints.py", line 32, in
from .uv_coparam import coparam_to_position
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\DagAmendment\uv_coparam.py", line 35, in
from .Accel import project as project_on_mesh
ImportError: cannot import name 'project' from 'DagAmendment.Accel' (unknown location)

Macos build failure logs

Hope to post some logs, so that others can help.

  1. I had to change the bash script to use python 3.11

  2. Some minor? coding errors.


[ 50%] Building CXX object CMakeFiles/Accel.dir/Accel.cpp.o
/Users/ernest.lee/Documents/DagAmendment/Accel/Accel.cpp:39:35: error: constexpr variable 'version' must be initialized by a constant expression
constexpr std::tuple<int,int,int> version = {1, 0, 0};
                                  ^         ~~~~~~~~~
/Users/ernest.lee/Documents/DagAmendment/Accel/Accel.cpp:39:45: note: non-constexpr constructor 'tuple<int, int, int, 0>' cannot be used in a constant expression
constexpr std::tuple<int,int,int> version = {1, 0, 0};
                                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/tuple:606:5: note: declared here
    tuple(_Up&&... __u)
    ^
/Users/ernest.lee/Documents/DagAmendment/Accel/Accel.cpp:100:41: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
        auto proj_triangles = py::array_t<int>({ static_cast<pybind11::ssize_t>(samples_buf.shape[0]) });
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [CMakeFiles/Accel.dir/Accel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Accel.dir/all] Error 2
make: *** [all] Error 2
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:49 (file):
  file INSTALL cannot find
  "/Users/ernest.lee/Documents/DagAmendment/Accel/build-darwin/Accel.cpython-311-darwin.so":
  No such file or directory.

Can't enable in Blender because of error in shader

ERROR (gpu.shader): pyGPUShader VertShader:
|
32 | vec4 color = texelFetch(jbuffermaps[param], coord, 0);
| ^
| Error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later

Traceback (most recent call last):
File "/usr/share/blender/2.93/scripts/modules/addon_utils.py", line 351, in enable
mod = import(module_name)
File "/bunny/.config/blender/2.93/scripts/addons/DagAmendment/init.py", line 84, in
from . import overlays
File "/bunny/.config/blender/2.93/scripts/addons/DagAmendment/overlays.py", line 29, in
from .shaders import line_shader, line_shader_2d, point_shader
File "/bunny/.config/blender/2.93/scripts/addons/DagAmendment/shaders.py", line 252, in
jbuffer_reduce_shader = gpu.types.GPUShader('''
Exception: Shader Compile Error, see console for more details

Extract as an OpenMfx node

How much effort would be to extract this as a OpenMFX node and can you sketch a technical design for it?

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.