[Tips&Tricks] Own background mood with <mood>

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[Tips&Tricks] Own background mood with <mood>

Post by m4rcel »

I discovered a new feature of the Manialinks: You are able to set the color of the background, the clods and some light sources for your own. So you can make the Manialink come with a mood which matches your style or whatever ^^

Example (taken from ManiaHome):

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<manialink version="1" background="title" navigable3d="0">
	<timeout>0</timeout>
	<stylesheet>
		<mood
			LAmbient_LinearRgb="0.020 0.040 0.056"
			LDir0_LinearRgb="0.672 0.429 0.266"
			LDir0_Intens="1.000"
			LDir0_DirTheta="140.000"
			LDir0_DirPhi="-60.000"
			LDir1_LinearRgb="0.939 0.880 0.799"
			LDir1_Intens="2.000"
			LDir1_DirTheta="71.600"
			LDir1_DirPhi="142.000"
			LBall_LinearRgb="0.004 0.004 0.004"
			LBall_Intens="1.000"
			LBall_Radius="20000.000"
			CloudsRgbMinLinear="0.040 0.025 0.050"
			CloudsRgbMaxLinear="3.500 2.767 1.693"
			FogColorSrgb="0.000 0.000 0.000"
			SkyGradientV_Scale="1.000"
			SelfIllumColor="0.000 1.000 1.000"
		>
			<skygradient>
				<key x="0.05" color="fee199"/>
				<key x="0.2" color="fff7e8"/>
				<key x="0.3" color="976d48"/>
				<key x="0.45" color="4d1b24"/>
			</skygradient>
		</mood>
	</stylesheet>
	<frame3d style3d="ButtonH" sizen="64 10" />
</manialink>
Some explanations:
  • LAmbient_LinearRgb: Main color in which the 3D-elements relfect the light.
  • LDir0_*: Light source of the clouds.
  • LDir1_*: Direct light on the 3D-elements.
  • LDir*_LinearRgb: Color of the light source.
  • LDir*_Intens: Intensity of the light source.
  • LDir*_DirPhi, LDir*_DirTheta: Direction from which the light is coming.
  • LBall_*: I have no idea what these values do ^^
  • CloudsRgbMinLinear, CloudsRgbMaxLinear: Colors in which the clouds will appear.
  • FogColorSrgb: No idea.
  • SkyGradientV_Scale: scale factor for the <skygradient>
  • SelfIllumColor: No idea.
If you can find out the missing values, please complete my list ;)

For more details, have a look in my Manialink Tutorial @ Mania-Community.de (German only).


And, of course :D, I already integrated this feature in my "Tetris3D" (3D-menu alpha): The background mood is changing depending on the current time of the day. Some screenshots:

ImageImage
ImageImage
ImageImage
ImageImage
ImageImage
ImageImage
Image
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [Tips&Tricks] Own background mood with <mood>

Post by reaby »

nice one.
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest