Search found 635 matches

by UEZ
Jan 15, 2018 19:12
Forum: Tips and Tricks
Topic: Simple Flame Simulation build 2018-01-22 [Windows and 32-bit only]
Replies: 2
Views: 716

Simple Flame Simulation build 2018-01-22 [Windows and 32-bit only]

I converted one of my AutoIt scripts to FB for learning purposes. ^^ As I've embedded one image, the source code is too large to post it here in better quality. For a better image quality visit here: https://pastebin.com/GGrEdPWR Probably the difference cannot be seen... 'coded by UEZ build 2018-01-...
by UEZ
Jan 13, 2018 15:41
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.8 November 19, 2020)
Replies: 721
Views: 137713

Re: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)

Your editor is very stable and that's the reason why I'm using it - so well done.

It would be great to have following features added:

1) save the current session (tabs) and reload it at next start automatically
2) highlight current variable on hover

Thanks.
by UEZ
Jan 11, 2018 15:24
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 743

Re: GFX_FULLSCREEN not working properly

x and y are zero. But for generality x,y is better, I agree. Pity about 64 bit. I did mention the bug in the passing https://www.freebasic.net/forum/viewtopic.php?f=2&t=26047&p=238327&hilit=%2Amovewindow%2A#p238327 When FreeBASIC is up and running again I shall use a bug report. Note Wi...
by UEZ
Jan 11, 2018 15:04
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 743

Re: GFX_FULLSCREEN not working properly

From the help file, use this to check your supported full screen resolutions Dim As Integer mode, w, h Print "Resolutions supported at 32 bits per pixel:" mode = ScreenList(32) While (mode <> 0) w = HiWord(mode) h = LoWord(mode) Print w & "x" & h mode = ScreenList() Wend...
by UEZ
Jan 11, 2018 12:27
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 743

Re: GFX_FULLSCREEN not working properly

This has a few dependencies, like high DPI scaling (by OS) ... Since you seem to be on WIN, check the currently used scaling factor first. If it isn't: 100% (above or below), ScreenRes() settings w, h are scaled! Then, for full screen: ScreenControl(SET_WINDOW_POS, 0, 0) - left/top. Also in code: u...
by UEZ
Jan 11, 2018 10:28
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 743

GFX_FULLSCREEN not working properly

GFX_FULLSCREEN is not working properly with multi monitors. #Include "fbgfx.bi" #Include "windows.bi" Using FB Dim As RECT tDesktop Dim As hwnd hHWND_Dt hHWND_Dt = FindWindow("Progman","Program Manager") GetWindowRect(hHWND_Dt, @tDesktop) Dim as integer x, y, ...
by UEZ
Jan 10, 2018 22:31
Forum: Projects
Topic: Drawing Zooming Images
Replies: 2
Views: 721

Re: Drawing Zooming Images

If you interested in creating procedural infinite zoom graphics then check this out: http://infinitezoom.net/. A deeper look to the zoom.js source code might inspire you. ;-)
by UEZ
Jan 09, 2018 13:24
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

Thanks UEZ. You still have folding at the frame top (and bottom). If r = 0.75 * iW_Dt is changed to r = iW_Dt both times,(i.e. drop the .75) it seems to get rid of it here. My desktop is 1290 by 1024. I changed the variable for desktop w/h to your dimension and now I see what you mean with folding....
by UEZ
Jan 09, 2018 12:17
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

I updated the code again - now you can move your mouse up and down for speed and flight direction.

Of course the challenge is to write everything by ourselves but the WinAPI is huge and some of the functions are really fast. I'm too lazy to reinvent the wheel again but would give a lot of fun...
by UEZ
Jan 08, 2018 12:13
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

the GDI+ version runs @10 fps and wobbles, too. I didn't expect wobbling in GDI+. Hmmm... Bad luck. Not that surprising, though, since even GDI+ has to convert the floats to integers at a certain point. You tested with aliasing on, I suppose? No, there are usually two kind of same functions in the ...
by UEZ
Jan 08, 2018 0:24
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

due to internal integer format of the GDI functions the screen is little bit wobbling. Gdi+ has many float equivalents, you might check if one of them fits. DrawImage is a candidate: The image is scaled to fit the rectangle. I know that but copying to the screen is much slower in GDI + than the GDI...
by UEZ
Jan 08, 2018 0:02
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

I analysed the JS code and understood how the issue with switching to next images was solved -> very smart. I updated the code appropriately - check out post #1. Btw, STRETCH_DELETESCANS produces also good quality images and is much faster than STRETCH_HALFTONE. FPS is increased extremely. :-) Well,...
by UEZ
Jan 07, 2018 14:44
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinite Image Zoom Flight [Windows only]

Thanks dafhi but I cannot use your code directly as I've to rewrite the complete code. Apart from that I need to understand it first. ^^ Beside the zooming I mean also when the bitmap is displayed and then zoomed you cannot see that the bitmap is printed to the screen (web version) whereas in my ver...
by UEZ
Jan 06, 2018 16:37
Forum: Tips and Tricks
Topic: Infinite Image Zoom Flight [Windows only]
Replies: 23
Views: 1797

Re: Infinity Image Zoom Flight [Windows only]

That is rather special UEZ. FreeBASIC meets the big wide world. Winapi coding is tricky but powerful. Thank you. I shall study your steps. The WinAPI is powerful but for some effects very slow -> https://www.freebasic.net/forum/viewtopic.php?f=7&t=25669&p=232150#p232150 Try fSpeed = 0.66666...
by UEZ
Jan 06, 2018 16:26
Forum: Tips and Tricks
Topic: 3D Sine Wave v1.4 [Windows only]
Replies: 29
Views: 2089

Re: 3D Sine Wave [Windows only]

deltarho[1859] wrote:@UEZ

Dump all the labels and replace with local/temporary labels that we discussed the other day. -02 to -0fast gives me an increase in fps of about 25%.


Thanks! I updated the code from post #1.

Go to advanced search