[x3d-public] Purpose of X3D - PixelTexture, embedded ImageTexture data

Don Brutzman brutzman at nps.edu
Wed Oct 12 11:31:12 PDT 2016


Interesting approach - question for you please, Doug.

On 10/7/2016 6:41 AM, doug sanden wrote:
>>
>>  1) X3D is for static models only (no texture). This is a very good
>>  match. There are just a few things that X3D doesn't handle and most of
>>  those are having to deal with interchange with other formats.
>
> .web3dit image file format
> I have a text-only image format .web3dit (i=image t=text (vs xml or json)) I could donate. Handles 2D, cube and 3D textures. Then web3d would have its own image format too. (Its really just pixeltexture in a separate file, with a few tricks). I use it for round-trip testing. But if you are desparate for web3d to own texture file formats it might be a good starting point.
> https://sourceforge.net/p/freewrl/git/ci/develop/tree/freex3d/src/lib/opengl/LoadTextures.c
> L.620-905

Wondering, do you think PixelTexture (or a variant) deserves becoming a text-based file format of its own, in addition to a contained data within an X3D scene?  As uncompressed it is not very compact, so we haven't explored that approach.  It will compress quite nicely however with EXI (and probably SRC).

Of course, anyone familiar with receiving spam knows that images can be either referenced or embedded in HTML.  Summaries of typical technique:

	http://www.techerator.com/2011/12/how-to-embed-images-directly-into-your-html/
	http://stackoverflow.com/questions/2807251/can-i-embed-a-png-image-into-an-html-page

Incidentally, am thinking the same technique might be legal within X3D spec functionality already.

HTML
	<img alt="My Image" src="data:image/png;base64,iVBORwA[MoreBase64StringHere]" />

into something like

X3D
	<ImageTexture url='"data:image/png;base64,iVBORwA[MoreBase64StringHere]"'/>

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



More information about the x3d-public mailing list