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

Add "Damaged Helmet" model. #35

Merged
merged 1 commit into from
Jun 29, 2017
Merged

Add "Damaged Helmet" model. #35

merged 1 commit into from
Jun 29, 2017

Conversation

emackey
Copy link
Member

@emackey emackey commented Jun 23, 2017

/cc @moneimne

Copy link
Contributor

@moneimne moneimne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts?

main.js Outdated
@@ -229,7 +229,7 @@ function init(vertSource, fragSource) {


var text = { Model: "BoomBox" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about making this model the default one upon opening the demo? I think it displays more of a variety of materials than the BoomBox model (mirroring glass, brushed metal sides, smoother metal on back, metallic/rough scratches with interesting highlights, and diffuse tubing underneath).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and done!

@sbtron
Copy link
Contributor

sbtron commented Jun 23, 2017

Looks like there are still a few issues with the model- Tangent4 and a bytestride of 0.

@emackey
Copy link
Member Author

emackey commented Jun 23, 2017

Yeah, I'm sure it's from an older exporter. Actually when we first got it, the metalness map was in the red channel and had to be moved. I don't have the original, but I suppose some minor manual cleanup should be possible.

I wonder if anyone has a working glTF 2.0 importer/converter yet?

@javagl
Copy link
Contributor

javagl commented Jun 25, 2017

Although I haven't tested it yet: Using a large, complex model as the default is questionable, IMHO. People (like me) with a slow connection might see a blank screen for several minutes. (Although, they won't: After one minute, they'll close the window). I think that a very simple model (maybe the spheres or some cube) would be preferable here, at least as long as there is not progress indicator. But maybe that's just me...

@emackey
Copy link
Member Author

emackey commented Jun 27, 2017

Using a large, complex model as the default is questionable

@javagl I agree we need loading/progress indicators and good performance. But this new model is only 3.5 megs in size, to the BoomBox's 10 megs size. So switching is a performance win here.

Looks like there are still a few issues with the model- Tangent4 and a bytestride of 0.

@sbtron I've managed to fix some problems. I actually imported the model with @ksons blender importer, hooked up the existing textures and then re-exported it with the new Khronos Blender exporter. Worked really well.

This should be ready to merge now.

@lexaknyazev
Copy link
Member

@emackey @sbtron
Is it possible to add extra models from this repo (AppleTree, DamagedHelmet, FarmLandDiorama, Telephone, and WaterBottle) to glTF-Sample-Models?

@emackey
Copy link
Member Author

emackey commented Jun 27, 2017

@lexaknyazev The newly re-exported DamagedHelmet should be good to go. When time permits I'll create a few variants of it (binary, embedded) and open a PR back to sample models.

I don't know the status of the other models. They may be in need of similar import/export treatment to bring them up to date. The WaterBottle in particular is used in a number of glTF slide presentations, but not available in the sample repo.

@bghgary
Copy link

bghgary commented Jun 27, 2017

Is it possible to add extra models from this repo (AppleTree, DamagedHelmet, FarmLandDiorama, Telephone, and WaterBottle) to glTF-Sample-Models?

The AppleTree, FarmLandDiorama, Telephone, and WaterBottle are in my backlog. The first three have issues which is why they haven't made it in yet. I have a version of the WaterBottle ready, but haven't had time to submit it yet.

@emackey
Copy link
Member Author

emackey commented Jun 28, 2017

@moneimne if you're happy can you merge this? Thanks!

@moneimne moneimne merged commit a1aa86b into master Jun 29, 2017
@moneimne
Copy link
Contributor

Thanks, @emackey!

@emackey emackey deleted the damaged-helmet branch July 9, 2017 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants