tparisi/Programming3DApplications

Programming3DApplications vs Vizi Examples

mwcarpe opened this issue · 1 comments

Working through Programming 3D Applications book. Ch 10 refers to futurgoXXX.glsl files, but they're not posted to Github Programming3DApplications, only .dae, .json, .bin files. Found the futurgoXXX.glsl files in Github Vizi project along with previewer3.html example.

Is there a reason they're not included in Programming3DApplications? Per book, could build my own .glsl files but want to confirm whether there is reason they're not included (ie .glsl not yet ready for prime time?). Other option is to use the Vizi version.

Hi! Oh yeah the .glsl files are produced by the converter but they're not actually used by the Three.js glTF loader. That loader only knows common shader techniques like blinn and lambert, so it just ignores any user-defined shading. This is a short-term limitation of that loader... and in fact this particular model only uses blinn shading anyway so there is no loss.

I must have deleted the .glsl files during development, since they weren't being used. So that's pretty confusing. My bad. Let me think of the best way to tell people about this issue.

But long story short, you don't need them.