[x3d-public] RenderedTexture support

Mitchell Williams m1.williams at partner.samsung.com
Tue Jan 16 09:12:59 PST 2018


I expect this RenderedTexture node to be included in GearVR's X3D implementation.

Mitch Williams
Samsung GearVR X3D development
310-809-4836 (outside line)

-----Original Message-----
From: x3d-public [mailto:x3d-public-bounces at web3d.org] On Behalf Of Don Brutzman
Sent: Monday, January 15, 2018 4:20 PM
To: Andreas Plesch <andreasplesch at gmail.com>
Cc: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: Re: [x3d-public] RenderedTexture support

Thanks for the analysis and suggestion.  No this node has never been proposed for use in X3D.

I searched and found documentation at

	X3DOM documentation: Node: RenderedTexture
	https://doc.x3dom.org/author/Texturing/RenderedTexture.html

"This extension provides the ability to dynamically render a partial scenegraph to an offscreen texture that can then be used on the geometry of a node. This can be used in many different ways such as creating mirror effects, inputs to shaders etc. The purpose of this component is to provide for extended visual effects, but not the complete form of offscreen rendering and buffers that would be available to lower-level rendering APIs."

The fields are quite diverse and utilize multiple parts of a scene.  Some further composition might be needed, worth closer scrutiny.

It is certainly interesting to expose this kind of functionality to scene authors.  If rendered results might be saved to a file, then it could also increase options for interactions within HTML pages.

The interpupillary distance field looks like something we would defer to X3D v4.1 for Mixed Augmented Reality (MAR) VR/AR applications.

It would be great if someone wanted to lead the effort to add this node, and perhaps closely related nodes.

On 1/16/2018 7:39 AM, Andreas Plesch wrote:
> Dear group,
> 
> x3dom has a RenderedTexture node which very useful. Prompted by a 
> x3dom-user list question, I started to think about using 
> RenderedTextures as faces for a ComposedCubeMapNode which is also 
> available in x3dom albeit only for ImageTexture sources.
> 
> Although I first thought it is technically difficult due to webgl 
> limitations, after deep diving it turned out that there is a way to 
> efficiently use gl textures (generated for RenderedTexture) as faces 
> for gl cube map textures (using gl.copyTexImage2D()).
> 
> So I am developing in my cubemap branch of x3dom the ability for 
> ComposedCubeMapNode to use RenderedTexture which can be updated per 
> frame, for dynamic mirror effects and probably other uses. Here is an
> example:
> 
> https://rawgit.com/andreasplesch/x3dom/cubemap/test/regression-suite/t
> est/cases/cubemap/colorcube.html
> 
> It more or less works but before I go further I would like to know how 
> other browser approach dynamic cube maps from a high level. There is 
> also the x3d GeneratedCubeMapNode which is intended for this effect.
> So one question would be which players actually implement a 
> GeneratedCubeMapNode.
> 
> There are quite a few x3d browsers which have a RenderedTexture node.
> Do they allow using it with ComposedCubeMap ?
> 
> A big question is how recursive mirror in mirror are handled.
> 
> Is a RenderedTexture node a target for v.4 ?
> 
> Any feedback much welcome,
> 
> Andreas
> 


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org




More information about the x3d-public mailing list