Re: [osg-users] Hole in extrusion

2014-07-30 Thread Yu Zhang
Hi, I found correct way to modeling this hole: Use the picture in hole.png: Create a geometry, for vertex buffer, add 0 - 15 to the array. For prim sets: 1) Add tessellated top plane, need set its normal correctly. 2) Add tessellated bottom plane, need set its normal. 3) Add side faces for

[osg-users] osgViewer::setSceneData calling sequence with osgUtil::Tessellator

2014-07-18 Thread Yu Zhang
Hi experts, I have 2 piece of code, use tessellaor to extrude and hole generation. Looks the setSceneData should call after hole tessellation operation, otherwise the viewer will draw nothing. Could you please advice on how to setSceneData the root nodes in the begin of application, and update

Re: [osg-users] osgViewer::setSceneData calling sequence with osgUtil::Tessellator

2014-07-18 Thread Yu Zhang
Hi Robot, Your point is true. Thanks a lot for your help, and sorry for this question, it looks not very outstanding:) Thank you! Cheers, Yu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60338#60338

Re: [osg-users] GraphicsWindowCocoa Sample

2014-06-25 Thread Yu Zhang
Hi Stephan, Thanks a lot to your reply and your help! Now I am able to run a sample. My fail reason is didn't call graphic context' realize function. The GraphicsWindowEmbedded approach you mentioned, is that the way used example_viewerCocoa? The code is: osgViewer::GraphicsWindowEmbedded*