MattvB
Topic Author
Posts: 1
Joined: 26 Jun 2025, 06:57

Changing Text from default renders black screen

29 Jun 2025, 18:58

Update: now it started working with no changes ... Im not sure whats going on. Anyways I have the samples and learning that way... But any advice or good tutorials would be nice
If I make a xmal with plain text it shows up fine in game.. c++ directx 11. if i add any effects like drop shadow or Opacity and run my app it just shows a black screen ... not even my models render.
I just got Noesis so im very new and just starting to learn it.
void NoesisUI::Initialize()
{
	if (m_Initialized) return;

	Noesis::SetLogHandler([](const char*, uint32_t, uint32_t level, const char*, const char* msg)
		{
			switch (level)
			{
			case 0: case 1: case 2: LOG_INFO("[NOESIS] {}", msg); break;
			case 3: LOG_WARN("[NOESIS] {}", msg); break;
			case 4: LOG_ERROR("[NOESIS] {}", msg); break;
			default: LOG_INFO("[NOESIS] {}", msg); break;
			}
		});

	SetLicense();
	GUI::Init();

	// Set resource providers
	auto xamlPath = (GetAssetsDirectory() / "UI").string();
	auto fontPath = (GetAssetsDirectory() / "Fonts").string();
	auto texturePath = (GetAssetsDirectory() / "UI").string();

	GUI::SetXamlProvider(MakePtr<LocalXamlProvider>(xamlPath.c_str()));
	GUI::SetFontProvider(MakePtr<LocalFontProvider>(fontPath.c_str()));
	GUI::SetTextureProvider(MakePtr<LocalTextureProvider>(texturePath.c_str()));

	const char* fonts[] = { "Fonts/Roboto-Regular.ttf", "Arial", "Segoe UI Emoji" };
	GUI::SetFontFallbacks(fonts, 3);
	GUI::SetFontDefaultProperties(15.0f, FontWeight_Normal, FontStretch_Normal, FontStyle_Normal);

	InitializeRenderDevice();
	m_Initialized = true;
}
	void NoesisUI::InitializeRenderDevice()
	{
		auto* device = static_cast<ID3D11Device*>(EEContext::Get().GetDevice());
		auto* context = static_cast<ID3D11DeviceContext*>(EEContext::Get().GetContext());

		m_RenderDevice = NoesisApp::CreateRenderDevice(device, context);
	}
I'm just doing this as a hobby, Solo learning directx 11 and Noesis any advice would help.
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Changing Text from default renders black screen

30 Jun 2025, 12:29

This issue is likely occurring because the offscreen render is not being applied before binding the main framebuffer. The Integration Guide provides a clear explanation of the correct rendering sequence.

To diagnose the problem effectively, we recommend using RenderDoc to compare your integration with the behavior in XamlPlayer. This will help identify any differences in the rendering pipeline.

Who is online

Users browsing this forum: Bing [Bot] and 2 guests