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 - Qedo

Pages: [1] 2 3
1
Hi,
about the problem described in: https://www.glbasic.com/forum/index.php?topic=11508.0
This bug does not allow me to develop the program I am making because it is a blocking problem.
Question:
how can to return to a older and working GLB Steam version, waiting for this bug to be fixed?
Thank you

2
GLBasic Version 16.793 (Steam) does not load the jpg file and some png (probably large dimensions).
Verified on two computers (Win10).
Gernot could you verify?
Thank you

ad maiora

3
GLBasic - en / SPRITE TO FONT
« on: 2021-Jun-07 »
Help:
how to transform a sprite (resized by the program) into a font without SAVESPRITE and LOADFONT ?

ad maiora

4
Code Snippets / CUSTOM SHOEBOX
« on: 2021-Mar-29 »
at dreamerman (as promised in another thread) and at all interested friends:
a bit for fun and also because lately shoebox on the steam version was not working correctly (solved with beta version), I wrote my version.
Written in pure GLBasic it should work on more systems but I only tried it with win10. I'm curious if it also works on Android but to date I haven't been able to get Android Studio to work.
If anyone willing will do it I would be grateful.
By the way, is there a tutorial to use this damn AS?
Some information on the composition of the shoebox.sbx file compressed as png can be found in the sources.
I had to write custom functions for each native command that uses shoebox like LOADSPRITE LOADSOUND etc.
In practice, excluding LOADSPRITE which uses the MEM2SPRITE function for the other commands, unfortunately you have to save the file image to disk and then load it in the traditional way, and despite everything the saving / loading / execution speed remains at decent levels.
If you like, let me know your impressions.
the BUILDSHOEBOX project creates the shoebox.sbx file while USESHOEBOX is an example of how to use it.
ad maiora

5
GLBasic - en / How to check Vsync screen
« on: 2020-May-29 »
On my system this work. Output 60 Hz
Can you try on your?
Ad maiora

LIMITFPS -1,TRUE
cicli%=100
dt%=GETTIMERALL()
FOR i=0 TO cicli-1
   CLEARSCREEN RGB(120,345,56)
   SHOWSCREEN
NEXT
dt=1000/((GETTIMERALL()-dt)/cicli)
PRINT "refresh Rate = "+dt+"Hz",10,100
SHOWSCREEN
MOUSEWAIT
END

6
2D-snippets / Text Shadow CSS importer
« on: 2020-May-09 »
I wanted to bring the Text Shadow CSS Generator into GLBasic and attached find the result.
At the page https://html-css-js.com/css/generator/text-shadow/ I found 30 ready-made examples and I imported their CSS.
Find everything in the source and if you want to add your own style edited on the site you can add it in the FONT_CSS1.txt file.
It is sufficient to copy and past the CSS perhaps with a few small changes
Not everything is implemented, for example the CMYK and CSV color commands are not recognized because at the moment I am satisfied so even if it should not be complicated to implement them.
For the Blur effect I used the excellent example of fast blur found at //http://blog.ivank.net/fastest-gaussian-blur.htmle, customized for GLB.
If you want and if you like it you can use it in your programs, I would be pleased.
Ciao
Qedo

7
I write this because nobody ever said it (or at least I never read it anywhere).
When performing a number operation having integer variables and float together, pay attention to the order of the variables.
Example with the calculator the operation "911/5/15*2*1.1" returns 26.72266667
in GLbasic:
Aint% = 5, Bint% = 911, Cint% = 15, Dint% = 2, Mflt # = 1.1
1) Nflt# = Bint / Aint / Cint * Dint * Mflt    // returns 26.4    // WRONG
2) Nflt# = Mflt * (Bint / Aint / Cint * Dint)    // returns 26.4    // WRONG
3) Nflt# = Mflt * Bint / Aint / Cint * Dint    // returns 26.72266667    // OK

I think this depends on the order in which operations are performed from left to right. If the first variable is float the precision will remain with the comma and there will be no rounding to the integers.
I hope it is useful
Ciao

8
why in Debug with vers. 16.252 I see the following wrong status?
The problem seems only with arrays of strings.
Ciao

LOCAL d$[];DIM d$[5]
d$[0]="1";d$[1]="2";d$[2]="3";d$[3]="4";d$[4]="5"


9
Bug Reports / kerning issue?
« on: 2020-Apr-11 »
I don't know if it has already been reported and if it is a bug but with the kerning to true of PRINT (PRINT, string$, 0,0, true) and LEN (string$, true) it does not work with background colors other than black or transparent.
Ciao

10
GLBasic - en / FLOOR () and CEIL () functions
« on: 2020-Apr-01 »
wouldn't it be appropriate to document the FLOOR () and CEIL () functions?
Today I lost time writing a custom function and then finding out that they already exist in glbasic.
 :booze:

11
GLBasic - en / X_SPRITE scaling
« on: 2020-Mar-25 »
I'm not sure but I suspect that the scaling parameter of X_SPRITE is incorrect.
I try to explain in the simplest way possible what I did to verify
I created a yellow sprite of size 640x480 with horizontal and vertical black lines spaced 100 pixels between them.
I placed this natural size X_SPRITE (scaling = 1) at the origin of the scene x = 0 z = 0 with downward movement to y = -240 (half its height)
I would have expected the positioning of the center of the sprite to correspond with the center of the axes but instead the result is as shown in figure 1
To obtain the positioning of the sprite centered on the axes I must instead move it down -120 as in figure 2
To justify the results obtained, the only logic that comes to mind is that the X_SPRITE is drawn not with scaling = 1 but instead with scaling = 0.5. that is, half of its size
This is my theory. I don't know if anything escapes me and I'm asking for your opinion  and your experience.
I didn't create this thread in BUG  just because I'm not sure it is
Thank you
Ciao

12
GLBasic - en / water effect
« on: 2020-Mar-18 »
Do you like this water effect? polyvector only
In these days of coronavirus closed at home I had fun programming
I have to clean up the code and I'll send if you're interested

Ciao

13
GLBasic - en / Multi istances
« on: 2020-Jan-22 »
Hi all
a question:
until to version 15 of GLB it is possible to open multiple instances of the edit. With version 16 only one. Do you know if there is a way to enable multi instances with the latest one?
Qedo

14
GLBasic - es / Multi istances
« on: 2020-Jan-22 »
Hi all
a question:
until to version 15 of GLB it is possible to open multiple instances of the edit. With version 16 only one. Do you know if there is a way to enable multi instances with the latest one?
Qedo

15
GLBasic - en / How to compile "Fluids" ?
« on: 2019-Jul-06 »
Has anyone managed to compile the beautiful Gernot's "Fuilds" program?
http://www.glbasic.com/showroom.php?site=games&game=Fluids
I can't, too many mistakes.
I suspect that in INLINE / ENDLINE the two-dimensional matrices are not supported.
I wonder though that it was compiled because the exe is present.
Gernot what do you say?
Thank you
Qedo


Pages: [1] 2 3