Jump to content

Stretching image in XML


tomm434

Recommended Posts

 

 

Hello everyone!

 

ENBs prevent image modifiers from playing (effects like Fade-To-black occuring) so I decided to make black screen using menus. I have black .dds texture.

 

Now I want this effect to work for all resolutions which means I'll have to assume user plays at 4k HD resolution which is 4096 × 3112

 

I resized my .dds texture to match that but now it's weight is 8 mb.

 

 

1) Can I leave it like that? (8 mb is a lot for a texture in my opinion and if it will be loaded on every game load I would feel uncomfortable)

 

2) If not, what tag to I use to stretch the image?

 

I found this page but I didn't find appropriate tag.

http://cs.elderscrolls.com/index.php?title=Property_Element

 

 

Here is the code for the pic. <Width> and <Height> don't work as intended. FileWidth, FileHeight don't work too,

</image>
		<image name="ScrollFrame">
<visible>
	<copy src="io()" trait="_aFPSDescrVis" />
</visible>
			<filename> blacktexture.dds </filename>
			<depth> 21 </depth>
<x>
	<copy src="screen()" trait="width"/>
	<sub src="me()" trait="width"/>
</x>

<y> 525 </y>

			<height> 30000 </height>
			<width> 30000 </width>

			<FileWidth> 30000 </FileWidth>
			<FileHeight> 30000 </FileHeight>

</image>

In-game this looks like this (thought size of texture is 300x300)

 

 

http://s6.postimg.org/v1ic0zju5/Fallout_NV_2015_10_12_03_12_06_501.jpg

 

 

Also is there a FULL list o XML tags which will work in FalloutNV?

 

 

 

Nevermind figured it out somehow

 

Final code:

</image>
        <image name="Lunette_BlackScreen">
<visible>
    <copy src="io()" trait="_Lunette_BlackISFX" />
</visible>
            <filename> blacktexture.dds </filename>
            <depth> 21 </depth>
<x>
    <copy src="screen()" trait="width"/>
    <sub src="me()" trait="width"/>
</x>

<y>     <copy src="screen()" trait="height"/>
    <sub src="me()" trait="height"/> </y>



            <height> <copy src="screen()" trait="height"/>
 </height>

            <width>     <copy src="screen()" trait="width"/>
 </width>



        <Depth>0</Depth>


</image>

And yet another question - Can I make image or text dissapear (not just vanish instantly) without using Alpha tag?

Edited by tomm434
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...