-
Notifications
You must be signed in to change notification settings - Fork 28
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
GLB materials not importing correctly #1198
Comments
Hi @NoofleBot, could you please attach the blender glb file? |
@slimbuck the GLB is in the zip |
Ah great thanks. I suspect this file probably the uses depreciated material extension that we didn't add support for, but I'll investigate! |
(KHR_materials_pbrSpecularGlossiness) |
It looks like the text mesh and center spike mesh should be rendering with diffuse white material, but are being rendered as reflective silver after import. Can I confirm this is the issue you're reporting @NoofleBot? The two gltf materials in question ("Text Glow" and "Text Glow.002") are completely default, which indicates we are not using correct defaults on import. |
I found the issue. Our default To fix the materials in the scene above, set 'Text Glow' and 'Text Glow.002' |
The issue isn't the "Text Glow" and "Text Glow.002" materials, I don't really mind whatever is broken with those. My issue is that for whatever reason the main material "Material" doesn't import with the correct material properties to reproduce the metal look that is seen in the PlayCanvas viewer. I just want the model in the PlayCanvas Editor to import and look exactly like the model PlayCanvas viewer, given they are being imported from the same .glb file it doesn't make sense that they render differently. |
Oh right I didn't notice thr difference there, but will investigate. |
Hi @NoofleBot, Oh I just realised what the problem is you've been referring to. You're saying that the reflections are sharp when they should be blurry. The reason for that is you must generate "prefiltered lighting data" on your cubemap. Without this the engine can't render blurry reflections: |
TL;DR The editor is not importing my .glb file with correct material data like the viewer does
I'm providing my blender file aswell as my exported GLB file and a 360 photo for your reference/ease of replication
My GLB, Blender File, & 360 Photo.zip
Steps to Reproduce for Editor
File
>Export
>glTF 2.0 (.glb/.gltf)
glTF Binary (.glb)
+Y Up
is selectedSteps to Reproduce for Viewer
The text was updated successfully, but these errors were encountered: