so far i could modified the image set in CEGUI
and change the background of taharez look
(thanks to Eddie and CEGUI community)
i just curious how to put the image in tiled order
do we have to change the look n feel file
or there is an option to change it only in layout file
because i want to create side panel and would like to use 1 x 50 pixel (height x width) and repeat it vertically in right side of screen
do "static image window" able to do it?
i read in this thread:
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=953&highlight=tile+image
it stated the smaller the file the more the system suffer from copying the image
does it means the image that is not tiled is increasing the performance?
thank you
[solved]vertical tiled image
Moderators: CEGUI MVP, CEGUI Team
[solved]vertical tiled image
Last edited by K0h4n on Fri Jul 18, 2008 09:03, edited 1 time in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
First I'll tell you how to do it, then I'll tell you not to do it...
It's possible to specify image formatting in either the looknfeel file or the layout file. Generally speaking for a widget type to support such an option in the layout it has to be setup previously in the looknfeel.
Basically the ImageryComponent has two optional elements that can be specified and used for formatting, in the most basic case these elements are named "VertFormat" and "HorzFormat" and are specified right in the looknfeel. In order that these formatting values can be exposed to the layout system, we also have provided "VertFormatProperty" and "HorzFormatProperty". These *Property versions specify the name of a property that holds the formatting to be used.
The StaticImage already has this set up for you, and you can use the "HorzFormatting" and "VertFormatting" named properties in layouts. The options for vertical formatting are: "TopAligned", "CentreAligned", "BottomAligned", "Stretched" and "Tiled".
Now, as you basically already read in the thread you linked, you almost certainly do not want to be doing this. If you tile a 1 pixel image down the side of the screen that's one additional element to render for every pixel - at a modest resolution of 1024x768 that's 768 additional things that need to be drawn - this will definitely have a negative impact on performance. Consider that tiling a 1 pixel image is actually no different than stretching the same image (though admittedly, you have to have to consider and allow for mag filtering) - it just costs potentially a huge amount in rendering time.
If you do go ahead with this (by all means, you can try it!) please do not subsequently ask how to increase performance afterwards - currently there is no easy answer (in a few weeks, maybe there will be, but right now, no).
HTH
CE.
First I'll tell you how to do it, then I'll tell you not to do it...
It's possible to specify image formatting in either the looknfeel file or the layout file. Generally speaking for a widget type to support such an option in the layout it has to be setup previously in the looknfeel.
Basically the ImageryComponent has two optional elements that can be specified and used for formatting, in the most basic case these elements are named "VertFormat" and "HorzFormat" and are specified right in the looknfeel. In order that these formatting values can be exposed to the layout system, we also have provided "VertFormatProperty" and "HorzFormatProperty". These *Property versions specify the name of a property that holds the formatting to be used.
The StaticImage already has this set up for you, and you can use the "HorzFormatting" and "VertFormatting" named properties in layouts. The options for vertical formatting are: "TopAligned", "CentreAligned", "BottomAligned", "Stretched" and "Tiled".
Now, as you basically already read in the thread you linked, you almost certainly do not want to be doing this. If you tile a 1 pixel image down the side of the screen that's one additional element to render for every pixel - at a modest resolution of 1024x768 that's 768 additional things that need to be drawn - this will definitely have a negative impact on performance. Consider that tiling a 1 pixel image is actually no different than stretching the same image (though admittedly, you have to have to consider and allow for mag filtering) - it just costs potentially a huge amount in rendering time.
If you do go ahead with this (by all means, you can try it!) please do not subsequently ask how to increase performance afterwards - currently there is no easy answer (in a few weeks, maybe there will be, but right now, no).
HTH
CE.
Who is online
Users browsing this forum: No registered users and 3 guests