ExtractXMLArray() allows us to extract XML elements into an array. Unfortunately, this function expects a specific XML tag name for the child elements.
If we take the following example from the ExtractXMLArray() documentation it will work fine:
Xml$ = "<array><element>1</element><element>10 ...
Search found 24 matches
- Sat Jan 08, 2022 4:45 pm
- Forum: Feature Requests and Wishlists
- Topic: ExtractXMLArray only extracts child elements with tag "element"
- Replies: 1
- Views: 775
- Thu May 20, 2021 12:10 pm
- Forum: Feature Requests and Wishlists
- Topic: Update 3D libraries
- Replies: 30
- Views: 15650
Re: Update 3D libraries
Ogre 2.1 don't work with direct 9, so the functions would have to be separate from the direct 9 3d functions. Don't know about OpenGL.
In another post , Fred said, that they might remove DirectX support and only use OpenGL in the future:
You should use OpenGL when using the 3D engine. We ...
In another post , Fred said, that they might remove DirectX support and only use OpenGL in the future:
You should use OpenGL when using the 3D engine. We ...
- Tue May 18, 2021 10:03 am
- Forum: 3D Programming
- Topic: Texture flickering/Z-fighting with Engine 3D
- Replies: 5
- Views: 6429
Re: Texture flickering/Z-fighting with Engine 3D
for z-fithing problems what counts is the far/near ratio of camera range
try with
CameraRange(#Camera, 1, 1000000)
Thanks for the hint.
Setting the Near parameter to 1 instead of 0 increases the distance where the issue starts. In my case, with Near = 0 the issue starts at around Z = 150000 ...
- Mon May 17, 2021 10:19 pm
- Forum: 3D Programming
- Topic: Texture flickering/Z-fighting with Engine 3D
- Replies: 5
- Views: 6429
Texture flickering/Z-fighting with Engine 3D
Hi,
I experience major texture flickering (also called Z-fighting ) when the camera is about 150000 world units away from two entities.
The first entity is located behind the second entity but the texture of the first entity flickers through the second entity.
Example code:
EnableExplicit ...
I experience major texture flickering (also called Z-fighting ) when the camera is about 150000 world units away from two entities.
The first entity is located behind the second entity but the texture of the first entity flickers through the second entity.
Example code:
EnableExplicit ...
- Sun May 09, 2021 9:38 pm
- Forum: Feature Requests and Wishlists
- Topic: Update 3D libraries
- Replies: 30
- Views: 15650
Update 3D libraries
While writing a 3D game in PureBasic, I realized that the current versions of OGRE (1.8.2) and CEGUI (0.7.7) are dated back to 2012... which is kind of outdated.
Therefore, please update those libraries to something more recent.
Therefore, please update those libraries to something more recent.
- Sun May 09, 2021 2:35 pm
- Forum: Bugs - 3D Engine
- Topic: GetGadgetAttribute3D does not return width/height for PanelGadget3D
- Replies: 0
- Views: 7618
GetGadgetAttribute3D does not return width/height for PanelGadget3D
I want to get the pane width and height of a PanelGadget3D (i.e. size without the tab bar). For that use case, there is GetGadgetAttribute3D() with #PB_Panel3D_ItemWidth and #PB_Panel3D_ItemHeight as Attribute parameter.
But the function always returns 0. The same thing happens to #PB_Panel3D ...
But the function always returns 0. The same thing happens to #PB_Panel3D ...
- Tue May 04, 2021 9:57 pm
- Forum: Bugs - IDE
- Topic: IDE crash when starting 3D examples
- Replies: 22
- Views: 14050
Re: IDE crash when starting 3D examples
I can confirm that on my setup, too.StarBootics wrote: Tue May 04, 2021 6:17 pm The IDE don't crash at first but when you open the Menu it crash hard. As you can see no gadget at all are required to make the IDE to crash.
- Tue May 04, 2021 4:16 pm
- Forum: Bugs - IDE
- Topic: IDE crash when starting 3D examples
- Replies: 22
- Views: 14050
Re: IDE crash when starting 3D examples
I don't know if it's related or not but when we launch the IDE via the terminal we got this message :
Gtk-Message: 10:39:05.609: Failed to load module "canberra-gtk-module"
In my case, I don't get any warnings but the already said segmentation fault in the terminal:
$ compilers/purebasic
zsh ...
Gtk-Message: 10:39:05.609: Failed to load module "canberra-gtk-module"
In my case, I don't get any warnings but the already said segmentation fault in the terminal:
$ compilers/purebasic
zsh ...
- Tue May 04, 2021 2:30 pm
- Forum: Bugs - IDE
- Topic: IDE crash when starting 3D examples
- Replies: 22
- Views: 14050
IDE crash when starting 3D examples
Whenever I try to start one of the 3D examples using the Screen3DRequester, the IDE is crashing with a segmentation fault.
I was already able to trace down the actual issue: Whenever I open a window with a CheckBoxGadget or OptionGadget in it and include the file into another file, the IDE crashes ...
I was already able to trace down the actual issue: Whenever I open a window with a CheckBoxGadget or OptionGadget in it and include the file into another file, the IDE crashes ...
- Tue Dec 03, 2019 4:37 pm
- Forum: Announcement
- Topic: PureBasic OpenSource Projects
- Replies: 123
- Views: 167307
Re: PureBasic OpenSource Projects
Cool! Finally it is easier to extend the IDE which was previously only possible using ugly hacks.
- Tue May 07, 2019 11:45 am
- Forum: Announcement
- Topic: PB language support for Visual Studio Code
- Replies: 45
- Views: 43536
Re: PB language support for Visual Studio Code
AFAIK, the "group" must be a hash containing a "kind" property (just like you already configured for the "Compile (test)" task).Wolfram wrote:Hi,
I'm using this code to compile on OSX. The Compile works, but the Run not.
What is wrong?
- Wed Jan 09, 2019 7:28 pm
- Forum: Announcement
- Topic: PB language support for Visual Studio Code
- Replies: 45
- Views: 43536
Re: PB language support for Visual Studio Code
Is it possible to configure inside VS Code to be able to call PB Compiler directly from Visual Code ?
I'm using Tasks of vscode for that.
tasks.json of one of my projects (stored in .vscode/tasks.json inside the project folder):
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile (test ...
I'm using Tasks of vscode for that.
tasks.json of one of my projects (stored in .vscode/tasks.json inside the project folder):
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile (test ...
- Sun Dec 09, 2018 4:32 pm
- Forum: Announcement
- Topic: PB language support for Visual Studio Code
- Replies: 45
- Views: 43536
Re: PB language support for Visual Studio Code
Oh yes, I just found them, too. Weird, there is not category "PureBasic", just "PureBasic configuration" bellow "Extensions" which only allows me to change a few other settings. Maybe that's caused because the name is surrounded by brackets? It's named "[purebasic]" instead of "purebasic".
- Sun Dec 09, 2018 4:10 pm
- Forum: Announcement
- Topic: PB language support for Visual Studio Code
- Replies: 45
- Views: 43536
Re: PB language support for Visual Studio Code
How to change Tab size
Press F1 Enter "settings" Select Open Settings Enter "tab size"
I know that. I've already changed tabs to spaces for vscode and it's working fine for other files. But once I open a file containing PB code, the tab size is set to 3 for that file. I have to manually change ...
Press F1 Enter "settings" Select Open Settings Enter "tab size"
I know that. I've already changed tabs to spaces for vscode and it's working fine for other files. But once I open a file containing PB code, the tab size is set to 3 for that file. I have to manually change ...
- Sun Dec 09, 2018 3:44 pm
- Forum: Announcement
- Topic: PB language support for Visual Studio Code
- Replies: 45
- Views: 43536
Re: PB language support for Visual Studio Code
I published the Purebasic extension for VS Code. :D
I just installed it, too. Thanks for your great work!
I'm looking forward to using vscode as my PB IDE instead of the official one once the most important features like auto completion are fully implemented.
I just have one minor issue: Is the ...
I just installed it, too. Thanks for your great work!
I'm looking forward to using vscode as my PB IDE instead of the official one once the most important features like auto completion are fully implemented.
I just have one minor issue: Is the ...