Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 09:28

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: 25.09.2009, 09:40 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
Volker pretty much hit on the same use-case as me. Recast, the navmesh library I use, has lots of GL drawing stuff in its debugging interface. I've simply disabled shaders and then called its debug drawing to draw the debug stuff it want to. This pretty much works fine. Although immediate mode draw calls arent fast, its debug so I dont particularly care.

No point in cluttering Horde with this kind of thing I dont think.


Top
 Profile  
Reply with quote  
PostPosted: 27.09.2009, 11:17 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
AFAIK Bullet for example is abstracting the debug drawing and has a clean way to customize it. We certainly don't want to/won't clutter the API but I see debug draw functionality as an important productivity feature and it will become vital when your game engine complexity or team size grow. Imagine you have to profile a bunch of levels that your designers have created. It will be very helpful if you can quickly visualize the polygon count of objects, the number of materials, LODs and so on encoded as colors. It is also required that you can quickly see occlusion planes and sectors that they have set up. You can argue now that this is game engine functionality but Horde should at least make it easy to support these things.

We can still reset states when Horde has fiished rendering and in fact we already do this, so you can use your own GL calls. I agree with you and Volker that this is convenient but be aware that it will break as soon as Horde supports other rendering backends.


Top
 Profile  
Reply with quote  
PostPosted: 27.09.2009, 13:15 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
its a fair trade to break when you change renderers.

One thing I would be wary of, is going down the Ogre route of supporting rendering backends via a DLL. I would much prefer to just have a simple abstraction device and then implementations of the abstraction in whatever render API is being supported.

Lets not forget that this might not just be DX/GL, but might have console rendering as well, or iphone or whatever.


Top
 Profile  
Reply with quote  
PostPosted: 27.09.2009, 21:13 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
zoombapup wrote:
One thing I would be wary of, is going down the Ogre route of supporting rendering backends via a DLL. I would much prefer to just have a simple abstraction device and then implementations of the abstraction in whatever render API is being supported.

That was discussed several months ago. The current plan is that the the backends will be linked purely statically, without virtual functions. So you will have one horde DLL per API and your application can choose which one to use.


Top
 Profile  
Reply with quote  
PostPosted: 23.11.2009, 11:47 
Offline

Joined: 22.11.2009, 22:32
Posts: 6
marciano wrote:
That was discussed several months ago. The current plan is that the the backends will be linked purely statically, without virtual functions. So you will have one horde DLL per API and your application can choose which one to use.


Definitely a good choice, wrapping everything with virtual methods introduces way too much unnecessary indirections (for something that is usually known at compile time, or at least remains constant for the entire lifetime of an app).

On the topic of debug draw: I think it would be very important to have such functionality, and it is definitely preferrable to have a backend-independent way of doing it


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

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