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

150 views
Skip to first unread message

Daven Hem

unread,
Jul 13, 2016, 12:48:18 PM7/13/16
to osg-...@lists.openscenegraph.org
Dear, Sir
I’m Daven Hem in Cambodia. Thanks for your reviewing.
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.
I’ve already read many topics, including “osgModeling” by Wang Rui
But I didn’t see sample codes, detailed replies and I don’t decide the solution now.
I may use osgModeling library.
I want to hear the best advice from awesome Open Scene Graph.
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.
d) Finally, simulate real-time animation of 3D pipe follows excavator.

Please let me know the easy and fast solution! I hope your detailed advice.
Thanks again.
Kind reply.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68122#68122


_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Trajce Nikolov NICK

unread,
Jul 13, 2016, 12:59:57 PM7/13/16
to OpenSceneGraph Users
Hi,

a)-c) is pretty easy and can be a good task to learn a bit of geometry shaders. I did this long time ago and it was not that hard. Might get you some code if I find it in the email archive. That might helps

d) can you clarify more. I have seen this thing with physics and there are companies making money on technology like this. So might be an advanced

There are contractors here on this list that might help you if you can out-source work too :-) .. (time for commercials :-)
--
trajce nikolov nick

Chris Hanson

unread,
Jul 13, 2016, 1:27:18 PM7/13/16
to OpenSceneGraph Users
On Wed, Jul 13, 2016 at 10:57 AM, Daven Hem <osgf...@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. Xe...@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 facebook.com/alphapixel (775) 623-PIXL [7495]

Trajce Nikolov NICK

unread,
Jul 13, 2016, 1:41:46 PM7/13/16
to OpenSceneGraph Users
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


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

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
trajce nikolov nick
Reply all
Reply to author
Forward
0 new messages