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.


Messages - Kitty Hello

Pages: [1] 2 3 ... 704
1
Code Snippets / Re: Load data from memory
« on: 2021-Dec-04 »
Unfortunately, PLAYMUSIC is a bit different. You might have to extract that file to the tmp directory. :(

2
Announcements / Re: Book
« on: 2021-Nov-25 »
Got me a copy as a friend's christmas present.  :good:

3
FAQ / Re: Missing Forums Attachments
« on: 2021-Nov-24 »
Done :)

4
Added to the github repository.

5
I attached the original project in the first post. Sorry, I didn't see it was deleted.

6
Off Topic / Re: Steam Deck
« on: 2021-Nov-15 »
Also, there is a CMake project, that theoretically should let you compile GLBasic programs to any platform. We might start with Linux and Mac for a first test.

7
I'd still go with the HtCreateThreads method. You might be able to implement OpenMP, but seriously, if you're dounf MT, you need to know what you do. It's not that easy if you want to avoid racing conditions etc.

8
Hi,

I had to add a 3D eggplant to one of my games and noticed, that my AC3D license was too old and the uppgrade fee was raised a lot and whatnot. So I installed the new Blender 2.9 and after a few videos, I got the hang of it. It improved a LOT! If you want to do 3D, try this out.
So, the Blender export filter was broken due to API changes. I had a few nights to get that running again. The old script was about 10+ years old. :)
(reminder to myself: always comment code. Code you wrote 5 years ago is code someone else might have written...)

So, I fixed the export and found, the dda files were quite big. I inserted a scale factor for normals and vertex coordinates and now... the dda (ASCII!) file format is more compact than the ddd binary file format I used to be so proud of.

The trick is, that the vertex positions*1000 often result in numbers like "5" or "15", which is 2-3 bytes including a separating space caracter. The binary always takes 4 bytes per float. Same for the normal directions*100.
The next update will bring both, the export filter and the dda 2.0 support to you.

9
Is there any way we can help you out?

10
FAQ / Re: Missing Forums Attachments
« on: 2021-Nov-02 »
I accidentally found an old backup of 2019-10 and copied the attachments back, so most stuff should be fixed again :)

11
Announcements / Re: New BETA
« on: 2021-Oct-20 »
How about a SHOWSCREEN? ;)

12
Code Snippets / Load data from memory
« on: 2021-Oct-14 »
I tell you a secret. GLBasic can load data from a memory buffer, as if it was a file. With the attached code, you can use the contents of a string to "read" it as a file. This should work for about everything. Sprites, sounds, binary files, ...

Code: (glbasic) [Select]



LOCAL mem$ = "Hello World"
LOCAL memlen = LEN(mem$)

LOCAL file$ = MemMakeFile$(mem$)

LOCAL text$
OPENFILE(1, file$, TRUE)
READSTR 1, text$, 64
CLOSEFILE 1
STDOUT text$ + "\n"
KEYWAIT

FUNCTION foo:
ENDFUNCTION

INLINE
extern "C" {int sprintf(char *str, const char *format, ...); }
ENDINLINE


FUNCTION MemMakeFile$: BYREF data$, nofBytes = -1
IF nofBytes < 0 THEN nofBytes = LEN(data$)
LOCAL url$
LOCAL hx$ = RIGHT$("0000000000000000" + HEX$(nofBytes), 8)
INLINE
void* address = &data_Str[0];
char buffer[64];
sprintf(buffer, "%x", address);

url_Str = CGStr("mem://") + hx_Str + CGStr(".") + CGStr(buffer);
ENDINLINE


RETURN url$
ENDFUNCTION

13
GLBasic - en / Re: Access to Buffer Data ?
« on: 2021-Sep-30 »
I ordered a Strato HiDrive account and will set up a Git repository. So we can use Git to act together. But, I failed to clone it. Maybe my work-configuration messes with the private account... I'll have to see.

14
GLBasic - en / Re: Access to Buffer Data ?
« on: 2021-Sep-30 »
Is it? Maybe we should include it as the default sound engine, then?

15
GLBasic - de / Re: Fehlermeldung bei DIM
« on: 2021-Sep-27 »
uni wurde als Integer erkannt, nicht als array. Schreib LOCAL uni[] davor.

Pages: [1] 2 3 ... 704