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