[x3d-public] Nurbs patch coloring

Andreas Plesch andreasplesch at gmail.com
Mon Jan 29 18:30:30 PST 2018


I thought I would mention that currently neither x3dom nor x-cite implement
the NURBS component. So webgl limitations may be not be an immediate
concern unless the goal is actually to target the web.

Combining the textures into a single image gives the browser and player a
chance to cache the image which would be beneficial for loading it for each
surface. In theory, a single texture could be shared on the openGL level by
all surfaces. But it would depend on the x3d player's ability to optimize.


-Andreas



> Message: 1
> Date: Sat, 27 Jan 2018 15:27:55 +0300
> From: Michail Vidiassov <master at iaas.msu.ru>
> To: X3D Graphics public mailing list <x3d-public at web3d.org>
> Subject: Re: [x3d-public] Nurbs patch coloring
> Message-ID:
>         <CALDha9MHX0J6g7MGCTn0v5dPmyZinPKEnSZzKcmf-_J_6f4O-w at mail.gm
> ail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Dear All,
>
> On Fri, Jan 26, 2018 at 4:34 AM, Andreas Plesch <andreasplesch at gmail.com>
> wrote:
> > If 2x2 textures would work, it.may be possible to use PixelTextures which
> > could be constructed from the control point color information perhaps
> pretty
> > directly. Actually, such a PixelTexture may be more appropriate  than a
> > hypothetical controlColor MFColor field since the non control vertices
> would
> > have to be colorized by some interpolation in a texture mapping like
> process
> > anyways. But there may be an upper limit to the number of textures.
>
> As far as I can guess from https://webglstats.com/webgl2 the upper
> number of textures may be a problem, depending on the viewer used. Or
> viewers avoid hitting the limit anyway and keep the number of textures
> used simultaneously below it?
> Does combining all 2x2 textures into one bitmap and using texCoord
> field in NurbsPatchSurface to pick necessary bits for a given patch
> look likely to work?
> Googling suggest texCoord for X3D NURBS to be an obscure feature.
>
> Michail
> PS. Really I look for a way to reproduce old good gluNurbs results.
>
>
>
>


-- 
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180129/1ee4d90b/attachment.html>


More information about the x3d-public mailing list