[x3d-public] Support for specular maps (and more) in view3dscene, and Blender exporter to CommonSurfaceShader

Andreas Plesch andreasplesch at gmail.com
Fri May 5 14:07:57 PDT 2017

On Mon, May 1, 2017 at 8:46 AM, Andreas Plesch <andreasplesch at gmail.com>

> One strategy for standardization may be to follow three's Phong Material:
> https://github.com/mrdoob/three.js/blob/dev/src/
> materials/MeshPhongMaterial.js
> It defines mostly the same maps, and would have an example shader
> implementation for each which perhaps could be used as a reference.
> > On 4/30/2017 10:25 AM, Michalis Kamburelis wrote:
> >>
> >>    Especially since for now Castle Game Engine expects to find the
> >> height map in the alpha channel of normal map, so we ignore the
> >> "displacementMap"...
> >
> >
> > Perhaps such configuration information should be in some kind of
> enumeration
> > field, for portability and reuse?
> Hm, possibly. I think we'll see where our (Castle Game Engine and
> X3DOM) implementations will go.
> - Googling about the displacement support in X3DOM, they admit that
> it's something they are still "playing with", and their existing
> specification can change to incorporate new possible features.
> - It's similar with my "steep parallax bump mapping" --- it's not a
> standard technique in renderers yet (unlike the class "bump mapping",
> which is now widely implemented), it is only something cool that I'm
> playing with :)
For reference, here is an interesting discussion on displacement texture


There is agreement that only the vertex shader is affected and that the
vertices are actually displaced. This makes the effect's usefulness limited
in webgl since you will need a fine mesh. There is lot of discussion on
when the displacement is applied, eg. to which normal, if there is skinning
and morphing. The consensus appears to be that the displacement is applied

Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170505/e37c9e18/attachment.html>

More information about the x3d-public mailing list