Wallpaper Engine

Wallpaper Engine

Dark Matter (Audio Visualizer)
7 Comments
Capt.Luke  [author] Feb 16, 2022 @ 6:04am 
@Biohazard It Works Wonderfully, thx a lot! -Wallpaper Updated
Capt.Luke  [author] Feb 15, 2022 @ 9:18am 
Alright, much appreciated. I'll test it out later today. Thank a lot. If you come up with a even better one, let me know.
Biohazard  [developer] Feb 15, 2022 @ 9:13am 
A script like this on the scale property should work:

'use strict';

var originalValue;

/**
* @param {Vec2} value - for property 'scale'
* @return {Vec2} - update current property value
*/
export function init(value) {
originalValue = value;
resizeScreen(engine.screenResolution);
}

/**
* @param {Vec2} size
*/
export function resizeScreen(size) {
if (size.x > size.y) {
thisObject.scale = originalValue.multiply(size.x / 1920.0);
} else {
thisObject.scale = originalValue.multiply(size.y / 1080.0);
}
}

This is a bit different from my text before, I think this solution should make it work on any aspect ratio and resolution.

resizeScreen is only called when the resolution actually changes so this part is a bit annoying, maybe we should change this to always be called once after init or something.
Capt.Luke  [author] Feb 14, 2022 @ 7:02pm 
@Biohazard thats interesting, I would actulaly have a use for it and also would like to update this wallpaper with it. do you think you could provide me a fully fonctional script ?
Biohazard  [developer] Feb 14, 2022 @ 4:44pm 
Hey Luke, FYI the difference in screen resolution is because the post processing layer has a dynamic resolution and any effects on it scale according to that. That means the blur effect will have a smaller relative radius on high resolutions (but same radius in pixels) and I think this is the problem you mean.

You could use a script on the blur scale to multiply it with "engine.screenResolution.divide(new Vec2(1920, 1080))" to scale it based on 1080p as reference. But imho it looks good either way, just an FYI if you want to try this on a future wallpaper.
Capt.Luke  [author] Feb 3, 2022 @ 5:06am 
thank you very much
Blvk_Knxght Feb 2, 2022 @ 11:22pm 
love your visualizers! they're very unique :FH5Kudos: