![3d maze screensaver slower 3d maze screensaver slower](https://res.cloudinary.com/twenty20/private_images/t_watermark-criss-cross-10/v1628770171000/photosp/1fdd2178-40b6-4d8b-aee6-2954ab376a0a/stock-photo-technology-tunnel-futuristic-design-electronic-digital-network-matrix-internet-1fdd2178-40b6-4d8b-aee6-2954ab376a0a.jpg)
$hConfigGUI = GuiCreate("Stars Saver Config", 358, 148, 302,218 ,BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) If abs($mouse - $gmouse) > $gMouseSensativity Or abs($mouse - $gmouse) > $gMouseSensativity Then move the star outside the viewable range $Coord = ($Coord + 1) * $nHeight / 2 + $nTop $Coord = ($Coord + 1) * $nWidth / 2 + $nLeft $coord = Coord3dto2d($stars, $stars, $stars) find 2d coordinates for the star and move it accordingly If $timeleft $TimeLeft Then $TurnRate = $TimeLeft $TimeLeft is a count-down timer for the next movement type GUISetOnEvent($GUI_EVENT_MOUSEMOVE, 'SetDone') Local $movement, $timeleft, $TurnRate, $LastGuiMode GUICtrlSetBkColor(-1, Int(Random(0, 0xFFFFFF))) $stars = GUICtrlCreateLabel(" ", -10, -10, $gStarSize, $gStarSize) the coordinate universe is from -1 to 1 in 3 dimensions $hGUI = GUICreate("", $nWidth, $nHeight, $nLeft, $nTop, $WS_POPUPWINDOW, $WS_EX_TOPMOST, $hParent) $y = $cos * $Stars + $Sin * $Starsįunc StarsRotateY(ByRef $Stars, $Degrees = 5)įunc StarsRotateZ(ByRef $Stars, $Degrees = 5)įunc SaverWindow($nWidth, $nHeight, $nLeft, $nTop, $hParent = 0)
![3d maze screensaver slower 3d maze screensaver slower](https://sites.google.com/site/alexhazaplace/_/rsrc/1406397971415/home/ssmaze-scr-running-on-win8/scr3.png)
01)įunc StarsRotateX(ByRef $Stars, $Degrees = 5) If StringInStr($CmdLineRaw, "/S") 0, 0)ĮlseIf StringInStr($CmdLineRaw, "/P") Thenįunc StarsStepForward(ByRef $stars, $step =. $gRandColor = IniRead("starfield.ini", "Main", "RandomColor", 1) $gFieldColor = IniRead("starfield.ini", "Main", "FieldColor", 0) $gStarColor = IniRead("starfield.ini", "Main", "StarColor", 0xFFFFFF) $gStarBias = IniRead("starfield.ini", "Main", "StarBias", 4)
![3d maze screensaver slower 3d maze screensaver slower](https://technicalustad.com/wp-content/uploads/2018/11/screensavers-for-windows-10-3.jpg)
$gStarSize = IniRead("starfield.ini", "Main", "StarSize", 2) $gNumStars = IniRead("starfield.ini", "Main", "NumStars", 32) $gSpeed = IniRead("starfield.ini", "Main", "Speed", 50) $Return = ($gFocalDistance * $y) / ($gFocalDistance + $z) $Return = ($gFocalDistance * $x) / ($gFocalDistance + $z) FocalDistance = 1 / Tan(FOV * 114.59155902616464175359630962821)Ĭonst $gMaxTurnRate = 3 maximum turn rate in degreesĬonst $gMouseSensativity = 3 how far you have to move the mouse to trigger a screen saver cancel If you want to find FOV in degrees then: Const $gFocalDistance = 1 Focal Distance affects the field of view.