poke1024 / godot_vector_graphics Goto Github PK
View Code? Open in Web Editor NEWBasic vector graphics in the Godot Editor
License: MIT License
Basic vector graphics in the Godot Editor
License: MIT License
[Initial build] Compiling ==> modules/vector_graphics/register_types.cpp
In file included from modules/vector_graphics/vector_graphics_path.h:8:0,
from modules/vector_graphics/register_types.cpp:7:
modules/vector_graphics/utils.h:12:37: fatal error: tove2d/src/cpp/graphics.h: No such file or directory
compilation terminated.
scons: *** [modules/vector_graphics/register_types.x11.tools.64.o] Error 1
scons: building terminated because of errors.
Does not compile for me in Ubuntu 18.04 with godot 3.1.1
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:87:0,
from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
from modules/vector_graphics/tove2d/src/cpp/common.h:69,
from modules/vector_graphics/tove2d/src/cpp/subpath.h:15,
from modules/vector_graphics/tove2d/src/cpp/subpath.cpp:12:
/usr/lib/gcc/x86_64-linux-gnu/7/include/f16cintrin.h: In function 'void tove::store_gpu_float(uint16_t&, float)':
/usr/lib/gcc/x86_64-linux-gnu/7/include/f16cintrin.h:59:1: error: inlining failed in call to always_inline 'short unsigned int tove::_cvtss_sh(float, int)': target specific option mismatch
_cvtss_sh (float __F, const int __I)
^~~~~~~~~
In file included from modules/vector_graphics/tove2d/src/cpp/subpath.h:15:0,
from modules/vector_graphics/tove2d/src/cpp/subpath.cpp:12:
modules/vector_graphics/tove2d/src/cpp/common.h:71:15: note: called from here
p = _cvtss_sh(x, 0);
~~~~~~~~~^~~~~~
scons: *** [modules/vector_graphics/tove2d/src/cpp/subpath.x11.opt.tools.64.o] Error 1
As compilation did not work here. Would like to play around with this. Thanks in advance.
Been trying to compile the code with Godot 3.3, but it gives me errors when it finds the custom module.
$ scons -j4 platform=windows svg=patch vsproj=no
scons: Reading SConscript files ...
Configuring for Windows: target=debug, bits=default
Found MSVC version 14.2, arch amd64, bits=64
YASM is necessary for WebM SIMD optimizations.
WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> modules\vector_graphics\register_types.cpp
Compiling ==> modules\vector_graphics\resource_format_loader_svg.cpp
Compiling ==> modules\vector_graphics\utils.cpp
Compiling ==> modules\vector_graphics\vector_graphics_adaptive_renderer.cpp
cl : Command line warning D9002 : cl : Command line warning D9002 : ignoring unknown option '-std=c++11'ignoring unknown option '-std=c++11'
cl : Command line warning D9002 : register_types.cpp
ignoring unknown option '-std=c++11'utils.cpp
vector_graphics_adaptive_renderer.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
resource_format_loader_svg.cpp
Compiling ==> modules\vector_graphics\vector_graphics_color.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
vector_graphics_color.cpp
Compiling ==> modules\vector_graphics\vector_graphics_editor.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
vector_graphics_editor.cpp
non-intrinsic fp16 conversion.
non-intrinsic fp16 conversion.
non-intrinsic fp16 conversion.
Compiling ==> modules\vector_graphics\vector_graphics_editor_plugin.cpp
C:\Users\user\downloads\godot-3.3\godot-3.3\modules\vector_graphics\tove2d\src\cpp\shader\feed\paint_feed.h(192) : warning C4715: 'tove::PaintFeedBase::getColor': not all control paths return a value
Compiling ==> modules\vector_graphics\vector_graphics_gradient.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
vector_graphics_editor_plugin.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
vector_graphics_gradient.cpp
Compiling ==> modules\vector_graphics\vector_graphics_linear_gradient.cpp
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
vector_graphics_linear_gradient.cpp
non-intrinsic fp16 conversion.
modules\vector_graphics\vector_graphics_editor.cpp(413): error C2065: 'EDSCALE': undeclared identifier
modules\vector_graphics\vector_graphics_editor.cpp(415): error C2065: 'EDSCALE': undeclared identifier
modules\vector_graphics\vector_graphics_editor.cpp(861): error C2065: 'EDSCALE': undeclared identifier
scons: *** [modules\vector_graphics\vector_graphics_editor.windows.tools.64.obj] Error 2
non-intrinsic fp16 conversion.
scons: building terminated because of errors.
I propose to convert to three types: 3d scene with mesh instances, 2d scene with vgpath and 2d scene with meshinstance2d.
Currently did the mostly complicated scheme which is the 3d mesh.
Any comments?
Here are some videos.
https://cdn.discordapp.com/attachments/659280732673409024/683252767787450368/2020-02-29_01-53-46.mp4
https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg
Will post a branch / pr for review.
I'm looking for advice and design suggestion for reducing the draw calls for the tiger.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.