Horde3D
http://www.horde3d.org/forums/

Weird viewport issue with custom attachment plugin
http://www.horde3d.org/forums/viewtopic.php?f=6&t=1702
Page 1 of 1

Author:  tshannon [ 17.08.2012, 04:08 ]
Post subject:  Weird viewport issue with custom attachment plugin

I'm trying to build an attachment plugin for the Horde3d Scene editor, but for some reason whenever I use my plugin, the view port gets messed up. If I don't load my plugin, the viewport is fine.

See the attached screenshot.

Any ideas as to why this is?

Attachments:
Horde3dEditorViewportIssue.png
Horde3dEditorViewportIssue.png [ 265.67 KiB | Viewed 16945 times ]

Author:  Volker [ 17.08.2012, 22:43 ]
Post subject:  Re: Weird viewport issue with custom attachment plugin

Maybe it's because you have to implement the rendering part and didn't do that for the attachment plugin.

See the lines 262 to 267 in GLWidget.cpp

Code:
   
if (m_attachmentPlugIn)
{
      //Horde3D::render(m_activeCameraID); // Render scene   
      m_attachmentPlugIn->update();
      m_attachmentPlugIn->render( m_activeCameraID );
   }

Author:  tshannon [ 17.08.2012, 22:59 ]
Post subject:  Re: Weird viewport issue with custom attachment plugin

Hm. I was hoping that was optional, as there's nothing "extra" I'm planning on rendering.

Thanks,

Author:  Volker [ 17.08.2012, 23:14 ]
Post subject:  Re: Weird viewport issue with custom attachment plugin

AFAIK it was a quick hack I implemented to allow the physics component to render it's collision shapes.
But your implementation can be simply the code used in the GLWidget if you don't render any additional things.

Code:
h3dRender(cameraID); // Render scene   
h3dFinalizeFrame();

Author:  tshannon [ 18.08.2012, 04:08 ]
Post subject:  Re: Weird viewport issue with custom attachment plugin

Yep, that did it.

Thanks,

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/