<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Doug,<br><br>Yes, I meant w=0. I thought that switching to MFVec4f would be too big of a change, and the only value of interest may cause div by zero. This is why I thought about a boolean finite/ideal. In my everyday job I'm rather far from CG, so maybe it is not easy to implement with existing shaders. Or maybe there are other equivalent solutions to handle faces with points at infinity. But at the first glance it could be a more elegant way than the Background node.<br><br>In our particular application I needed non-uniform grid at infinity. We use frequency-domain processing for image aberration correction and stereo matching, and it is only shift-invariant, not scale-invariant. So using that we are camera manufacturers we pre-select lenses to have the same focal length (to ~1%), then individual lenses/sensors are mechanically adjusted to have the same optical axes and roll. Then we find common radial distortion approximation common for all 4 images, and only correct (in frequency domain) residual distortion. As a result the generated textures have (known) radial distortion that I take into account by correcting the 3d coordinates when generating x3d models IndexedFaceSet. For Background node I would need to apply full rectification to the image. When using 10,000 m flat "wall" I make it as a non-uniform grid, the same would be true if the fancy IndexedFaceSet was available.<br><br>Andrey<br>---<br>That would be nice to have such an application :-)<br><div class="zmail_extra"><div id="1"><br>---- On Fri, 16 Feb 2018 12:42:04 -0800 <b>GPU Group<gpugroup@gmail.com></b> wrote ---- <br></div><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"><div><div dir="ltr"><div>Andrey,</div>I've never tried it - using a homogenous coordinate with w = 0.- is that what you mean?<div>After projection, don't we divide by w? ie x=x/w, y=y/w. Somewhere. Does the shader do that automatically? Isn't dividing by zero a problem?<br><div>But if it works, then I think you would start by designing a new node type - CoordinateH node lets say- derived from X3DCoordinateNode, and it would have MFVec4f point field.</div><div><div><a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Coordinate" target="_blank" rel="noreferrer">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Coordinate</a><br></div></div><div>Then web3d browsers internally would need to check if its a CoordinateH node and if so do a bit different math.</div><div>Not sure what the math would be or where it would take place.</div><div>How do you do it? </div><div>-Doug</div><div>more..</div><div>I would love to have one of those quad cameras. I come from photogrammetry and machine vision, and want to get back into it this year. If I find an application that pays.</div><div><br></div><div><br></div></div></div><div><br><div>On Fri, Feb 16, 2018 at 12:44 PM, Andrey Filippov <span><<a href="mailto:andrey@elphel.com" target="_blank" rel="noreferrer" mailid="andrey%40elphel.com" subj="">andrey@elphel.com</a>></span> wrote:<br><blockquote style="margin: 0 0 0 0.8ex; border-left: 1px rgb(204, 204, 204) solid; padding-left: 1ex"><u></u><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif">We are using x3d models to present long-range 3d scenes captured by a quad stereo camera. And really far objects do not have the distance resolved, so they should be treated as at infinity. We first tried to use background node for such images, but it is not very convenient - we had to provide all 6 images (only one is real), and extend the camera image to match the stereo angle to 1/6 of the full sphere. The rest of the models consist of multiple surfaces as IndexedFaceSet (the viewer is here: <a href="https://community.elphel.com/3d+map" target="_blank" rel="noreferrer">https://community.elphel.com/3d+map</a>, just the models: <a href="https://community.elphel.com/3d+map/models/" target="_blank" rel="noreferrer">https://community.elphel.com/3d+map/models/</a>). So we ended up with just a very far (at 10,000 m with the rest of the objects closer than 1000m) IndexedFaceSet instead of the background.<br><br>Can it make sense to extend IndexedFaceSet (and possibly some other nodes) to use ideal points (x,y,z,0) without increasing number of the point coordinates?<br>For our particular application just a single boolean would do, but other applications might benefit from a mixture of the finite and and ideal points by providing a per-vertex boolean array. This can make more uniform representation to replace background and suggest a straightforward way to export the model to the systems that do not support objects at infinity.<br><br></div><br></div><br>_______________________________________________<br> x3d-public mailing list<br> <a href="mailto:x3d-public@web3d.org" target="_blank" rel="noreferrer" mailid="x3d-public%40web3d.org" subj="">x3d-public@web3d.org</a><br> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank" rel="noreferrer">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br> <br></blockquote></div><br></div> </div></blockquote><br></div><br></div><br></body></html>