Comments (5)
Please provide some minimal info. glb should work out of the box if you load it from code or via command line argument.
from vulkan-gltf-pbr.
I don't know how to export this .gltf with data uri. I am using blender to export .gltf...
When even i am exporting .gltf (.bin) and asset file also exporting.
Help me how to export .gltf with base64 string.
if possible please provide example for .glb format 3d model viewer in android using Vulkan.
{
"asset": {
"generator": "COLLADA2GLTF",
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"nodes": [
{
"children": [
1
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 0
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 2
},
"indices": 0,
"mode": 4,
"material": 0
}
],
"name": "Mesh"
}
],
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"componentType": 5123,
"count": 36,
"max": [
23
],
"min": [
0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 0,
"componentType": 5126,
"count": 24,
"max": [
1.0,
1.0,
1.0
],
"min": [
-1.0,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 288,
"componentType": 5126,
"count": 24,
"max": [
0.5,
0.5,
0.5
],
"min": [
-0.5,
-0.5,
-0.5
],
"type": "VEC3"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.800000011920929,
0.0,
0.0,
1.0
],
"metallicFactor": 0.0
},
"name": "Red"
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 576,
"byteLength": 72,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 576,
"byteStride": 12,
"target": 34962
}
],
"buffers": [
{
"byteLength": 648,
"uri": "data:application/octet-stream;base64,AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAvwAAAL8AAAA/AAAAPwAAAL8AAAA/AAAAvwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAPwAAAL8AAAA/AAAAvwAAAL8AAAA/AAAAPwAAAL8AAAC/AAAAvwAAAL8AAAC/AAAAPwAAAD8AAAA/AAAAPwAAAL8AAAA/AAAAPwAAAD8AAAC/AAAAPwAAAL8AAAC/AAAAvwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAvwAAAD8AAAC/AAAAPwAAAD8AAAC/AAAAvwAAAL8AAAA/AAAAvwAAAD8AAAA/AAAAvwAAAL8AAAC/AAAAvwAAAD8AAAC/AAAAvwAAAL8AAAC/AAAAvwAAAD8AAAC/AAAAPwAAAL8AAAC/AAAAPwAAAD8AAAC/AAABAAIAAwACAAEABAAFAAYABwAGAAUACAAJAAoACwAKAAkADAANAA4ADwAOAA0AEAARABIAEwASABEAFAAVABYAFwAWABUA"
}
]
}
from vulkan-gltf-pbr.
If you have trouble exporting the format you need with Blender, then you should ask the people that write the blender export.
If you're asking about loading a .glb file then you may have to replace the ASCII loading functions with the binary loading functions (e.g. LoadBinaryFromFile) from tinygltf.
from vulkan-gltf-pbr.
Just a quick note: I have added automatic detection for .glb file extensions to select the appropriate tinygltf loading function. So you can now simply load .glb files too by e.g. passing them via a command line argument.
from vulkan-gltf-pbr.
If you have trouble exporting the format you need with Blender, then you should ask the people that write the blender export.
If you're asking about loading a .glb file then you may have to replace the ASCII loading functions with the binary loading functions (e.g. LoadBinaryFromFile) from tinygltf.
Using which software you exported .gltf (with uri:base64 json).
from vulkan-gltf-pbr.
Related Issues (20)
- When I create a offscreen Render pass to save the scene, the program always stucks. HOT 1
- Crash in Model::destroy, vkFreeMemory when unloading specific model HOT 1
- Invalid Joint Indices/Broken Animation HOT 3
- assigning signed value to unsigned int HOT 2
- why is the diffuseColor scaled by (vec3(1.0) - f0)? HOT 1
- questions about shading and input parameters HOT 6
- Two-sided triangles or depth issue HOT 5
- How to make the backgrund sharp? HOT 1
- weird cone-shaped shading illusion HOT 2
- Materials PBR loading in VulkanglTFModel.cpp HOT 1
- [Question] Using this code as a guide to writing a glTF scene loader HOT 2
- android studio build error HOT 1
- Color_0 values not rendered HOT 4
- Forget to add reference& on the parentBvh in void Model::calculateBoundingBox(Node *node, Node *parent) ? HOT 1
- Effect of SRGBtoLinear HOT 2
- redundant call to generateCubemaps()
- Problem with animations HOT 4
- Compilation error on Linux HOT 2
- Please change MakeFIle rules to allow linux build in a windows machine too HOT 2
- source code formatter(e.g. .clang-format) available? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan-gltf-pbr.