Discussion on extra transparent render passes

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Discussion on extra transparent render passes

Post by bitplane »

As per this bug, we could do with more render passes for transparent materials.
At first I was thinking that the best way to implement this would be to add SMaterial::Priority and sort nodes first by priority and then by their distance, but this wouldn't work with meshes that have multiple transparent buffers and different priorities attached to each one.
Can anyone think of a clean solution for this? I was thinking maybe ISceneManager::registerMeshBufferForRendering, which would allow us to remove the pass-specific code from CMeshSceneNode and possibly sort the scene in a way that reduces material changes.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

the simplest method is to just add another render pass.
i did it and will be checked in my next q3-update ( which greatly improves quake3 scenes )
burningreggae
Post Reply