Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 10:59

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 17.08.2012, 04:08 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
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 16942 times ]
Top
 Profile  
Reply with quote  
PostPosted: 17.08.2012, 22:43 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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 );
   }


Top
 Profile  
Reply with quote  
PostPosted: 17.08.2012, 22:59 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Hm. I was hoping that was optional, as there's nothing "extra" I'm planning on rendering.

Thanks,


Top
 Profile  
Reply with quote  
PostPosted: 17.08.2012, 23:14 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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();


Top
 Profile  
Reply with quote  
PostPosted: 18.08.2012, 04:08 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Yep, that did it.

Thanks,


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group