Posts: 133
Joined: Mar 2009
Reputation:
0
I've checked the wiki but I can't seem to find whether you can specify a border for a diffuse image. I'm trying to maintain the aspect ratio of my rounded corners but when the aspect ratio of the image changes so does my diffuse. Any one know if it's possible and if so, how?
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
Its not possible sorry been requested but jmarshall said it will slow things down too much
Posts: 17,409
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,409
Shame because I'd love to see that feature.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Indeed, that's the reason. It's not the slowness per-se, but rather the amount of computation required to generate all the vertices and so on (and make sure we get it right).
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
Although I'm sure many will probably do stupid things like I posted above jmarshall the main reason we want this is too diffuse Icons and we don't apply a border to them (because it would look dumb) so really we are still only doing it 9 times
Maybe adding a simple logic check of if the image has a border then the diffuse wont get one applied so it never goes over the current 9 ?
Posts: 17,409
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,409
2011-07-25, 15:34
(This post was last modified: 2011-07-25, 16:04 by Hitcher.)
Seeing as most diffuse textures are used for round corners could we not just have a 'rounded corner' option for textures - either a percentage or pixel value - that way if the image is shown 'as is' it would still keep round corners?
Or am I simplifying a complex procedure?
EDIT: I also see Jezz asked about an 'overlay texture' and Jonathan said it wouldn't be a problem so I'd like to request that again please.
Either of these options would allow us to 'pretty up' images that keep their aspect ratio.
Thanks.
Posts: 133
Joined: Mar 2009
Reputation:
0
I like Hitchers proposal. Sounds nice and simple, although when it comes to programming it, I'm sure it won't be.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Using diffuse with border and main image without could be an option. It's not necessarily trivial though (technically that would be the same as swapping diffuse and main texture, except for the weirdness in the way orientation works for the main texture).
Posts: 17,409
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,409
Sorry, I didn't mean replace it just another option - we'd still want diffuses for reflections after all. I'd still like overlays (with a border size) to be considered though.