Spacechimp Posted December 27, 2009 Share Posted December 27, 2009 Hi, I am having trouble getting something to draw last. It is a gui mesh, and I want it to draw last on top of everything else. I kinda thought that zsort in the .mat file would achieve this. It doesn't seem to do this however? I am kinda thinking I need to be doing something special with the buffers? I dunno. Any ideas, hints, or direction would be welcome. Thanks! Quote Link to comment Share on other sites More sharing options...
Laurens Posted December 27, 2009 Share Posted December 27, 2009 Is there a special reason why you are using a mesh to draw your GUI on? I wouldn't know about z-sort but I do know that simply calling DrawImage after rendering for a GUI works like a charm. Quote Link to comment Share on other sites More sharing options...
Spacechimp Posted December 27, 2009 Author Share Posted December 27, 2009 Its a 3d object that is part of my GUI. I am not drawing the GUI to a 3d mesh. Quote Link to comment Share on other sites More sharing options...
Masterxilo Posted December 27, 2009 Share Posted December 27, 2009 Put the mesh in another world and draw that on top of the rest, clearing the depth buffer in between. 1 Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Josh Posted December 27, 2009 Share Posted December 27, 2009 Enable z-sorting in the material. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Chiblue Posted September 12, 2010 Share Posted September 12, 2010 I read this with interest, I am trying to do a similar thing... but failing, I tried using the z-sort... with depth mask and depth test settings, but my model appears to get culled... also the problem I have with this is my model has multiple materials so this causes problems in it's appearance.. I have not really worked much with worlds, I use the standard foreground for emitters. but can someone help me by explaining how I create my own world (yes I know CreateWorld ) but once it is created how do I ensure my model is rendered to that world and how do I ensure that that world is "on top" of everything else? Quote If it's not Tactical realism then you are just playing.. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.