Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

JodoKast

User Interface

This topic is 5148 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I implement a nice looking frame around the outside of my screen (like in Diablo and Diablo II)? Do I render the whole scene and then render a transparent texture that covers the screen area last? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Are yuo trying to make a HUD? If so then i would use Ortho. But atthe mo im pretty much on the same question as u...

--------



"Here lies a toppled God,
His fall was not a small one,
We but built his pedastle,
A narrow, and a tall one"
Frank Herbert (Dune:Messiah)

Share this post


Link to post
Share on other sites
Well, yeah, the ortho mode is standard, but he asked how to render a scene and not cover it by the HUD.

Share this post


Link to post
Share on other sites
Unless he uses the scissor test, to avoid drawing on the edges, or uses two different viewports, a smaller one for the scene and a bigger one for the GUI, then he should first draw the scene (persoective) and then go to Ortho and draw the GUI.

Share this post


Link to post
Share on other sites
i was detailing the method of doing it assuming you have already draw your scene, granted i could have been clearer but hey, thats life

Share this post


Link to post
Share on other sites
hmm.. i take it the scissor test can reject quite a bit earlier than the z-test? though the latter allows for fancy shapes. drawing the gui first with minimal z should usually work in most cases, shouldnt it?

Share this post


Link to post
Share on other sites
quote:
Original post by Trienco
hmm.. i take it the scissor test can reject quite a bit earlier than the z-test? though the latter allows for fancy shapes. drawing the gui first with minimal z should usually work in most cases, shouldnt it?


Well, it''s always a good idea to draw the GUI last, Z test disabled. It''s safer, because you don''t want the have parts of the GUI covered by a clif or something (by accident).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!