GLTF Import Export

User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

Congradulations! :bananathumb:

glTF - Sponza
My first experience with the glTF - Sponza crashed trueSpace using all three Material Complexity options
Resized all of the images from 1024x1024 to 256x256
Import with Medium Complexity
Imported.png
.
No issues except FPN takes a super long time to activate

I Exported this scene and then Imported back into trueSpace
Exported.png
.
Note the differences between the two?
Looks even better!
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: GLTF Import Export

Post by clintonman »

trueBlue wrote: 08 Nov 2023, 16:25 Congradulations! :bananathumb:

glTF - Sponza
My first experience with the glTF - Sponza crashed trueSpace using all three Material Complexity options
Resized all of the images from 1024x1024 to 256x256
Import with Medium Complexity
Imported.png
.
No issues except FPN takes a super long time to activate

I Exported this scene and then Imported back into trueSpace
Exported.png
.
Note the differences between the two?
Looks even better!
Thank you.

I never had a problem with the Sponza sample crashing. It does import as a single mesh with about 100 materials. Try it again with the Options tab check "Individual Mesh Primitives". This will import much faster, the 3d view won't slow down and maybe not crash.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

Dang it Jim, I just converted several textures for nothing! :(
Much better!
I can actually see the Cloth Texture
Cloth texture.png
On a different note, pressing the Apply Morphs button is throwing errors
Examples:
With nothing selected, press Apply Morph
Select a primitive, press Apply Morphs, and Cancel "Convert to an Editable mesh?" dialog
Most likely other examples...

Edit: Using "Individual Mesh Primitives" creates a lot of Nulls
Flatten Nulls.png
Flatten Nulls.png (36.2 KiB) Viewed 410 times
.
Is there any way to create a script that Flattens the Nulls?
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

glTF - LightsPunctualLamp
This crashed for me
It only has five images that are 2048x2048
I reduced those to 512x512
It is supposed to have some sort of On|Off, but I do not see how that is supposed to work
Open this gif to see
lights_on_off.gif
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: GLTF Import Export

Post by clintonman »

trueBlue wrote: 11 Nov 2023, 01:45 glTF - LightsPunctualLamp
This crashed for me
It only has five images that are 2048x2048
I reduced those to 512x512
It is supposed to have some sort of On|Off, but I do not see how that is supposed to work
Open this gif to see
lights_on_off.gif
I don't see anything that mentions on off action. I think that gif is just showing that the light is going through the lamp shade.

I'm running a GE Force GTX 965M on my notebook, which I think is less powerful than your card, but no crashing here.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: GLTF Import Export

Post by clintonman »

trueBlue wrote: 11 Nov 2023, 01:45 glTF - LightsPunctualLamp
This crashed for me
...
Maybe it's a driver thing, my driver version is 526.98
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

I just tried again and no crash :bananathumb:
Maybe I got it confused with the glTF - Sponza 1024x1024 scene
I usually keep my drivers up to date
My Rig.png
My Rig.png (35.06 KiB) Viewed 389 times
.
Just noticed that the 3D Viewer opens glTF files :D
3D Viewer.png
.
screenshot_variants_on-off.gif
Open this gif to see
Maybe the On|Off is a PBR setting?
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: GLTF Import Export

Post by clintonman »

trueBlue wrote: 11 Nov 2023, 11:58 I just tried again and no crash :bananathumb:
Maybe I got it confused with the glTF - Sponza 1024x1024 scene
I usually keep my drivers up to date
My Rig.png
.
Just noticed that the 3D Viewer opens glTF files :D
3D Viewer.png
.
screenshot_variants_on-off.gif
Open this gif to see
Maybe the On|Off is a PBR setting?
It's still strange that Sponza crashes for you but not me on less hardware.

The on off you're seeing is from a material variant extension. It's changing the material of the bulb to make it emissive or not. The closest thing in tS is the constant shader and it doesn't emit any light.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

I am using an Intensity script to adjust the Constant Color, Spotlight, and Ambient light
On.png
.
Off.png
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: GLTF Import Export

Post by trueBlue »

clintonman wrote: 11 Nov 2023, 16:09
trueBlue wrote: 11 Nov 2023, 11:58 I just tried again and no crash :bananathumb:
Maybe I got it confused with the glTF - Sponza 1024x1024 scene
I usually keep my drivers up to date
My Rig.png
.
Just noticed that the 3D Viewer opens glTF files :D
3D Viewer.png
.
screenshot_variants_on-off.gif
Open this gif to see
Maybe the On|Off is a PBR setting?
It's still strange that Sponza crashes for you but not me on less hardware.

The on off you're seeing is from a material variant extension. It's changing the material of the bulb to make it emissive or not. The closest thing in tS is the constant shader and it doesn't emit any light.
Tried the original Sponza again, no crash :bananathumb:
However, I cannot use trueSpace after it loads, like Point Editing an entry point (Door) from the outside of the building
trueSpace eventually crashes!
If I Import with smaller textures, this is not a problem, and I cannot see any differences in the quality of the textures

I do not think trueSpace uses my GPU
I see very little usage to 0% in Task Manager
Post Reply