Viewer api materials


(Miekeroth) #21

Hi all,

Wasn't able to reply sooner, but I really love the cooperation with this too. And I wanted to ask both of you, @shaderbytes and @klaasnienhuis: what do you consider (apart from what we do here) to be the best sites to learn js in the proper way?
It won't me my core business, but I want to be able to get the most out of my sketchfab models and pass that on to others.


(Miekeroth) #22

Look!
http://miekeroth.com/sketchfab_apps/Arms_shoulder_rat.html


(Klaasnienhuis) #23

Very cool @miekeroth.
About learning JS, I'm just messing around honestly and try to pick stuff up here and there. I did start with a book however: http://shop.oreilly.com/product/0636920027065.do. and I can really recommend this series.


(Miekeroth) #24

Thanks @klaasnienhuis!


#25

Codecademy doesn't get super advanced, but it's a great resource to learn the basics of any language.


(Alex) #26

Seems this one is a bit old, but also quite useful http://shop.oreilly.com/product/9780596805531.do


(Cscartdept) #27

Very interesting. Is it possible to use JavaScript to build a UI that will allow the viewer to change colors of materials using a set color palette? Suppose I upload a model of a neon sign and I want to assign materials like neon glass, wall color, metal sides, back panel etc. and the viewer can select colors from the palette to change different parts of the model.


(Shaderbytes) #28

Hi there

Yup that is totally possible , I am developing an easy to use abstraction of the Sketchfab API and @miekeroth is assisting putting together models as targets for examples. Check this thread , It's still a work in progress but I have already done the code to make setting colors of materials extremely easy :wink:


(Cscartdept) #29

Care to share what you have made Shaderbytes? :neutral_face:


(Miekeroth) #30

We are working on it :wink: