Search found 203 matches

by benubi
Fri Jul 25, 2025 12:47 pm
Forum: 3D Programming
Topic: Vectorial texture and normal map creator
Replies: 2
Views: 121

Re: Vectorial texture and normal map creator

That looks great!
by benubi
Fri Jul 18, 2025 9:06 pm
Forum: 3D Programming
Topic: How to get water height?
Replies: 5
Views: 279

Re: How to get water height?

@miso
I wish I knew how to do it but I believe I can follow you. This is very interesting! I believe it could work.
Height.f=GetWaveHeight(x,z) ; <- that would be nice

I've updated the example to use vertices, and the barrels behave "very well" now including underwater friction. The barrels ...
by benubi
Fri Jun 20, 2025 6:52 pm
Forum: 3D Programming
Topic: How to get water height?
Replies: 5
Views: 279

Re: How to get water height?

Apparently the water height (base) is Y=0.

I have modified the Water.pb example to include a few floating barrels; took me some time to get them floating with water friction when under water. I added physics bodies to the entities, and move the ground plane from -5 to -50. When you set the plane to ...
by benubi
Fri Jun 20, 2025 5:18 pm
Forum: Game Programming
Topic: My First game in PB : NAOKO & The Pumpkin Castle
Replies: 11
Views: 529

Re: My First game in PB : NAOKO & The Pumpkin Castle

Congratulations, I wish you big success.
by benubi
Thu Jun 19, 2025 5:58 pm
Forum: Coding Questions
Topic: The weak spot of EnableGraphicalConsole()
Replies: 2
Views: 692

Re: The weak spot of EnableGraphicalConsole()

No you can't do it with the PureBasic console library yet, I wrote an incomplete include for that. I can't test it on MacOS, though. ;/

I added a little abstraction to it, so that it can be used by all OS, instead of using Inkey() and Input() there are wrappers with Console prefix i.e. ConsoleInkey ...
by benubi
Thu Jun 19, 2025 5:00 pm
Forum: Bugs - Linux
Topic: [PB 6.21] Regresion in console output behaviour
Replies: 2
Views: 212

Re: [PB 6.21] Regresion in console output behaviour

Yes, I was also surprised. The escape sequences get somehow debugged/echoed, without the leading escape character.

Happens on x64 and arm64 Linux, PB 6.21. The code demonstrates the problem when you press cursor keys and other "special" keys, including return/newline. It also appears when using ...
by benubi
Mon May 19, 2025 12:49 pm
Forum: Applications - Feedback and Discussion
Topic: Radix Tree algorithm
Replies: 2
Views: 1374

Re: Radix Tree algorithm

Very useful, it's short and readable (except the Russian comments, for me).Somehow the UTF8 BOM is missing in the version that I downloaded directly from github, I had to manually select UTF8 in the IDE, and then to copy & paste the raw version manually into the editor. Because it would be ...
by benubi
Fri May 02, 2025 7:33 pm
Forum: Linux
Topic: Linux and pipes
Replies: 11
Views: 2351

Re: Linux and pipes

Perhaps you also need the #PB_Program_Connect flag
by benubi
Fri May 02, 2025 7:17 pm
Forum: Coding Questions
Topic: Counting Items in the DataSection?
Replies: 30
Views: 2391

Re: Counting Items in the DataSection?

Just add an empty "sentinel value" then, and check for #Empty$ instead of #ETX$. Add an empty string element or a word value set to 0 (Data.w 0)

You could also insert an integer value before the fruits that tells your reader procedure how many items there will be.
by benubi
Tue Apr 01, 2025 1:48 pm
Forum: Off Topic
Topic: Happy Birthday, Fred!
Replies: 22
Views: 3495

Re: Happy Birthday, Fred!

Bon anniversaire et bonne continuation :D
by benubi
Tue Apr 01, 2025 1:44 pm
Forum: Off Topic
Topic: 3 years on the forums
Replies: 8
Views: 2312

Re: 3 years on the forums

Time flies!

When I joined many years ago, I was nearly half the age I am today, the forum was more crowded and there were more posts per day, but the ambiance wasn't as good and relaxed as today. In fact there was that impression that a few were "gods" and any newbee or intermediary poster would ...
by benubi
Tue Apr 01, 2025 1:13 pm
Forum: Tricks 'n' Tips
Topic: XOR Double linked list with multiple types
Replies: 5
Views: 925

Re: XOR Double linked list with multiple types

Heheheh ;)

Here's what that "black magic" means. It's pretty tricky and an interesting subject again - like always. Didn't know such things existed but I suspected it somehow.

https://en.wikipedia.org/wiki/XOR_linked_list

Even tho it's off topic I wonder, idle: have you ever written a working ...
by benubi
Tue Mar 11, 2025 4:32 pm
Forum: Announcement
Topic: MyCharacters
Replies: 42
Views: 20736

Re: MyCharacters

Works fine & looks great. Test \u1F600

😀

(Btw. I found out a secret on windows 10, type WIN + . (windows + dot keys))

But your program is better of course, because it can be customized, is more informative and IMO feels more ergonomic
by benubi
Wed Mar 05, 2025 2:14 pm
Forum: Coding Questions
Topic: Save image sequence to AVI
Replies: 13
Views: 1189

Re: Save image sequence to AVI

Cool! It's not the GameBar but at least it's self-made and seems usable :)
by benubi
Thu Feb 27, 2025 9:30 am
Forum: Tricks 'n' Tips
Topic: Homebrew variatric & named arguments
Replies: 3
Views: 570

Re: Homebrew variatric & named arguments

Well, that seems to be an interface specifically designed for AutoCAD and co. The code/interface description you posted are specific and use their *own* types. In my version you use the predefined #PB_xyz type (e.g. #PB_Float) or simply AddStringArg() AddFloatArg() type of functions.

The va_lists ...