Main Menu

News:

SyntaxBoom, now with pwetty syntax highlighted code boxes! \o/ 

https://www.syntaxboom.com/forum/index.php?topic=96

Shoutbox

Jackdaw

Today at 20:00:40
Going to have to try bourbon and beans. That should be an explosive combination.

Baggey

Today at 13:15:42
I sometimes mix a chicken vindaloo and a Tika Masala together. Awesome  :P

Dabzy

Today at 05:49:34
And doing the act was the realisation I went for an indian when out... 20mins I was in the thunderbox waiting for me back chaff to cool down!

Dabzy

Today at 05:48:11
When I was on my "Year On The Blur", aka drinking after getting divorced, I was minging one night, couldnt remember getting home. Anyway, next day, went to work, and needed a poo...

GfK

2025-10-15, 21:39:05
I overdosed on jelly babies once and my arse was like the shooty gun bit at the start of James Bond

Amon

2025-10-15, 20:16:38
lol

Jackdaw

2025-10-15, 19:40:48
Never had a Phall or a tinderloo. But I have heard that your backside feels like that map at the start of every episode of Bonanza.

GfK

2025-10-15, 19:22:25
Never confuse phall with phallus

Baggey

2025-10-15, 18:30:58
My mate ate a phall one night. Even that was to hot for me. I bet he suffered in the morning!  :-[

Dabzy

2025-10-15, 18:02:52
I like nice and toasty bit of fire in my bait as well, I used to eat really red hot gear, but nowadays if I do... Heartburn happens! :(

Members
Stats
  • Total Posts: 1,810
  • Total Topics: 224
  • Online today: 26
  • Online ever: 232 (Oct 08, 2025, 09:18 AM)
Users Online
  • Users: 0
  • Guests: 5
  • Total: 5
Welcome to SyntaxBoom. Please login or sign up.

Recent

Blitzmax GLB Loader

Started by Krischan, Oct 07, 2025, 02:23 PM

Previous topic - Next topic

Krischan

I've always missed a GLB/GLTF Loader in Blitzmax to switch to a more modern 3D file format. So I've written a wrapper in C for the CGLTF project, and a GLB Demo loading application in BlitzmaxNG+OpenB3D. Works so far with exported GLBs/GLTFs from Blender, sketchfab.com or also meshy.ai

It currently does only load the Basecolor texture - not the PBR textures - but this will be added in a future version with Shader support, merging it with my latest PBR Shader Demo (not released yet). It may also not be fully optimized yet as I've got a lot of help from my friend ChatGPT here, but I'm happy that it works at all :o

Works with BlitzmaxNG (BCC 0.146, BMK 3.58, GCC 120200) + OpenB3D

Demo Viewer download including all sources and some GLB models:
LoadGLB.zip

Demo controls:
- LMB Load new Model
- RMB Save Screenshot
- WHEEL Zoom
- TAB Wireframe
- ENTER Autorotation on/off
- ESC End

I've also included a little Python script in the Models/ folder which "compresses" a GLB to a smaller size. It simply rescales all Textures to a maximum size of 1024 pixels and saves Textures with an Alpha channel as PNG and all others als JPEG with quality 90. Needs pygltflib and PIL.
Kind regards

Krischan

Win11: Core i9 Ultra 285K, Nvidia RTX 5080, 64GB
Win10: Core i7 9700K, RTX 2080, 64GB
Amiga 500, MC68000, Agnus, 512K Chip + 512K Fast
C64, MOS 6510, VIC-II, 64K

Krischan's Blitzbasic archive

Amon

Very nice. Can you link me to OpenB3D for BlitzMax please?

Krischan

Quote from: Amon on Oct 07, 2025, 09:01 PMVery nice. Can you link me to OpenB3D for BlitzMax please?

It's already linked in the initial post. You can also browse my Blitzmax Archive - see signature - 2025 Folder. There you'll also find a complete BlitzmaxNG environment, I usually run it from C:\BlitzmaxNG - including all precompiled Mods.
Kind regards

Krischan

Win11: Core i9 Ultra 285K, Nvidia RTX 5080, 64GB
Win10: Core i7 9700K, RTX 2080, 64GB
Amiga 500, MC68000, Agnus, 512K Chip + 512K Fast
C64, MOS 6510, VIC-II, 64K

Krischan's Blitzbasic archive

Amon