profile
viewpoint
JWF Wessels jwfwessels Delft, Netherlands

jwfwessels/react-progress-spinner 2

Simple web component for a progress spinner

jwfwessels/AFK 1

Automated Battle Ground.

jwfwessels/react-webcam 1

Webcam component

jellymann/HttpGame 0

COS 332 Project.

jellymann/Zambies 0

Zambies!?

jwfwessels/angular-svg-round-progressbar 0

AngularJS module that uses SVG to create a circular progressar

jwfwessels/better-simple-slideshow 0

Another simple DIY responsive image slideshow made with HTML5, CSS3, and JavaScript

jwfwessels/creativity-ice-breaker 0

Meeting aid for creative ice breaker game

jwfwessels/d3-timeline 0

Simple JS timeline plugin for d3

pull request commentUnityTechnologies/open-project-1

Bugfix - Updated "Light and Shadows" subgraph for 0 light, added default

Why not moving your any + branch just after the Baked GI node? Because here you loose completely the directional light information. And maybe reduce also the fake illumination contribution (1 -> 0.5) to not over saturate the final rendering.

Tatranskymedved

comment created time in 3 minutes

pull request commentUnityTechnologies/open-project-1

Cleaned up version of Dissolve VFX

Hello @recklol,

Just to let you know that to progress on delivering your dissolve effect I have opened a new PR to bring it back on an the current code stack. Please do not hesitate to review my changes and let me know if you are fine or now with them. new PR

recklol

comment created time in 40 minutes

pull request commentUnityTechnologies/open-project-1

Dissolve shader effect

Hello @recklol,

Just to let you know that to progress on delivering your dissolve effect I have opened a new PR to bring it back on an the current code stack. Please do not hesitate to review my changes and let me know if you are fine or now with them. new PR

recklol

comment created time in 43 minutes

push eventpraekeltfoundation/molo-gem

Codie Roelf

commit sha 0671843c9c2b48ee37a586d93019da0ff33c13f2

Add PWA

view details

Codie Roelf

commit sha 9443440bc2e5c06ef2619eb504a882c82556f2a4

update requirements

view details

Codie Roelf

commit sha 6d39e96068a922caf6878b1adbf192d22cfd3357

remove blank line

view details

Codie Roelf

commit sha 606dc95715b2bcc82066d34a78187ef193b61bd5

remove fcm-django

view details

Codie Roelf

commit sha 7b696b164a39b95e763a30a045da06fa4a61d4b7

remove log lines

view details

codie

commit sha b46a390b5a9a9d7881f97554ebfe9d8eab1db017

Merge pull request #1410 from praekeltfoundation/add-proper-pwa Add PWA

view details

push time in an hour

issue openedgoogle/filament

Can you provide examples of rendering bitmap as texture for 2D images?

I'm studying OpenGL and Google Filament, Because just started to learn graphics, I don't know how to use this library to draw a rectangle on the android screen and the local bitmap as texture rendering on the rectangle, I saw the wallpaper demo render colors to skybox, but doesn't seem to support bitmap. other cases are triangular or cube, I try to modify texture in the triangle of code, but the picture does not show, just a grey triangle, can you provide the code, how to use bitmap as texture rendering it in rectangular or full screen?

created time in 2 hours

issue closedyarnpkg/yarn

flatpicker not found

Command Upon yarn add flatpicker Processing

yarn add v1.22.4
[1/4] 🔍  Resolving packages...

Bug description

error An unexpected error occurred: "https://registry.yarnpkg.com/flatpicker: Not found".

What is the current behavior? flatpicker not installed

What is the expected behavior? flatpicker intalling

yarn-error.log [attached yarn-error.log

closed time in 2 hours

dvodvo

issue commentyarnpkg/yarn

flatpicker not found

[facepalm]!

dvodvo

comment created time in 2 hours

issue openedyarnpkg/yarn

Installation Problem: [title]

Which operating system are you using: windows 10

Please describe the steps you took when trying to install Yarn and what went wrong: download yarn installer and doesn´t work

created time in 3 hours

issue commentnecolas/react-native-web

[Question] What is the best way of handling dynamic styles dependent on props?

I'm using rn-css on a full cross-platform project (iOS, Android, web, MacOS, Linux, Windows). I had no issue with it so far.

I don't see what you mean by a runtime overhead. Do you have a concrete example?

ElForastero

comment created time in 3 hours

push eventpraekeltfoundation/molo-gem

Codie Roelf

commit sha 7b696b164a39b95e763a30a045da06fa4a61d4b7

remove log lines

view details

push time in 3 hours

issue commentnecolas/react-native-web

Modal styles

Following up in #1820

gesposito

comment created time in 4 hours

issue openednecolas/react-native-web

Modal's z-index is not applied properly

<!-- Thank you for reporting an issue. Please note that an issue must include the information that is marked as REQUIRED below, or it may be closed. -->

The problem <!-- REQUIRED: A clear and concise description of the bug or problem. -->

When a Modal is shown, z-index priority is lost

How to reproduce <!-- REQUIRED: Create a test case by forking this template https://codesandbox.io/s/6lx6ql1w5r

Failing to include a reduced test case may result in the issue being closed, and will delay any potential fix. Your application or GitHub project is NOT considered a reduced test case. If the issue only affects certain browsers, providing screenshots is also helpful. --> Simplified test case: https://codesandbox.io/s/elated-tereshkova-xihgc

Steps to reproduce:

  1. Tap "Show Modal"

Expected behavior <!-- REQUIRED: A clear and concise description of what you expected to happen.

Please check that the behaviour is not expected React Native behaviour by running your test case on iOS or Android using https://snack.expo.io. -->

Modal should show above the Top and Bottom buttons

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.14.8
  • React (version): 16.13.1
  • Browser: Chrome, Safari, Firefox

<!-- OPTIONAL:

Additional context Add any other context about the problem here. -->

z-index seems to be applied on the aria-modal, but might need to be applied to the animated div (reference)

created time in 4 hours

issue commentnecolas/react-native-web

TextInput: autoexpandable

@woodpav This with multiline works great to increase the size of the text input, but it, unfortunately, doesn't shrink it when you remove text.

gut4

comment created time in 4 hours

PR opened UnityTechnologies/open-project-1

Added recklol dissolve effect with some tweaks

Forum: Burn/Disappear effect thread Codeck card: Burn/Disappear effect card

Old PR from recklol: RP#153

Unfortunately recklol is not giving any news for a while, so I took the initiative to bring his contribution back to life :)

This PR is based on the existing level of code in art-asset.

Dissolve effect has been added as a Toon add-on with the following master shader: Toon_Disolve

image Note: I have slightly updated ToonShading to output 2 variables (Color and Alpha), that is why other master shaders have been updated.

Next, I have improved a bit (from my point of view) the DissolveHelper script as following:

  • Instanciate DissolveParticules paricule system when dissolve is triggered based on the existing prefab image

  • Retrieve the MeshRenderer from where the script is attached

  • Set the emitter shape MeshRenderer from the script image

  • Destroy the particule system automatically at the end of the effect. image

  • Add a Trigger Dissolve in the script contextual menu to help testing the effect in play mode image

How to set dissolve effect: Tutorial

+5934 -77

0 comment

24 changed files

pr created time in 5 hours

issue commentyarnpkg/yarn

Bug: Postinstall Scripts of Workspace Packages are called within the node_modules of the workspace

error D:\xxx\merge-project\test1\node_modules\framework: Command failed.
Exit code: 1
Command: opencollective-postinstall && electron-builder install-app-deps
Arguments:
Directory: D:\xxx\merge-project\test1\node_modules\framework
Output:
internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module 'D:\xxx\merge-project\test1\node_modules\node_modules\opencollective-postinstall\index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {

+1

hediet

comment created time in 5 hours

push eventpraekeltfoundation/molo-gem

Codie Roelf

commit sha 606dc95715b2bcc82066d34a78187ef193b61bd5

remove fcm-django

view details

push time in 5 hours

issue openedgoogle/filament

Build error :

Desktop :

  • OS: Windows10
  • Filament : filament-1.9.9
  • IDE: vs2019 community
  • Backend: [OpenGL]

Describe the bug:
I have fixed some goto command skip variable initialization errors in PlatformWGL.cpp 。

But I can't fix below outputs error. Please help me, Thanks! :

16>E:\study\graphcs\ar\v1.9.9\filament-1.9.9\libs\utils\include\utils/SingleInstanceComponentManager.h(306,1): warning C4267: 'return': conversion from 'size_t' to 'utils::SingleInstanceComponentManager<filament::Box,uint8_t,filament::math::float4,filament::FRenderableManager::Visibility,utils::Slicefilament::FRenderPrimitive,uint32_t,std::unique_ptr<filament::FRenderableManager::Bones,std::default_deletefilament::FRenderableManager::Bones>>::Instance', possible loss of data 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\algorithm(7419,1): error C2678: binary '=': no operator found which takes a left-hand operand of type 'const std::pair<utils::StructureOfArraysBase<utils::Arena<utils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked>,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>' (or there is no acceptable conversion) 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\utility(271,11): message : could be 'std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>::operator =(volatile const std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &)' 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\utility(288,24): message : or 'std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>::operator =<std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>,0>(std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &&) noexcept(<expr>)' 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\utility(277,24): message : or 'std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>::operator =<std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>,0>(const std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float> &) noexcept(<expr>)' 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\algorithm(7419,1): message : while trying to match the argument list '(const std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>, std::pair<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Structure,float>)' 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\algorithm(7541): message : see reference to function template instantiation '_BidIt std::_Insertion_sort_unchecked<_RanIt,_Pr>(const _BidIt,const _BidIt,_Pr)' being compiled 16> with 16> [ 16> _BidIt=utils::Zip2Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo> *>,float *>, 16> _RanIt=utils::Zip2Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo> *>,float *>, 16> _Pr=filament::FScene::prepareDynamicLights::<lambda_1> 16> ] 16>E:\application\vs2019\VC\Tools\MSVC\14.28.29333\include\algorithm(7571): message : see reference to function template instantiation 'void std::_Sort_unchecked<_RanIt,_Fn>(_RanIt,_RanIt,__int64,_Pr)' being compiled 16> with 16> [ 16> _RanIt=utils::Zip2Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo> *>,float *>, 16> _Fn=filament::FScene::prepareDynamicLights::<lambda_1>, 16> _Pr=filament::FScene::prepareDynamicLights::<lambda_1> 16> ] 16>E:\study\graphcs\ar\v1.9.9\filament-1.9.9\filament\src\Scene.cpp(278): message : see reference to function template instantiation 'void std::sort<utils::Zip2Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo> *>,float *>,filament::FScene::prepareDynamicLights::<lambda_1>>(const _RanIt,const _RanIt,_Pr)' being compiled 16> with 16> [ 16> _RanIt=utils::Zip2Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo>::Iterator<utils::StructureOfArraysBase<utils::Arenautils::HeapAllocator,utils::LockingPolicy::NoLock,utils::TrackingPolicy::Untracked,filament::math::float4,filament::math::float3,filament::FLightManager::Instance,filament::Culler::result_type,filament::math::float2,filament::FScene::ShadowInfo> *>,float *>, 16> _Pr=filament::FScene::prepareDynamicLights::<lambda_1> 16> ] 16>Done building project "filament.vcxproj" -- FAILED. ========== Build: 15 succeeded, 1 failed, 35 up-to-date, 0 skipped ==========

created time in 5 hours

issue commentnecolas/react-native-web

Picker fontFamily

Hi Guys This issue shouldn't be closed. I fully understand the logic behind what you wrote but in the end of the day my web app doesn't look good as expected and it prevent from a RNW to be perfect as it should. Do you know any way to bypass that? (global CSS doesn't work)

PeterKottas

comment created time in 5 hours

issue commentyarnpkg/yarn

Yarn ignores no_proxy environment variable when proxy property set

how to solve this issue?

KimTaehee

comment created time in 5 hours

Pull request review commentpraekeltfoundation/molo-gem

Add PWA

 def get_default_template(site_layout_base, site_layout):     MEDIA_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN     DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' -PWA_SERVICE_WORKER_PATH = join(-    PROJECT_ROOT, 'templates', SITE_LAYOUT_BASE, 'serviceworker.js')+PWA_APP_NAME = 'Springster-APP'

Yeah initially we only had PWA for springster. And also if you look below the other settings that were there are for sprignster

codiebeulaine

comment created time in 5 hours

Pull request review commentpraekeltfoundation/molo-gem

Add PWA

 def get_default_template(site_layout_base, site_layout):     MEDIA_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN     DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' -PWA_SERVICE_WORKER_PATH = join(-    PROJECT_ROOT, 'templates', SITE_LAYOUT_BASE, 'serviceworker.js')+PWA_APP_NAME = 'Springster-APP'

Ah, I guess this is only loaded in the Springster templates anyway so maybe not neccessary.

codiebeulaine

comment created time in 6 hours

Pull request review commentpraekeltfoundation/molo-gem

Add PWA

 def get_default_template(site_layout_base, site_layout):     MEDIA_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN     DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' -PWA_SERVICE_WORKER_PATH = join(-    PROJECT_ROOT, 'templates', SITE_LAYOUT_BASE, 'serviceworker.js')+PWA_APP_NAME = 'Springster-APP'

@codiebeulaine these settings are used for the culture brand sites as well right? maybe we should make them configurable through the settings then? although is that not possible because the manifest needs to be hard-coded?

codiebeulaine

comment created time in 6 hours

Pull request review commentpraekeltfoundation/molo-gem

Add PWA

     </noscript> </head>   <body class="{% block body_class %}{% endblock %}" {% if request.LANGUAGE_CODE|language_bidi == True %}dir="rtl"{% endif %}>-+    <script>+ if (!navigator.serviceWorker.controller) {+     navigator.serviceWorker.register("/serviceworker.js").then(function(reg) {+         console.log("Yo yo yo yo ");+         console.log("Service worker has been registered: " + reg.scope);

:laughing: are you sure you want to leave these log lines in here?

codiebeulaine

comment created time in 6 hours

push eventpraekeltfoundation/molo-gem

Codie Roelf

commit sha 6d39e96068a922caf6878b1adbf192d22cfd3357

remove blank line

view details

push time in 6 hours

issue openedgoogle/filament

readPixels callback function is not called in headless mode

Im successfully save images via callback function with GLFW windows, but in headless mode it doesn't work, Text message inside callback does not appear. To simplify I run test code from from filament_rendering_test.cpp, where I can be wrong here?

static void callback(void* buffer, size_t size, void* user) {
    std::cout << "Here" << std::endl;
}

int runTest()
{
    mEngine = Engine::create(Engine::Backend::OPENGL);
    mSurface = mEngine->createSwapChain(16,16);
    mRenderer = mEngine->createRenderer();

    mScene = mEngine->createScene();

    mCameraEntity = utils::EntityManager::get().create();
    mCamera = mEngine->createCamera(mCameraEntity);

    mView = mEngine->createView();
    mView->setViewport({0, 0, 16, 16});
    mView->setScene(mScene);
    mView->setCamera(mCamera);

    mColorGrading = ColorGrading::Builder()
           .toneMapping(ColorGrading::ToneMapping::LINEAR)
            .build(*mEngine);
    mView->setColorGrading(mColorGrading);

    mSkybox = Skybox::Builder().build(*mEngine);
    mScene->setSkybox(mSkybox);

    size_t size = 16 * 16 * 4;
    void* buffer = malloc(size);
    memset(buffer, 0, size);
    PixelBufferDescriptor pd(buffer, size,
          PixelDataFormat::RGBA, PixelDataType::UBYTE,
          callback, nullptr);

    Renderer* pRenderer = mRenderer;
    pRenderer->beginFrame(mSurface);
    pRenderer->render(mView);
    pRenderer->readPixels(0, 0, 16, 16, std::move(pd));
    pRenderer->endFrame();
      
    mEngine->flushAndWait();

}

created time in 6 hours

issue openedUnityTechnologies/open-project-1

Jumping throw an exception

Short description Can't jump after new scene is loaded.

Expected behaviour Able to jump without throwing an exception.

To Reproduce

  1. Go to MainMenu scene
  2. Click on Start button
  3. Press SpaceBar (jump button)
  4. This exception "MissingReferenceException: The object of type 'SoundEmitter' has been destroyed but you are still trying to access it." happens.

Notes

  • You can try it in another scene (just make sure you load another scene on that scene)

created time in 6 hours

issue closedgoogle/filament

Problem with cameraProjection and image for background

Hello! im trying to show glb model on camera frames, when I set image as Texture on triangle for background and show glb model, glb model cropped: Screenshot 2020-11-23 at 18 02 18

when I set

camera->setProjection(60, (float) width / height, 0.01, 100);

Screenshot 2020-11-23 at 18 11 12

Model is full but I lost my my background, please can you advise where I can be wrong? Code:


struct Vertex {
    math::half4 position;
    math::half2 uv;
};

static const Vertex vertices[3] = {
        { { -1.0, -1.0, 1.0, 1.0}, {  0.0,  1.0} },
        { {  3.0, -1.0, 1.0, 1.0}, {  2.0,  1.0} },
        { { -1.0,  3.0, 1.0, 1.0}, {  0.0, -1.0} },
};
static constexpr uint16_t indices[3] = { 0, 1, 2 };

static std::ifstream::pos_type getFileSize(const char* filename) {
    std::ifstream in(filename, std::ifstream::ate | std::ifstream::binary);
    return in.tellg();
}


Entity printBackTriangle(Engine *engine)
{
    filamat::MaterialBuilder::init();

    filamat::MaterialBuilder builder;
    builder
            // parsed from feed_camera.mat
            .name("camera_feed")
            .shading(filamat::MaterialBuilder::Shading::LIT)
            .require(VertexAttribute::UV0)
            .parameter(filamat::MaterialBuilder::SamplerType::SAMPLER_2D, "cameraFeed")
            .parameter(filamat::MaterialBuilder::UniformType::MAT3, "textureTransform")
            .material("void material (inout MaterialInputs material) {"
                      "  prepareMaterial(material);"
                      "  material.baseColor.rgb = inverseTonemapSRGB(texture(materialParams_cameraFeed, getUV0()).rgb);"
                      "}")
            .materialVertex("void materialVertex(inout MaterialVertexInputs material) {\n"
                            "        // This applies the transform we received from displayTransformForOrientation.\n"
                            "       material.uv0 = (materialParams.textureTransform * float3(material.uv0, 1.0)).rg;\n}")
            .targetApi(filamat::MaterialBuilder::TargetApi::OPENGL)
            .flipUV(false)
            .build();

    //builder.materialVertex(vertexCode.c_str());
    filamat::Package package = builder.build();
    if (package.isValid()) { std::cout << "Success!" << std::endl; }
    filamat::MaterialBuilder::shutdown();
    assert(package.isValid());

    filament::Material *Material = Material::Builder()
            .package(package.getData(), package.getSize())
            .build(*engine);

    unsigned char *res_data, *splash_image;
    size_t res_size;
    int width, height, components;

    FILE* f = fopen("/Users/grigorysamokhin/Desktop/IMG_1900.jpg", "rb");
    fseek(f, 0, SEEK_END); res_size = ftell(f); rewind(f);

    res_data = new unsigned char[res_size];
    fread(res_data, sizeof(unsigned char), res_size, f);
    fclose(f);
    int x, y;
    splash_image = stbi_load_from_memory(res_data,
                                         res_size,
                                         &width,
                                         &height,
                                         &components,
                                         3);

    Texture* map = Texture::Builder()
            .width(uint32_t(width))
            .height(uint32_t(height))
            .sampler(Texture::Sampler::SAMPLER_2D)
            .levels(0xff)
            .format(backend::TextureFormat::RGB8)
            .build(*engine);


    const uint8_t stride = sizeof(Vertex);

    VertexBuffer::BufferDescriptor vertices_bck(vertices, sizeof(vertices), nullptr); // !! * 3
    IndexBuffer::BufferDescriptor indices_bck(indices, sizeof(indices), nullptr); // !! * 3

    VertexBuffer *VertexBuffer = VertexBuffer::Builder()
            .vertexCount(3)
            .bufferCount(1)
            .attribute(VertexAttribute::POSITION, 0,
                       VertexBuffer::AttributeType::HALF4, offsetof(Vertex, position), stride)
            .attribute(VertexAttribute::UV0, 0, //CHANGE COLOR TO UV0
                       VertexBuffer::AttributeType::HALF2, offsetof(Vertex, uv), stride)
            .build(*engine);

    IndexBuffer *IndexBuffer = filament::IndexBuffer::Builder()
            .indexCount(3)
            .bufferType(IndexBuffer::IndexType::USHORT)
            .build(*engine);

    VertexBuffer->setBufferAt(*engine, 0, std::move(vertices_bck));
    IndexBuffer->setBuffer(*engine, std::move(indices_bck));

    Entity CameraFeedTriangle = utils::EntityManager::get().create();
    filament::MaterialInstance *MaterialInstance = Material->getDefaultInstance();
    math::mat3f textureTransform1(1, 0, 0,
                                  0, 1, 0,
                                  0, 0, 1);

    MaterialInstance->setParameter("cameraFeed", map, TextureSampler());
    MaterialInstance->setParameter("textureTransform", textureTransform1);

    RenderableManager::Builder(1)
            .material(0, MaterialInstance)
            .geometry(0, RenderableManager::PrimitiveType::TRIANGLES, VertexBuffer, IndexBuffer, 0, 3)
            .culling(false)
            .receiveShadows(false)
            .castShadows(false)
            .build(*engine, CameraFeedTriangle);

    Texture::PixelBufferDescriptor buffer(splash_image, size_t(width * height * 3),
                                          Texture::Format::RGB, Texture::Type::UBYTE,
                                          (Texture::PixelBufferDescriptor::Callback) &stbi_image_free);

    (*map).setImage(*engine, 0, std::move(buffer));// Image(*engine, 0, std::move(buffer));

    return CameraFeedTriangle;
}

int width = 604*2;
int height = 806*2;

int main()
{
    glfwInit();
    glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);

    GLFWwindow *window = glfwCreateWindow(width/2, height/2, "Test", nullptr, nullptr);
    auto win = get_nsview(window);
    Engine *engine = Engine::create(Engine::Backend::OPENGL);

    SwapChain *swapChain = engine->createSwapChain(win);

    Camera *camera = engine->createCamera();
    auto t = camera->getProjectionMatrix();
    auto tt = camera->getPosition();
    // camera->setProjection(60, (float) width / height, 0.01, 100);

    Renderer *renderer = engine->createRenderer();
    View *view = engine->createView();
    Scene *scene = engine->createScene();
    view->setViewport({0, 0, uint32_t(width), uint32_t(height)});

    view->setScene(scene);
    view->setCamera(camera);

    Skybox* skybox;
    utils::Entity light;

    auto& tcm = engine->getTransformManager();

    auto& em = utils::EntityManager::get();
    light = em.create();
    LightManager::Builder(LightManager::Type::SUN)
            .color(Color::toLinear<ACCURATE>(sRGBColor(0.98f, 0.92f, 0.89f)))
            .intensity(110000)
            .direction({ 0.7, -1, -0.8 })
            .sunAngularRadius(1.9f)
                    //.castShadows(ENABLE_SHADOWS)
            .build(*engine, light);
    scene->addEntity(light);

    Entity CameraFeedTriangle = printBackTriangle(engine);

    scene->addEntity(CameraFeedTriangle);
    utils::Path filename("/Users/grigorysamokhin/Desktop/SberDevices-masks/wolf.glb");
    long contentSize = static_cast<long>(getFileSize(filename.c_str()));
    std::ifstream in(filename.c_str(), std::ifstream::binary | std::ifstream::in);
    std::vector<uint8_t> buffer(static_cast<unsigned long>(contentSize));
    if (!in.read((char*) buffer.data(), contentSize)) {
        std::cerr << "Unable to read " << filename << std::endl;
        exit(1);
    }

    gltfio::MaterialProvider* materialProvider = gltfio::createUbershaderLoader(engine);
    gltfio::AssetLoader* assetLoader = gltfio::AssetLoader::create({engine, materialProvider, nullptr});;
    gltfio::FilamentAsset* asset = assetLoader->createAssetFromBinary(buffer.data(), static_cast<uint32_t>(contentSize));
    gltfio::ResourceLoader({
          .engine = engine,
          .normalizeSkinningWeights = false,
          .recomputeBoundingBoxes = false
    }).loadResources(asset);

    buffer.clear();
    buffer.shrink_to_fit();

    auto tiGltf = tcm.getInstance(asset->getRoot());
    math::mat4f transformGltf = math::mat4f{ math::mat3f(1), math::float3(0, 0, -1) };

    math::mat4f model = tcm.getTransform(tiGltf);
    model[3].xyz = math::float3(0.33,0.33, -1);

    tcm.setTransform(tiGltf, math::mat4f::translation(math::float3{ 0, 0, -1, })
    * math::mat4f::scaling(0.8)
    );

    scene->addEntities(asset->getEntities(), asset->getEntityCount());

    while (!glfwWindowShouldClose(window)) {
        glfwPollEvents();
        if (renderer->beginFrame(swapChain)) {
            renderer->render(view);
            renderer->endFrame();
        }
    }

closed time in 8 hours

GrigorySamokhin

issue commentyarnpkg/yarn

Permission denied for package after using yarn link

Same:

  • Node: 12.19.0
  • Yarn: 1.22.4
  • Ubuntu: 20.04
tongy

comment created time in 9 hours

issue commentnecolas/react-native-web

animatedprops error only in production

@necolas Running into same issue

My setup is also same:

react-native-web: 0.12.3
react-native: 0.62

I'm using create-react-app's default react-scripts, i.e not the react-native-web babel plugin. Any ideas on how to fix this?

sirpy

comment created time in 9 hours

more