Horde3D

Next-Generation Graphics Engine
It is currently 26.04.2024, 07:57

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 14.07.2010, 21:48 
Offline

Joined: 26.08.2008, 18:48
Posts: 120
After calling h3dInit the OpenGL states are not set back to default. As far as I can see Renderer::finishRendering does this, but this function is called only at the end of the Render function.

To solve this I've called finishRendering at the end of init. This solved the problem partially for me. I have to call bindBuffer(0) too.

I noticed while I was debugging finishRendering
(called from init) that in egRendererBase _vpX and _vpY are uninitialized. (In egRendererBase::egRendererBase() only _vpWidth and _vpHeight is set)


Top
 Profile  
Reply with quote  
PostPosted: 16.07.2010, 16:09 
Offline

Joined: 26.08.2008, 18:48
Posts: 120
I have some other problem with attached objects.
I'm integrating horde3d with a gui engine. It also uses OpenGL for rendering, but it doesn't use VBO. The creating functions in Horde3D (createVertexBuffer and createIndexBuffer) leaves the objects binded and it made the gui/particle engine crash. While I would unbind these buffers outside of horde, It would ease the integration if horde3d unbind these objects (like createTexture does).

Thanks


Top
 Profile  
Reply with quote  
PostPosted: 17.07.2010, 22:33 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks attila, we will take care of that.


Top
 Profile  
Reply with quote  
PostPosted: 26.07.2010, 15:00 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
Cool.
Please add bindShader(0) to clean the state as well.
Thanks Alex


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 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