<div dir="ltr">I just wanted to add that it is a popular opinion among the industry that Geometry Shaders were ill-conceived architecturally and suffer unsolvable performance-blocking issues. There are alternatives of various forms which have their own complexities, but just in case you run into perf problems with GS, you should be aware of the situation. Here's a discussion (related to Vulkan, but architecturally the same situation) that a lot of people seem to cite:<div><br></div><div><a href="https://www.reddit.com/r/vulkan/comments/91q0qx/do_geometry_shaders_still_suck/">https://www.reddit.com/r/vulkan/comments/91q0qx/do_geometry_shaders_still_suck/</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 13, 2020 at 4:19 AM Trajce Nikolov NICK <<a href="mailto:trajce.nikolov.nick@gmail.com">trajce.nikolov.nick@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<br><div><br></div><div>have a look here <a href="https://github.com/CCSI-CSSI/MuseOpenIG/tree/master/Plugin-GPUVegetation" target="_blank">MuseOpenIG/Plugin-GPUVegetation at master · CCSI-CSSI/MuseOpenIG · GitHub</a> ... This is code for generating forests with geometry shaders. It might give you better clue</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 13, 2020 at 7:08 AM <a href="mailto:mirr...@gmail.com" target="_blank">mirr...@gmail.com</a> <<a href="mailto:mirro187@gmail.com" target="_blank">mirro187@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">sorry, the screenshot is wrong. It should be  samplerU.<div>I'm basically not sure how to get texture coordinates into 

Shader::FRAGMENT  in Geometric shaders.<br><div><br><br></div></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">在2020年12月10日星期四 UTC+8 下午11:13:21<<a href="mailto:gwal...@gmail.com" target="_blank">gwal...@gmail.com</a>> 写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What error are you getting?<div>I do see an undefined "samplerY" in there.<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, December 9, 2020 at 9:03:47 PM UTC-5 <a rel="nofollow">mirr...@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>env is win10 osg3.6.4 GTX1660</div><div><img alt="QQ图片20201210095944.jpg" width="527px" height="702.306px" src="https://groups.google.com/group/osg-users/attach/3b89875c18e94/QQ%E5%9B%BE%E7%89%8720201210095944.jpg?part=0.1&view=1"><br></div><div><br></div><div>osg::ref_ptr<osg::Program> createProgram()</div><div>{</div><div>    osg::Program *program = new osg::Program();</div><div>    program->addShader(new osg::Shader(osg::Shader::VERTEX,vertSource));</div><div>    program->addShader(new osg::Shader(osg::Shader::GEOMETRY,geomSource));</div><div>    program->addShader(new osg::Shader(osg::Shader::FRAGMENT,fragSource));</div><div>    program->setParameter(GL_GEOMETRY_VERTICES_OUT_EXT, 3);</div><div>    program->setParameter(GL_GEOMETRY_INPUT_TYPE_EXT, GL_TRIANGLES);</div><div>    program->setParameter(GL_GEOMETRY_OUTPUT_TYPE_EXT, 

GL_TRIANGLES  );</div><div>    return program;</div><div>}</div></blockquote></div></blockquote></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/89abc9a3-66bf-4248-8e3d-3dfd23235622n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/89abc9a3-66bf-4248-8e3d-3dfd23235622n%40googlegroups.com</a>.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">trajce nikolov nick<br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAO-%2BzinF1fFZnS3QkT9VTgScKQ4XVF1oVB_L9vQRZT-reQvAEA%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/CAO-%2BzinF1fFZnS3QkT9VTgScKQ4XVF1oVB_L9vQRZT-reQvAEA%40mail.gmail.com</a>.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="text-align:center">Chris 'Xenon' Hanson, omo sanza lettere. Xenon@AlphaPixel.com <a href="http://www.alphapixel.com/" target="_blank">http://www.alphapixel.com/</a></div><div style="text-align:center">Training • Consulting • Contracting</div><div style="text-align:center">3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL</div><div style="text-align:center"><span style="font-size:12.8px">Legal/IP •</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">Forensics •</span><span style="font-size:12.8px"> </span>Imaging <span style="font-size:12.8px">•</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">UAVs </span><span style="font-size:12.8px">• GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android</span></div><div style="text-align:center"><a href="https://twitter.com/alphapixel" target="_blank">@alphapixel</a> <a href="http://facebook.com/alphapixel" target="_blank">facebook.com/alphapixel</a> (775) 623-PIXL [7495]<br></div></div></div></div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAGoufmbvyPcw4b6aoue4Frqh7jw%3Dya%2Bfvuap3r6dD6AO_LXpxQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAGoufmbvyPcw4b6aoue4Frqh7jw%3Dya%2Bfvuap3r6dD6AO_LXpxQ%40mail.gmail.com</a>.<br />