Sketchfab Forum

Material showcase doesn't work anymore

3d

(Mfhammer) #1

Hello, I use sketchfab within my webshop, one model for different colors, using the material showcase option, but today it didn't work anymore, also the demo on sketchfab didn't work:

https://labs.sketchfab.com/experiments/material-showcase/

Sketchfab, can you fix this problem?


#2

Sorry about that! It's fiixed now.


(Mfhammer) #3

Thanks James,

For the demo it is, but my model still doesn't work, must I do an update somewhere?


#4

Do you have the ?material_showcase=1` parameter in your iframe src?


(Mfhammer) #5

Yes James


#6

Hmm, can you share the full link you're using?


(Mfhammer) #7

Oh no James it is:
target="showcase"


(Mfhammer) #8



(Mfhammer) #9

James, I don't know if you got my iframe in my previous message but I managed to bring one color back by adding: ?material_showcase=1 to the iframe,
I didn't used this before, I only refered to target="showcase" and it worked, I will do the rest of the colors also, if you didn't here is the working page:

http://www.lczitzakken.nl/nice-outdoor-beige


(Mauricesvay) #10

@james @mfhammer actually, you need to add material_showcase=1 after the # sign.


(Mfhammer) #11

Maurice,

It's working again on my shop by adding just ,material_showcase=1, I don't see any # in my iframe what do you mean exactly, can you send me an example?

Martin


#12

https://sketchfab.com/models/93166cb1877f4895a91411334460898b/embed?autostart=1#material_showcase=1,material_cavity=https://sketchfab-labs.s3.amazonaws.com/materials/Couch/couch_Ambient_Occlusion.jpg,material_diffuse=https://sketchfab-labs.s3.amazonaws.com/materials/Couch/couch_Base_Color.jpg,material_metalness=https://sketchfab-labs.s3.amazonaws.com/materials/Couch/couch_Metallic.jpg,material_normal=https://sketchfab-labs.s3.amazonaws.com/materials/Couch/couch_Normal.jpg,material_roughness=https://sketchfab-labs.s3.amazonaws.com/materials/Couch/couch_Roughness.jpg


(4535993) #13

Hi, just reopen this discussion, because have some issue to make the showcase material work, i just succeded to use the showcase material on my site with the demo model :

<iframe id="api-frame" class="embed-responsive-item" allowfullscreen="" mozallowfullscreen="true" webkitallowfullscreen="true"
src="https://sketchfab.com/models/93166cb1877f4895a91411334460898b/embed?api_version=1.0.0&amp;api_id=14836885187137772&amp;internal=0&amp;
ui_infos=0&amp;ui_controls=0&amp;watermark=1&amp;continuous_render=0&amp;supersample=0&amp;autospin=1&amp;autostart=1&amp;ui_stop=0&amp;
transparent=1#material_showcase=1,
material_cavity=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Ambient_Occlusion.jpg,
material_diffuse=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Base_Color.jpg,
material_metalness=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Metallic.jpg,
material_normal=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Normal.jpg,
material_roughness=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Roughness.jpg">
</iframe>

now i just want to use the showcase material on others model, but it'seems not work, i put a code example with another model:

<iframe id="api-frame" class="embed-responsive-item" allowfullscreen="" mozallowfullscreen="true" webkitallowfullscreen="true"
src="https://sketchfab.com/models/1a50b7ee150a45e583674cd319bb82eb/embed?api_version=1.0.0&amp;api_id=9649333077146243&amp;internal=0&amp;
ui_infos=0&amp;ui_controls=0&amp;watermark=1&amp;continuous_render=0&amp;supersample=0&amp;autospin=1&amp;autostart=1&amp;ui_stop=0&amp;
transparent=1#material_showcase=1,
material_cavity=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Ambient_Occlusion.jpg,
material_diffuse=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Base_Color.jpg,
material_metalness=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Metallic.jpg,
material_normal=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Normal.jpg,
material_roughness=https://sketchfab-labs.s3.amazonaws.com/materials/Watermelon/Watermelon_Roughness.jpg"></iframe>

i miss some node/materials dependency of the model, for make it work on this scenario?


(Mfhammer) #14

I don't see the material name, by default it will change the material named: main_material,
so you change your parts to main_material or you use this line: material_names=body;body_floor
if your parts have the name body and body_floor,

That will do the trick

Good luck


(4535993) #15

I'm just so stupid, ty man it's was that


(Sugarcoatvfx) #16

The Material showcase example is very cool !

However as a CG artist I can't follow. I try to open the files and replace my sketchfab model but I can't change the material. Any step by step tutorial for beginner ?


#17

There's a blog post with more details here:


(Suhailpothigara) #18

Hi, How do you do.
I am programmer in WebGL.
I am very interest in skectfab.
I need your help.
In this example(material-showcase) I have only changed model to my model.
My model is very simple(https://sketchfab.com/models/430290cf18194fb980678790c25b0091).
But it does not work.
Please help me.


(Mfhammer) #19

What is your material name? Is it: main_material?


(Stephomi) #20

In your example you should add material_names=lambert1 in the url since your material is named lambert1