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

John Carlson yottzumm at gmail.com
Fri May 5 17:59:21 PDT 2017


You can use subdivision field in a sphere node to get a fine mesh in X3DOM.  I think it’s available for other geometry as well.  That’s how I get the flower effect in X3DOM.  I have to use an IFS otherwise (boo).  Then I put the displacement in the vertex shader.   believe the normals may be dependent on displacement, but don’t quote me.

John
> On May 5, 2017, at 5:07 PM, Andreas Plesch <andreasplesch at gmail.com> wrote:
> 
> 
> 
> On Mon, May 1, 2017 at 8:46 AM, Andreas Plesch <andreasplesch at gmail.com <mailto:andreasplesch at gmail.com>> wrote:
> One strategy for standardization may be to follow three's Phong Material:
> 
> https://github.com/mrdoob/three.js/blob/dev/src/materials/MeshPhongMaterial.js <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 issues
> 
> https://github.com/mrdoob/three.js/pull/11271 <https://github.com/mrdoob/three.js/pull/11271>
> 
> 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 last.
> 
> -Andreas
> -- 
> Andreas Plesch
> 39 Barbara Rd.
> Waltham, MA 02453
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170505/45dfc3dc/attachment.html>


More information about the x3d-public mailing list