Horde3D

Next-Generation Graphics Engine
It is currently 19.04.2024, 05:44

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: raw GL after rendering
PostPosted: 20.01.2010, 11:10 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
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.


Top
 Profile  
Reply with quote  
PostPosted: 21.01.2010, 01:32 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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.


Top
 Profile  
Reply with quote  
PostPosted: 21.01.2010, 10:25 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
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).


Top
 Profile  
Reply with quote  
PostPosted: 22.01.2010, 20:56 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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).


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 40 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