Effects plugin (2 Viewers)

A

Anonymous

Guest
I'm sorry, please excuse my complete stupidity, but how on earth do i install this plugin?? I copied the dll to my plugins folder and went into the plugins section in the config tool but there is no mention of it.

What have i done wrong? :(
 

wishywashy

Portal Pro
January 31, 2005
495
13
Hill AFB, UT
Home Country
United States of America United States of America
Smirnoff

It makes no difference on or off, stays around 5-7% at home page. However, with the new plug in, there are "black lines" between the moving textures. Is this one of the bugs you are aware of?
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
The plugin has been updated to reflect the changes in MP's rendering code, the latest version is here. Note that it will not work with any version of MP prior to the excellent 0.1.0.10 release.

There is a minor change also, in the previous versions you could make an image stationary by specifying a speed of 0, that was rather stupid as it meant the bloat effect alone couldn't be speed controlled. You now create a static image by not specifying a direction.
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
Made more changes to the plugin:

bloatrange is no longer supported
bloatmin added, values 1 - 255 (minimum alpha value)
bloatmax added, values 1 - 255 (maximum alpha value)
bloattime added, values 1 - whatever (time in seconds for bloat)
speed is now a time based value.

The movement is now smoother than before but could be better.

The following layers, using eLow's fog graphics, make for an almost rippling pond effect (well kinda anyway):

<control><id>666</id><type>imageeffect</type><texture>fog1.png</texture><speed>1</speed><direction>up</direction><bloat>yes</bloat><bloatmin>155</bloatmin></control>
<control><id>667</id><type>imageeffect</type><texture>fog1.png</texture><speed>2</speed><direction>down</direction><bloat>yes</bloat><bloatmin>1</bloatmin></control>
<control><id>666</id><type>imageeffect</type><texture>fog2.png</texture><speed>3</speed><direction>up</direction><bloat>yes</bloat><bloatmin>55</bloatmin></control>
<control><id>666</id><type>imageeffect</type><texture>fog2.png</texture><speed>4</speed><direction>down</direction><bloat>yes</bloat><bloatmin>1</bloatmin></control>

I'm sure someone with eLow or Samsonite's graphics skills could give us something more like the real thing ;).

The plugin can be downloaded from here.
 

eLow

Portal Pro
February 18, 2005
77
0
The Netherlands
I'll continue work on my 'black myst emerging from rippling pond' skin this weekend! ;-)

Does time-based also mean speeds can exceed the number of frames per second?
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
We're still constrained by the frame rate but you can make it an image move very quickly.

I've just noticed that setting a time of a 90 seconds for an image 720 x 1152 results in the image not moving at all when the app has focus but its moves okay when not focused :?
 
N

narcan

Guest
Can anyone shed any light on these errors I'm getting



Code:
18/03/2005 8:20:16 PM Exception in plugin loading :Method Render in type MediaPortal.Plugins.MyEffects.MyImageEffect from assembly MyEffects, Version=1.0.1901.25442, Culture=neutral, PublicKeyToken=null does not have an implementation.

18/03/2005 8:20:16 PM ERROR: unknown control:<imageeffect>
18/03/2005 8:20:16 PM Unable to load control. exception:System.NullReferenceException: Object reference not set to an instance of an object.
   at MediaPortal.GUI.Library.GUIWindow.LoadControl(XmlNode node, ArrayList controls)
18/03/2005 8:20:16 PM ERROR: unknown control:<imageeffect>
18/03/2005 8:20:16 PM Unable to load control. exception:System.NullReferenceException: Object reference not set to an instance of an object.
   at MediaPortal.GUI.Library.GUIWindow.LoadControl(XmlNode node, ArrayList controls)
18/03/2005 8:20:16 PM ERROR: unknown control:<imageeffect>
18/03/2005 8:20:16 PM Unable to load control. exception:System.NullReferenceException: Object reference not set to an instance of an object.
   at MediaPortal.GUI.Library.GUIWindow.LoadControl(XmlNode node, ArrayList controls)
18/03/2005 8:20:16 PM ERROR: unknown control:<imageeffect>
18/03/2005 8:20:16 PM Unable to load control. exception:System.NullReferenceException: Object reference not set to an instance of an object.

I have the latest version of the plugin in plugins/process.

Am trying with the following lines in home.xml

Code:
	<control><id>666</id><type>imageeffect</type><texture>fog1.png</texture><speed>1</speed><direction>up</direction><bloat>yes</bloat><bloatmin>155</bloatmin></control>
	<control><id>667</id><type>imageeffect</type><texture>fog1.png</texture><speed>2</speed><direction>down</direction><bloat>yes</bloat><bloatmin>1</bloatmin></control>
	<control><id>666</id><type>imageeffect</type><texture>fog2.png</texture><speed>3</speed><direction>up</direction><bloat>yes</bloat><bloatmin>55</bloatmin></control>
	<control><id>666</id><type>imageeffect</type><texture>fog2.png</texture><speed>4</speed><direction>down</direction><bloat>yes</bloat><bloatmin>1</bloatmin></control>
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
Those errors appear in your log because at the time the home window is initialized MP knows nothing about the imageeffect control. The plugin is loaded and registers the control shortly after and a refresh is forced upon the home window to get the effect going. It's nothing to worry about.
 
N

narcan

Guest
I must be doing something else wrong as I'm unable to see the effects.

I've got the lines placed at the end of home.xml and am using 0.1.0.10 .. I'll keep trying.
 

Users who are viewing this thread

Top Bottom