Horde3D http://horde3d.org/forums/ |
|
raw GL after rendering http://horde3d.org/forums/viewtopic.php?f=8&t=1080 |
Page 1 of 1 |
Author: | jimbo [ 20.01.2010, 11:10 ] |
Post subject: | raw GL after rendering |
I think it would be convenient to make Code: void Renderer::setupViewMatrices( CameraNode *cam ); available from the C-API.This makes it simpler to do raw GL calls after h3dFinalizeFrame(); f.e.: Code: // Finish rendering of frame h3dFinalizeFrame(); h3dSetupViewMatrices(_cam); glLineWidth(2.0f); glColor4f(1.0f, 1.0f, 1.0f, 1.0f); glBegin(GL_LINES); glVertex3f(1.0f, 1.0f, 1.0f); glVertex3f(2.0f, 2.0f, 2.0f); glEnd(); PS. It seems doing raw GL calls when using the HDR pipeline doesn't draw anything. |
Author: | marciano [ 21.01.2010, 01:32 ] |
Post subject: | Re: raw GL after rendering |
Do you need that for debug geometry? I would prefer to not encourage usage of custom GL commands. The next version of horde will definitely have some API agnostic debug drawing function. |
Author: | jimbo [ 21.01.2010, 10:25 ] |
Post subject: | Re: raw GL after rendering |
Yes it's for debug drawing at this point. Platform independent rendering of primitives would be great. There are more uses to do custom rendering after Horde3D finishes like certain middleware (particle systems, GUI systems etc). |
Author: | marciano [ 22.01.2010, 20:56 ] |
Post subject: | Re: raw GL after rendering |
jimbo wrote: There are more uses to do custom rendering after Horde3D finishes like certain middleware (particle systems, GUI systems etc). It is better to wrap middleware into an extension, otherwise you have no control over where in the pipeline it should be handled (e.g. usually you don't want your particle system to be drawn after the overlays). |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |