Jump to content

PostEffects and SetSSR(true) leads to runtime exception


klepto2
 Share

Go to solution Solved by Josh,

Recommended Posts

Hi,

i get this with the latest update as soon as i add any PostEffect or activate SSR on a camera:

>	ucrtbased.dll!00007ffece0e2fb5()	Unbekannt
 	ucrtbased.dll!00007ffece0e3153()	Unbekannt
 	ucrtbased.dll!00007ffece0fae2d()	Unbekannt
 	ucrtbased.dll!00007ffece0f9db0()	Unbekannt
 	ucrtbased.dll!00007ffece1deee9()	Unbekannt
 	ntdll.dll!00007fff9df1221f()	Unbekannt
 	ntdll.dll!00007fff9dec14b4()	Unbekannt
 	ntdll.dll!00007fff9df10d2e()	Unbekannt
 	KernelBase.dll!00007fff9bb6cf19()	Unbekannt
 	vcruntime140d.dll!00007fff4aa8b760()	Unbekannt
 	PfxTest_d.exe!UltraEngine::RuntimeError(class UltraEngine::WString const &)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Assert(bool)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Render::RenderTexture::Initialize(enum UltraEngine::TextureType,int,int,int,int,int,bool,int,enum UltraEngine::TextureFlags,int,int)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Render::RenderBuffer::Initialize(int,int,int,int,int,bool,int,bool,int,int,bool)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Render::RenderCamera::PrepareBuffers(class std::shared_ptr<class UltraEngine::Render::RenderContext>,class std::shared_ptr<class UltraEngine::Culling::CameraVisibilityList>)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Render::RenderingThreadManager::Update(bool)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Core::ThreadManager::EntryPoint(class std::shared_ptr<class UltraEngine::Object>)	Unbekannt
 	PfxTest_d.exe!UltraEngine::Thread::thread_function(void *)	Unbekannt
 	ucrtbased.dll!00007ffece103010()	Unbekannt
 	kernel32.dll!00007fff9dd87344()	Unbekannt
 	ntdll.dll!00007fff9dec26b1()	Unbekannt

Code:

#include "UltraEngine.h"
#include "Components/Motion/Mover.hpp"
#include "Components/Player/CameraControls.hpp"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    RegisterComponent<Mover>();
    RegisterComponent<CameraControls>();

    //Get the displays
    auto displays = GetDisplays();

    //Create a window
    auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR);

    //Create a world
    auto world = CreateWorld();

    //Create a framebuffer
    auto framebuffer = CreateFramebuffer(window);

    //Create a camera
    auto camera = CreateCamera(world);
    camera->SetClearColor(0.125);
    camera->SetFov(70);
    camera->SetPosition(0, 0, -3);
    camera->SetSSR(true);

    //Create a light
    auto light = CreateBoxLight(world);
    light->SetRotation(35, 45, 0);
    light->SetRange(-10, 10);

    //Create a box
    auto box = CreateBox(world);
    box->SetColor(0,0,1);

    //Entity component system
    auto component = box->AddComponent<Mover>();
    component->rotationspeed.y = 45;

    //Main loop
    while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false)
    {
        world->Update();
        world->Render(framebuffer);
    }
    return 0;
}

 

  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...