Amerio.Stephane Posted April 5, 2018 Share Posted April 5, 2018 Hello, For calibration purposes, I must display in the 3D view some colored, unlit wireframe meshes, just like this one: What would be the best way to do it ? I would like to avoid having to make an object where wires have a real polygonal thickness, because these kind of objects will be drawn both near and far the camera, so a constant thickness won't do it. Thanks Link to comment
silent Posted April 6, 2018 Share Posted April 6, 2018 Hi Amerio, Probably, visualizer can fit for this use case: https://developer.unigine.com/en/docs/2.6.1/api/library/engine/class.visualizer?rlang=cpp How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted April 6, 2018 Author Share Posted April 6, 2018 Thanks for pointing it out. But the wireframe it displays shows the mesh as triangle, not quads or n-gons. So it won't fill my specific needs. I'll work around it. Anyway, i would have a suggestion for a useful visualizer feature: drawing the contour of a surface or mesh (if it already exists, please point it to me again :) ) Thanks again Link to comment
Greg.Mildenhall Posted April 9, 2018 Share Posted April 9, 2018 The visualizer isn't just for wireframes, you can use it for lines, boxes, sectors, etc. But the image above isn't a mesh anyway, is it? Looks like a bunch of curves. Link to comment
Amerio.Stephane Posted April 9, 2018 Author Share Posted April 9, 2018 The image above is actually a screencap from Presagis Creator+Vegaprime, which supports non closed wireframe meshes (ie. a n-gon is drawn as an open polyline). All "curves" are just polygons with a high vertex count. Blender also supports writing edge-only polygons (ie a serie of 2-points polygons) as .obj meshes. Link to comment
Greg.Mildenhall Posted April 9, 2018 Share Posted April 9, 2018 All curves are _not_ high-vertex polys, because often it's too slow to render them that way. And you might even find that to be the case for you if you use the visualiser to render all those tiny lines. :( I have a feeling that MODE_LINES isn't supported anymore despite being in the doc, but you could try it. Over here we've just written our own shaders for lines, so I'll be interested to see if there's a better-supported way to render them efficiently. Link to comment
Greg.Mildenhall Posted April 10, 2018 Share Posted April 10, 2018 (edited) Sorry, I seem to be mistaken about MODE_LINES not working.https://developer.unigine.com/forum/topic/4726-drawing-objectdynamic-in-lines-with-simple-shader/ Edited April 10, 2018 by Greg.Mildenhall Link to comment
Recommended Posts