Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model created without material #194

Closed
pjcozzi opened this issue Nov 26, 2013 · 5 comments
Closed

Model created without material #194

pjcozzi opened this issue Nov 26, 2013 · 5 comments
Labels

Comments

@pjcozzi
Copy link
Member

pjcozzi commented Nov 26, 2013

@fabrobinet I will send you the COLLADA model.

A simple skinned COLLADA model exported from blender is converted with collada2gltf without warning, but it does not generate any shaders nor does it include a material:

    "materials": {},
    "meshes": {
        "Cube-mesh": {
            "name": "Cube",
            "primitives": [
                {
                    "attributes": {
                        "JOINT": "attribute_40",
                        "NORMAL": "attribute_20",
                        "POSITION": "attribute_18",
                        "WEIGHT": "attribute_37"
                    },
                    "indices": "indices_16",
                    "material": "",
                    "primitive": 4
                }
            ]
        }
    },

Even if this is an issue with the Blender exporter, we need to handle this reasonably.

@antont
Copy link

antont commented Nov 27, 2013

We got a scene from Blender to glTF viewer successfully yesterday (after some hardship).

You can see it live in http://playsign.tklapp.com:8000/glTF-webgl-viewer/ and the source is in http://www.ee.oulu.fi/~antont/download/oulu3dlive-lofi.zip (contains both the blends and the aggregating Masterscene.blend and the original Ogre3D exports).

We needed to set the texture export options so that both 'use uv textures' and 'use material textures' are on, but the 'use only active uv layer' is not checked.

I do agree that it would be nice to not crash when the TEXCOORD param is missing :) (we were first using a python snippet to find meshes without it and removed them from the scene json manually)

@pjcozzi
Copy link
Member Author

pjcozzi commented Nov 27, 2013

Ah, thanks. We'll have a look.

@fabrobinet
Copy link
Contributor

That's a dup of #154 but this new issue got more info, so we'll keep it.

@fabrobinet
Copy link
Contributor

So, we now create a default material (white) for scene coming without material... Actually, 2 kinds of materials/technique/shaders depending if normals are present. Ideally, we'd also like to generate normals when default lighting is turned on for these models. This is tracked more generally here: #202

@Digicrat
Copy link

Digicrat commented Feb 4, 2014

The latest dev-4 branch you committed to resolves my issue CesiumGS/cesium#1385 (and brings me to a new one which is irrelevant to this ticket).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants