Recent Posts

Pages: [1] 2 3 ... 10
1
Themes / Re: pandoras box 5 "release" by jedione
« Last post by nevincho on Today at 02:40:36 AM »
I start AM, activate the theme and get this from the picture. There is no game list and the details are not in place.

After add shuffle module:
2
Scripting / Re: KeyboardSearch module
« Last post by iOtero on Today at 02:19:54 AM »
my search screen is in the upper left corner, my question is, and how do I get it to the center of the screen?

This is what i do:
Code: [Select]

// Search
local search_surface = fe.add_surface(flw*0.375, flh*0.4)
KeyboardSearch(search_surface)
    .search_key(my_config["search_key"])
    .mode(my_config["search_method"])
    .text_color(255,255,255,125)
    .keys_color(255,255,255,125)
    .keys_selected_color(255,0,0,125)
    .init()
search_surface.set_pos(flx*0.215, fly*0.36, flw*0.375, flh*0.4);
3
General / Re: new BlendMode...
« Last post by iOtero on Today at 02:17:29 AM »
And all this what processor do you need?
Could a raspi 3 with it?
4
General / Re: new BlendMode...
« Last post by zpaolo11x on Today at 01:20:47 AM »
This is the code I used for the "drop shadow" effect:

Code: [Select]

local sizew = 280
local sizeh = 160

local bgpic = fe.add_text("",0,0,sizew,sizeh)
bgpic.set_bg_rgb (200,50,0)

local surf2 = fe.add_surface(sizew,sizeh)
local logox = surf2.add_artwork("wheel",20,20,240,120)
logox.preserve_aspect_ratio = true
logox.set_rgb(0,0,0)
logox.alpha=150

local surf1 = fe.add_surface(sizew,sizeh)

surf2.visible = false
surf2 = surf1.add_clone(surf2)
surf2.visible = true

local shaderH = fe.add_shader( Shader.Fragment, "frag.txt" )
shaderH.set_texture_param( "source")
shaderH.set_param("offsetFactor", 0.008, 0.0)
surf1.shader = shaderH

local shaderV = fe.add_shader( Shader.Fragment, "frag.txt" )
shaderV.set_texture_param( "source")
shaderV.set_param("offsetFactor", 0.0000, 0.008)
surf2.shader = shaderV

local logo00 = fe.add_artwork ("wheel",20,20-10,240,120)
logo00.preserve_aspect_ratio = true

and it uses the shader from that lauout in the file "frag.txt":

Code: [Select]
uniform sampler2D source;
uniform vec2 offsetFactor;

void main() {
    vec2 sourceCoordinates = gl_TexCoord[0].xy;
    vec4 color = vec4(0.0);
    color += texture2D(source, sourceCoordinates - 10.0 * offsetFactor) * 0.0012;
    color += texture2D(source, sourceCoordinates - 9.0 * offsetFactor) * 0.0015;
    color += texture2D(source, sourceCoordinates - 8.0 * offsetFactor) * 0.0038;
    color += texture2D(source, sourceCoordinates - 7.0 * offsetFactor) * 0.0087;
    color += texture2D(source, sourceCoordinates - 6.0 * offsetFactor) * 0.0180;
    color += texture2D(source, sourceCoordinates - 5.0 * offsetFactor) * 0.0332;
    color += texture2D(source, sourceCoordinates - 4.0 * offsetFactor) * 0.0547;
    color += texture2D(source, sourceCoordinates - 3.0 * offsetFactor) * 0.0807;
    color += texture2D(source, sourceCoordinates - 2.0 * offsetFactor) * 0.1065;
    color += texture2D(source, sourceCoordinates - offsetFactor) * 0.1258;
    color += texture2D(source, sourceCoordinates) * 0.1330;
    color += texture2D(source, sourceCoordinates + offsetFactor) * 0.1258;
    color += texture2D(source, sourceCoordinates + 2.0 * offsetFactor) * 0.1065;
    color += texture2D(source, sourceCoordinates + 3.0 * offsetFactor) * 0.0807;
    color += texture2D(source, sourceCoordinates + 4.0 * offsetFactor) * 0.0547;
    color += texture2D(source, sourceCoordinates + 5.0 * offsetFactor) * 0.0332;
    color += texture2D(source, sourceCoordinates + 6.0 * offsetFactor) * 0.0180;
    color += texture2D(source, sourceCoordinates - 7.0 * offsetFactor) * 0.0087;
    color += texture2D(source, sourceCoordinates - 8.0 * offsetFactor) * 0.0038;
    color += texture2D(source, sourceCoordinates - 9.0 * offsetFactor) * 0.0015;
    color += texture2D(source, sourceCoordinates - 10.0 * offsetFactor) * 0.0012;
    gl_FragColor = color;
}

The script works like this: you need to create two nested surfaces, place the image you want to blur on the topmost surface and add an horizontal blur to the first, vertical blur to the second.

It's not sufficient to use one surface and add horizontal to the surface, vertical to the image, because the blur will get clipped, you need all this safeguard area around the logo image.

This is a neat shader, it would be great for creating automatically drop shadows for thumbnails too, accurate in aspect ratio etc, but it's a bit heavy since it already needs two nested surfaces to work. Anyway that's the code :D
5
General / Re: Attract Mode has problems with Games with Launchers
« Last post by hermine.potter on Today at 12:17:28 AM »
Which launcher?
Does this launcher support commandline parameters to start a game directly?
6
Themes / Re: pandoras box 5 "release" by jedione
« Last post by jedione on Yesterday at 08:24:43 PM »
your not explaining anything.....?  a bug,,, just looks like you have not installed the shuffle module...
care to elaborate  :P
7
Scripting / Re: KeyboardSearch module
« Last post by arthurvalenca on Yesterday at 07:01:19 PM »
my search screen is in the upper left corner, my question is, and how do I get it to the center of the screen?
8
General / Attract Mode has problems with Games with Launchers
« Last post by Dark574 on Yesterday at 12:02:30 PM »
I am using Attract-Mode in Windows 7 for my PC-Games.

The problem i have is with a few games which use a launcher to start the game (e.g. Cube World, Minecraft, Mark of the Ninja). When i start the Game from Attract Mode the Launcher opens and gets Focus. After starting the game in the launcher the game starts correctly, but Attract Mode also restarts in the Background and plays the video of the selected game which is annoying.

Propably the launcher uses another file to start the game and then the launcher closes...so Attract Mode thinks the game is finished....and restarts. Is there some way to avoid this problem?
9
Themes / Re: pandoras box 5 "release" by jedione
« Last post by nevincho on Yesterday at 10:25:44 AM »
Super, but i have a problem. AM 2.3 and AM 2.4 the same bug: 

10
Themes / Re: Blueprint 1.0 (Finally!)
« Last post by iOtero on Yesterday at 08:17:32 AM »
check the layout settings "attract-mode" ... u can set when that will activate or u can disable it

Thanks...   ;D
Pages: [1] 2 3 ... 10