Jump to content


Photo

Help With Reflection On A Variable Image


  • Please log in to reply
4 replies to this topic

#1 rockdawg

rockdawg

    X-S X-perience

  • Members
  • PipPip
  • 318 posts

Posted 22 August 2007 - 01:09 AM

I am trying to figure out some things about skinning XBMC and I have managed to make a few relatively minor mods to xTV. I was checking out MacGyver's carousel home menu and love the idea of a dynamic weather image. I've managed to get the main image to be dynamic, but I can't seem to figure out how to get the reflection to do the same. Here is my current code:

CODE
<control type="image">
    <description>Weather Image</description>
    <posx>-400</posx>
    <posy>145</posy>
    <width>175</width>
    <height>230</height>
    <info>Weather.Conditions</info>
    <aspectratio>-</aspectratio>
    <visible>Control.HasFocus(11)</visible>
    <animation effect="slide" start="540,0" end="0,100" time="100" condition="Control.HasFocus(11)">Visible</animation>
</control>
<control type="image">
    <description>Weather Image Reflection</description>
    <posx>-400</posx>
    <posy>375</posy>
    <width>175</width>
    <height>230</height>
    <texture flipy="true" diffuse="fade.png">-</texture>
    <aspectratio>-</aspectratio>
    <visible>Control.HasFocus(11)</visible>
    <animation effect="slide" start="540,0" end="0,100" time="100" condition="Control.HasFocus(11)">Visible</animation>
</control>


Since the dynamic weather icon is called from the <info> tag and the reflection uses texture attributes, how do I get the dynamic image in there? It looked like MacGyver's code just used the dash instead oif a filename, but I still get the old reflection. Can anyone help?

#2 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 22 August 2007 - 01:16 AM

Add this line to the lower image
<info>Weather.Conditions</info>
and don't remove
<texture flipy="true" diffuse="fade.png">-</texture>

P.S I recently changed how xTV home works so it may not work to well in the new way

#3 rockdawg

rockdawg

    X-S X-perience

  • Members
  • PipPip
  • 318 posts

Posted 22 August 2007 - 02:05 AM

QUOTE(Jezz_X @ Aug 21 2007, 08:52 PM) View Post

Add this line to the lower image
<info>Weather.Conditions</info>
and don't remove
<texture flipy="true" diffuse="fade.png">-</texture>

P.S I recently changed how xTV home works so it may not work to well in the new way



Thanks a lot! Now that I see it I feel stupid? Duh!

What about blurring the image? xTV has three images for each button. One is normal and the other two are blurred to varying degrees as the image moves further out of focus. How can I achieve that with this dynamic image?

#4 CHI3f

CHI3f

    X-S Genius

  • Members
  • PipPipPipPip
  • 761 posts
  • Location:Salem NJ
  • Xbox Version:v1.6b
  • 360 version:v5.0 (360S - trinity)

Posted 22 August 2007 - 02:28 AM

As far as I know you can't. sad.gif

#5 rockdawg

rockdawg

    X-S X-perience

  • Members
  • PipPip
  • 318 posts

Posted 22 August 2007 - 02:45 AM

That's too bad, because it's really noticable on a HDTV. I know I could remove the the blur from the other xTV images, but I'm not sure that will look as good. I suppose if there was a way to do it you'd already be doing it. Not sure what I'll do now.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users