helix-toolkit / helix-toolkit

Helix Toolkit is a collection of 3D components for .NET.
http://helix-toolkit.org/
MIT License
1.88k stars 671 forks source link

Unable to run TessellationDemo #225

Closed vedamsudhakar closed 8 years ago

vedamsudhakar commented 8 years ago

Build the tessellation sample application provided under the following path: helix-toolkit/Source/Examples/WPF.SharpDX/TessellationDemo/ When I run the application , i did not see any model rendering. refer screenshot. modelmissing

Tested with RenderPNTriangles and RenderPNQuads also. Please help me,

objorke commented 8 years ago

I could not reproduce the issue. Did you modify the example with a new combo box?

smischke commented 8 years ago

Edit: Are you running Windows 10?

vedamsudhakar commented 8 years ago

Actually I am getting index Out of range exception with Quads as default option. So I changed to Triangles as a default Mesh Topology. @smischke: Yes I am running in Windows 10.

vedamsudhakar commented 8 years ago

@objorke : Also PRECOMPILED_SHADERS is removed from conditional compilation symbols ( HelixToolkit.Wpf.SharpDX project). I thinking that tessellation effect is not properly compiling. please help me.

vedamsudhakar commented 8 years ago

Hi Stefan Mischke,

I am aware of those kind of exceptions. but this time it is not giving any exceptions just model rendering is missed. In this rotating mouse wheel to zoom in and zoom out , camera info also is updating. Please help I need tessellation sample to run.

On Wed, Dec 2, 2015 at 7:37 PM, Stefan Mischke notifications@github.com wrote:

Please try one of the issues in the example browser. It has a better error reporting. [image: hxsdxexception] https://cloud.githubusercontent.com/assets/8622962/11532518/970442e8-9904-11e5-9175-8238a3a19089.png

Have you installed the DirectX Runtime?

https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe

— Reply to this email directly or view it on GitHub https://github.com/helix-toolkit/helix-toolkit/issues/225#issuecomment-161305444 .

vedam sudhakar

vedamsudhakar commented 8 years ago

@objorke : can you please send your running tessellation sample

vedamsudhakar commented 8 years ago

Hi I found the rendering problem. :) in my code following line is problem. if (geometry == null) in Attach(IRenderHost host) in PNPatchGeometryModel3D class it should be if(geometry!=null)

Thanks

objorke commented 8 years ago

Please create a PR if this is something that should be fixed.