fumanshoo Posted December 8, 2012 Share Posted December 8, 2012 Simple question. I assume that a HUD is just a plane in front of the camera and parented to it with applied PNG format alpha textures, but is that all there is to it? Oh and does LE even support alpha textures I haven't tested it out yet... Quote Link to comment Share on other sites More sharing options...
Rick Posted December 8, 2012 Share Posted December 8, 2012 You can do a decent HUD with 2D drawing commands. DrawImage() would be your friend there. You could do a 3D plane if you wanted to but it's a little more involved than just using DrawImage(). Quote Link to comment Share on other sites More sharing options...
ChrisMAN Posted December 8, 2012 Share Posted December 8, 2012 LE does support alpha. You have to set blend mode to 1. http://www.leadwerks...?title=SetBlend I have been using the 2d drawing commands to do my interfaces. http://www.leadwerks...itle=2D_Drawing I have a library that i have written that is about 85% to release an alpha. le_gui is sadly very complex. I am very happy with it but it sits around 1600 lines of code. It supports event propagation, stylesheets, a rich styles inheritence system, z sorting/index, control parenting, render caching, clipping, a good positioning system via top, left, bottom, right and most importantly a nice api. It is not documented and there are no examples so it might not even be worth your time to look at it. If you need an example of some code that will be able to handle complex interactions, it could be inspiring. Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted December 8, 2012 Share Posted December 8, 2012 Ah GUI programming. My most hated task. Not difficult but incredibly boring. Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
ChrisMAN Posted December 9, 2012 Share Posted December 9, 2012 I really like designing interfaces. I think that it is one of the easiest ways to get good usability in games that is often overlooked. Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted December 9, 2012 Share Posted December 9, 2012 I really like designing interfaces. I think that it is one of the easiest ways to get good usability in games that is often overlooked. Don't get me wrong... it is rather important. I've just done a lot of it so It bores me Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
fumanshoo Posted December 9, 2012 Author Share Posted December 9, 2012 @ChrisMAN: You should show me your gui when you finish. I am way too much of a beginner to understand most of the code you showed me, but I aspire to do so one day. And thanks for the links, I don't know why I hadn't checked the 2D drawing section earlier, I guess I was just so intrigued by the Frameworks command section that I became close minded when it came to every other command haha. @Rick: It's about time I work on 2D anyways, so I think I'll mess with that a bit. Thank you. Quote 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.