[osg-users] How to draw 3D pipe?

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Wed Jul 13 10:41:40 PDT 2016


Hi Daven,

found the code that might get you started. It uses simple geometry shaders
to draw 3D pipeline from a set of points interpolated by catmull rom spline

https://groups.google.com/forum/#!topic/osg-users/o8ovoo271lA

Havn't checked the code now, but I am sure it will work - it worked then

On Wed, Jul 13, 2016 at 7:26 PM, Chris Hanson <xenon at alphapixel.com> wrote:

> On Wed, Jul 13, 2016 at 10:57 AM, Daven Hem <osgforum at tevs.eu> wrote:
>
>> We are currently developing new mineral prospecting aided software for
>> local workings.
>> I have to develop 3D VIEWER which can render 3D work place realistic on
>> its screen.
>> On our workings, there are many pipes, including internet, power,
>> compressed air, water, phone …
>> I am rendering 3D pipe in our 3d viewer.
>>
>
>
>> My problem is as following:
>> There are some points which define shape of pipe.
>> a)      Draw line which pass through their points.
>> b)      Draw curve which smooth the line, with line interpolation
>> segments.
>> It may be smooth line or spline or bezier.
>> c)      Draw 3D pipe from this curve with parameters such as radius,
>> section interpolation segments.
>> Please review my attached image file.
>>
>
>   I didn't see the attached file. I did some work like this previously for
> a petro-geophysical subsurface viewer depicting wells and such. We used all
> FFP because it needed to run onder Windows' Terminal Server environment
> where there was no OpenGL 2.x/shaders available. But As Nick says, today it
> would be best to use shaders to construct the polygons on the fly from the
> pipe centerlines.
>
> d)      Finally, simulate real-time animation of 3D pipe follows excavator.
>>
>
>   So, you want to make a progressive animation of the excavator laying the
> pipe into the ground? With pipe deformation and stuff as it unrolls from a
> spool or something? It could be done, probably with only basic physics and
> not a full physics engine. how critical is this, because it's as much work
> as the rest of it put together, probably, and it sounds like it's just for
> show, not for a super necessary requirement.
>
> Please let me know the easy and fast solution! I hope your detailed advice.
>>
>
>   There may not be an easy and fast solution that someone can just tell
> you by email.
>
>
>> Thanks again.
>> Kind reply.
>>
>
> --
> Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
> http://www.alphapixel.com/
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
> • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
> iPhone/iPad/iOS • Android
> @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
> 623-PIXL [7495]
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160713/571063fe/attachment-0003.htm>


More information about the osg-users mailing list