Git Product home page Git Product logo

nap's People

Contributors

aartodding avatar bmod avatar casimirgeelhoed avatar cheywood avatar cklosters avatar jellevdbeek avatar lshoek avatar marcel303 avatar navfooh avatar rovarma avatar stijnvanbeek avatar thijskrooswijk avatar timgroeneboom 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nap's Issues

Compile error with Clang 15

OS: Ubuntu 22.04
To reproduce, build with the following command:

mkdir build/ && cd build && cmake -GNinja -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 ..

This results in:

/home/ceeac/Projects/code/nap/utility/src/utility/stringutils.cpp:119:36: error: use of undeclared identifier 'strncmp'
                        compare_func = caseSensitive ? &strncmp : &strncasecmp;
                                                        ^
/home/ceeac/Projects/code/nap/utility/src/utility/stringutils.cpp:119:47: error: use of undeclared identifier 'strncasecmp'
                        compare_func = caseSensitive ? &strncmp : &strncasecmp;
                                                                   ^
/home/ceeac/Projects/code/nap/utility/src/utility/stringutils.cpp:121:63: error: use of undeclared identifier 'strlen'
                        return compare_func(inString.c_str(), inSubString.c_str(), strlen(inSubString.c_str())) == 0;
                                                                                   ^
/home/ceeac/Projects/code/nap/utility/src/utility/stringutils.cpp:136:36: error: use of undeclared identifier 'strncmp'
                        compare_func = caseSensitive ? &strncmp : &strncasecmp;
                                                        ^
/home/ceeac/Projects/code/nap/utility/src/utility/stringutils.cpp:136:47: error: use of undeclared identifier 'strncasecmp'
                        compare_func = caseSensitive ? &strncmp : &strncasecmp;
                                                                   ^
5 errors generated.
ninja: build stopped: subcommand failed.

RPi4 Installation

Hi
The documentation to install the framework on RaspberryPi refers to Release 0.5.0, but I can't find it in the repository, the most recent release listed is 0.4.5, where is 0.5.0 release available?

Thank you.

CMake Error at tools/napkin/CMakeLists.txt:218 (if):

  if given arguments:

    "STREQUAL" "Release"

  Unknown arguments specified

This is with cmake 3.29

Fix:

diff --git a/tools/napkin/CMakeLists.txt b/tools/napkin/CMakeLists.txt
index fabca61ea..de0f76505 100644
--- a/tools/napkin/CMakeLists.txt
+++ b/tools/napkin/CMakeLists.txt
@@ -215,7 +215,7 @@ if(APPLE)
         
 
 elseif(UNIX)
-    if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
+    if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
         list(APPEND DEEP_DEPENDENT_RPATHS ${PATH_TO_THIRDPARTY}/Qt/lib)
         list(APPEND DEEP_DEPENDENT_RPATHS lib)

Good demos for benchmarking purposes?

Hi, I was just learning about NAP and saw this blog post [ https://blog.napframework.com/2020/moving-habitat-to-nap-0.4/ ] where the performance was talked about... Just wondering if there are any good public / freely available demos for use with NAP for the purpose of CPU/GPU comparison benchmarking? The few demos bundled with the NAP framework appear to be quite basic. Being new to NAP, just curious if there was any guidance on any publicly available assets that would be useful if wanting to feature NAP when conducting any GPU review testing, etc.

Thanks,
Michael

Duplicating nap::StructBuffer breaks on assert

Can be reproduced in helloworld demo project

  • Create a nap::StructBuffer
  • Duplicate the buffer (right-click, then duplicate)
  • Assert fail on document.cpp:1153 followed by crash
assert(src_value.get_type().is_wrapper() && src_value.get_type().get_wrapped_type().is_pointer());

setFullScreen broken on Ubuntu 22.x

Likely has to do with SDL2. Seems like setting the SDL_WINDOW_FULLSCREEN_DESKTOP flag can cause my system to crash. The error that pops up continuously says that the creation of a swapchain the size of my display failed (1920x1080 -> 2560x1440).

My current workaround is to resize a borderless window to the display size and position it at the top left corner of the display coordinates. Arguably this is what (desktop) fullscreen mode does anyway, but the SDL call is still broken.

Additionally prevent fullscreen requests on Linux:

#ifdef __linux__
				nap::Logger::warn("Fullscreen is disabled on Linux");
#elif
				for (auto* window : mMultiRenderWindow->getWindows())
					window->toggleFullscreen();
#endif

GUI scaling bugs when using secondary display

Hi NAP team!

We found a few issues related to the DPI-dependent GUI scaling in NAP 0.5. The bugs below were encountered when using a high resolution primary display (Retina or 4K) and a lower resolution secondary display (Full HD). This is a situation that is relatively common for our users (who might use an external display with their MacBook). The bugs have also been reproduced on Windows unless noted otherwise.

Bug 1: When dragging the app window to a newly connected monitor, the GUI become unusually large.

  1. start up the Hello World demo without the secondary display connected
  2. connect the secondary display
  3. drag the app window to the secondary display

Screenshot 2022-09-16 at 12 38 20 (2)

Bug 2 (only on MacOS): The size of ImGUI windows is much larger in relation to the app window on the secondary/lower resolution display. This is especially a problem when the ImGUI window gets larger than the app window itself: in this case it becomes impossible to manually resize the ImGUI window.

After starting up the Hello World demo:
Screenshot 2022-09-16 at 12 32 01

After dragging the app window to the secondary display:
Screenshot 2022-09-16 at 12 32 09 (2)

Bug 3: When placing the app window around the halfway point between the secondary display and the first display, the GUI becomes unusually large:

Screenshot 2022-09-16 at 12 32 18 (2)

string sub-command REPLACE requires at least four arguments

CMake Error at cmake/nap_module.cmake:120 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  system_modules/napsequenceaudiogui/CMakeLists.txt:23 (include)

with cmake 3.29

Fix

diff --git a/cmake/nap_module.cmake b/cmake/nap_module.cmake
index 981f14245..92e54fe90 100644
--- a/cmake/nap_module.cmake
+++ b/cmake/nap_module.cmake
@@ -117,7 +117,7 @@ if(APPLE)
 elseif(UNIX)
     set(LINUX_EXTRA_RPATH "")
     foreach(rpath ${DEEP_DEPENDENT_RPATHS})
-        string(REPLACE "{BUILD_TYPE}" ${CMAKE_BUILD_TYPE} rpath "${rpath}")
+        string(REPLACE "{BUILD_TYPE}" "${CMAKE_BUILD_TYPE}" rpath "${rpath}")
         list(APPEND LINUX_EXTRA_RPATH ${rpath})
     endforeach()
 endif()

Duplicating MaterialInstance with uniforms invalidates data

Steps to reproduce:

  • Open helloworld in Napkin
  • Add an uniform struct to the material instance of nap::RenderableMeshComponent in the World entity
  • This should automatically create constant shader uniform members
  • Duplicate said nap::RenderableMeshComponent
  • Run helloworld
  • The data is invalid

Napkin should probably generate new IDs for the duplicated uniforms as well. I have also had this happen with BufferBinding

failed to compile helloworld

hello, I really like to test this framework, i didn't had visual studio 2015 so I installed it along with 2017 that I use for openframeworks, I got this error in 2015 update 3 trying to compile helloworld
Capture

what can I do, as you can see both cl.exe skipped

thanks
David

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.