Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Panda3D and Noesis integration (problems)

26 Nov 2018, 17:02

Hello

I integrated Noesis 2.1 in to panda. Not fully only GUI rendering. Which render fine, until I change to Noesis beta. I use OpenGL is there something new in OpenGL rendering? Because it cause problems under Panda3D engine.

Another problems are, it crashes evrytime I exit window (Noesis 2.1 or new beta).

this is how I end Noesis:
if (m_NS_IView != nullptr)
	{
		m_NS_IView->GetRenderer()->Shutdown();
		m_NS_IView.Reset();
		delete m_NS_IView;
		delete m_NS_FramElm;
		delete m_NS_Theme;
		delete m_NS_RenderDevice;
		Noesis::GUI::Shutdown();
	}

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Panda3D and Noesis integration (problems)

27 Nov 2018, 11:53

Those deletes look suspicious to me, are those Ptr instances? You should never destroy smart pointers like that. Let them destroy automatically or force a premature destroy by doing a Reset(). Please, read the C++ Architecture Guide carefully.
Because it cause problems under Panda3D engine.
Could you please elaborate about those problems?
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Panda3D and Noesis integration (problems)

27 Nov 2018, 14:42

I delete all "delete" code, but it is still crash on exit. And yes I have all Noesis objects as Ptr<>
Could you please elaborate about those problems?
Please look at this topic, on last screenshot where are black billboards, which cause new Noesis beta.
https://discourse.panda3d.org/t/help-wi ... c/24149/19
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Panda3D and Noesis integration (problems)

27 Nov 2018, 18:55

That's probably related to a new state that noesis is setting and panda is not restoring. Could you please make a diff between the working GLRenderDevice.cpp you tried and the new one?
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Panda3D and Noesis integration (problems)

27 Nov 2018, 19:21

Could you please make a diff between the working GLRenderDevice.cpp you tried and the new one?
I quite don't understand what you mean "make diff". Working GLRenderDevice is from Noesis 2.1.0f1 and not working is from 2.2.0b3 version. (if this is what your question means)
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Panda3D and Noesis integration (problems)

27 Nov 2018, 19:57

Yes, I mean, finding the differences in GLRenderDevice between 2.1 and 2.2 to discover the new GL states that could be affecting to Panda.
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Panda3D and Noesis integration (problems)

28 Nov 2018, 13:24

This is impossible task for me. I am sorry. I don't know graphics (OpenGL) programing.
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Panda3D and Noesis integration (problems)

30 Nov 2018, 00:53

I did it for you. Here you can find the differences between 2.1 and 2.2 in the GL renderer implementation:


Inspecting the changes I cannot find an explanation to the black screen. No extra GL state is affected.
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Panda3D and Noesis integration (problems)

30 Nov 2018, 11:29

Thank you very much. I'll show your difference code to Panda3D creators, maybe they will know where is problem. Thanks.
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Panda3D and Noesis integration (problems)

30 Nov 2018, 11:42

Probably, best thing you can show them to understand the integration is the minimal GL sample

Who is online

Users browsing this forum: No registered users and 1 guest