-
-
Notifications
You must be signed in to change notification settings - Fork 194
Update model viewer sample to use version 2.0.2 #405
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
Update model viewer sample to use version 2.0.2 #405
Conversation
transform( | ||
position = Position(z = -4.0f), | ||
rotation = Rotation(x = 15.0f) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the expected result. When I use damaged_helmet
here, it renders correctly, however the MaterialSuite
does not?
MaterialSuite | damaged_helmet |
---|---|
![]() |
![]() |
modelInstance = modelInstance, | ||
scaleToUnits = 2.0f, | ||
) | ||
modelNode.scale = Scale(0.05f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model is too big - without scaling its not visible scalling down!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @waliahimanshu.
Sorry, I forgot.I had to remove the default environment indirect light and skybox because it was loading an environment by default even when you want to be in an unlited mode.
Feel free to move the camera backward z = 2.0f
so the model appears smaller.
Sorry, I just saw that the camera node is already at |
@ThomasGorisse thanks for your reply, sorry I was not very clear. In the previous version, we could view the whole model (wooden, silver and metallic textures ) similar to this and autoplay its animation! After the update I could only last metallic part of it, please see the video for how its appearing? materila_suit.mp4 |
Why?
The model viewer sample appears to be broken and mostly crashes with this stacktrace.
What
I am trying to migrate the sample from
2.0.0
to2.0.2
. I managed to use the newer api, however I am not getting desired results.Issues
The indirect light environment is not showing in the 3d scene backgroundable to make it work with :