Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Oomek

Pages: [1] 2 3
1
Check your window.am file if it’s not containing the negative offset

Code: [Select]
position -1,-1
size 1922,1082

If it looks like this you may be crippling the performance by skipping Windows’ borderless optimizations.
You can manually set it to the correct size

Code: [Select]
position 0,0
size 1920,1080

Or change your window mode to Full Screen and then back to Window (No Border)
The true window mode “Borderless Window” will be implemented in the future that won’t require this workaround.

This happens if you set Window (No Border) after Fill Screen.

2
Scripting / New feature: vertical text alignment
« on: June 13, 2018, 03:30:53 PM »
I’ve added some additional flags to fe.text.align property
Align.TopCentre
Align.TopLeft
Align.TopRight
Align.BottomCentre
Align.BottomLeft
Align.BottomRight





I would like you to test it with your fonts and report if it aligns nicely.
I’m attaching a compiled attract.exe x64 and an example layout for testing

https://1drv.ms/u/s!Ag7uFeM0f_fzhOM9Eb2a5bKE6dKv1g

3
As some of you probably know drawing something on nested surfaces in AM introduces an unwanted artifact, a 1 or more frames of delay in updating the nested surface content.
Luckily I discovered a neat trick that circumvents that.

Here is a code example that draws a game title twice in white colour, and twice in black but on nested surfaces ( with a little offset to make you see the white text underneath )
Just scroll through your game list and observe that the left side is blinking in white, that's the delay I'm referring to as the black title on a nested surface is being drawn with 1 frame delay.
The text on the right is drawn without any delay.

Code: [Select]
// This is an example of how to draw nested surfaces and avoid 1 frame delay ( or more, depending on the nesting level )
// The text on the left is blinking as the white text drawn on fe is updated first,
// then the black text on a surface is drawn on top, but it's late by 1 frame
// On the right the white and black texts are drawn on the same frame


local flw = fe.layout.width
local flh = fe.layout.height

local background = fe.add_text( "", 0, 0, flw, flh )
background.set_bg_rgb( 50, 150, 150 )



// title drawn on fe. in white
local textOnFe1 = fe.add_text( "[Title]", 0, 0, flw/2, 50 )
textOnFe1.align = Align.Left

// title drawn on fe. in white
local textOnFe2 = fe.add_text( "[Title]", flw/2, 0, flw/2, 50 )
textOnFe2.align = Align.Left



// SURFACE WITHOUT DELAY ( on the right )
local nestedSurface2 = fe.add_surface( flw/2, 50 )

// title drawn on nested surface in black
local txtsu2 = nestedSurface2.add_text( "[Title]", 0, 0, flw/2, 50 )
txtsu2.align = Align.Left
txtsu2.set_rgb( 0, 0, 0 )



// main surface on which both nested surfaces are drawn
local mainSurface = fe.add_surface( flw, 50 )

// shift the main surface by 2 pixes so you can see the white text underneath
mainSurface.set_pos( 0, 1 )

/////////////////////////////////////
// THE LINES BELOW ARE THE TRICK
nestedSurface2.visible = false
nestedSurface2 = mainSurface.add_clone( nestedSurface2 )
nestedSurface2.visible = true
/////////////////////////////////////

// position nested surface to the right
nestedSurface2.set_pos( flw/2, 0 )



// SURFACE WITH DELAY ( on the left )
local nestedSurface1 = mainSurface.add_surface( flw/2, 50 )

// title drawn on nested surface in black
local txtsu1 = nestedSurface1.add_text( "[Title]", 0, 0, flw/2, 50 )
txtsu1.align = Align.Left
txtsu1.set_rgb( 0, 0, 0 )



// do something at tick() so the screen keeps updating
function tick(ttime) {
mainSurface.x = 0
}
fe.add_ticks_callback( "tick" )


4
General / [Solved] Windows 10 Spring Update 1803 broke Attract Mode
« on: April 10, 2018, 04:09:49 AM »
It's just great. I've recently updated Windows 10 to the latest 1803 version and it appears that it broke Attract Mode and Mame.
When I launch AM I get two 3 second delays where AM becomes frozen and unresponsive.
When I go back from Mame to AM I have to alt-tab because AM stays frozen.
In Mame I've lost HLSL scanlines.
When I exit Mame I get also a delay of around 5 seconds before the process terminates

Well done Microsoft.

Does anyone else stumbled across those issues?

5
General / Discord channel for theme builders and modders
« on: January 20, 2018, 01:25:34 PM »
Hi, I would like to share the link to our Discord channel when you can chat about Attract Mode theme developement and modding

https://discord.gg/86bB9dD

See you there :)

6
General / DXVA2 missing after compiling with MXE
« on: January 12, 2018, 05:51:32 AM »
Do I need to specify other constants than WINDOWS_STATIC=1 in the make script to have DXVA2 showing in settings?

I've tried:
make CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1 SFML_SYSTEM_WINDOWS=1 FE_HWACCEL_DXVA2=1

but still I have only software shown in the video decoders

7
Themes / Ambience HD theme [WIP]
« on: January 06, 2018, 05:23:33 AM »
I’ll just drop a link here for this moment.
Release soon.

https://youtu.be/XGQiUk5uwGw

New video of the beta version plus a new overlay menu system:
https://discord.gg/nym8y5

8
Scripting / [WIP] Blur Shader
« on: June 01, 2017, 06:09:56 AM »
Attract Mode Blur Shader WIP - Snaps
https://youtu.be/FVazVqXL_bY

Attract Mode Blur Shader WIP - Videos
https://youtu.be/7x7etZvlvVs

9
Scripting / [ANNOUNCEMENT] Blending modes will come to Attract Mode
« on: April 20, 2017, 06:07:03 AM »
I'm planning to add belnding modes to Attract Mode (overlay, multiply, add, subtract)
Are you happy?

10
Themes / [CONCEPT] NEON Theme
« on: April 15, 2017, 08:24:30 AM »
I've come up with the idea last night of a Neon Theme and I need your feedback. Would you like me to make that kind of theme? Feel free to post any suggestions.


11
General / Snap video freezes and sound looped after waking up PC
« on: April 10, 2017, 03:36:20 AM »
The topic should be self explanatory, but anyway, here is the issue. When I put my PC to sleep while the snap video is playing and then wake PC up using any button that is not bound to navigation Attract Mode freezes and sound is played in a short loop until I press up or down arrow.

I've created an isuue on github as I believe this is a bug, but if anyone knows some workaround to this please let me know.

https://github.com/mickelson/attract/issues/340

12
Here is a screensaver I coded recently, but I need to know how it performs on weaker devices like RP, so please download it, copy to layouts folder select it as a layout and tell me how many FPS it's showing on the screen.

Thanks in advance,

13
Themes / 3D Conveyor [WIP] & 3D Screensaver [WIP]
« on: April 02, 2017, 08:27:39 AM »
I didn't see any themes that would show snaps transforming in 3D space, so I thought, maybe it's not possible in Attract Mode.
So this morning I started experimenting and here is the result.

https://youtu.be/XJu3IQLdMiY

Update:

I'm also experimenting with using my method to do some new screensavers.
Here's my first try.

https://youtu.be/IPTRFDriUao

14
Scripting / How to set a Tag from the script?
« on: April 01, 2017, 07:35:07 AM »
I constructed my own overlay for setting a games tag, but I'm stuck at actually adding/removing a Tag value for a selected game.
Does anyone know how to do it?

15
General / Filter exception to ignore Global Filter?
« on: March 30, 2017, 11:54:52 AM »
Is it possible to add an exception in one of the filters which will ignore the global filter?
I've got a global rule "Tag does not contain hidden"
I set up a new filter "hidden" where I want to list the only games that are hidden.
I've added a rule inside the "hidden" filter "Tag does contain hidden"
I've also tried adding an exception "Tag does contain hidden"

None of it seem to work. Is it even possible to override the rule from the main filter?

Pages: [1] 2 3