Author Topic: Merry Christmas using OpenCL OpenGL Interop  (Read 2916 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member

  • Offline
  • *****

  • 2912
    • View Profile
Merry Christmas using OpenCL OpenGL Interop
« on: December 13, 2010, 06:33:12 PM »
Quote
We at CMSoft would like to share with everyone our best wishes. To do so, we have created a new OpenCL OpenGL Interop example showing how to manipulate vertex coordinates and element indexes of OpenGL VBOs to create a derivation of the Sierpinski Gasket, which is a Sierpinski Tetrahedron.

This video shows CMSoft's OpenCL "Christmas tree".

Download the sample code here.

For some reason it runs only on my ATI/Win7 rig



but fails on my Vista/NVIDIA rig, i don't have a "cloo" why  ::)

Code: [Select]
Informationen ├╝ber das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
Cloo.InvalidValueComputeException: OpenCL error code detected: InvalidValue.
   bei Cloo.ComputeException.ThrowOnError(ComputeErrorCode errorCode)
   bei Cloo.ComputeCommandQueue.Read[T](ComputeBuffer`1 buffer, Boolean blocking, Int64 offset, Int64 count, IntPtr data, ICollection`1 events)
   bei Cloo.ComputeCommandQueue.Read[T](ComputeBuffer`1 buffer, Int64 offset, Int64 count, ICollection`1 events)
   bei Cloo.ComputeCommandQueue.Read[T](ComputeBuffer`1 buffer, ICollection`1 events)
   bei CLGLInterop.Form1.timer1_Tick(Object sender, EventArgs e) in C:\Users\Douglas\Documents\Visual Studio 2008\Projects\CLGLSierpinskiGasket\CLGLInterop\Form1.cs:Zeile 428.
   bei System.Windows.Forms.Timer.OnTick(EventArgs e)
   bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4206 (VistaSP2GDR.050727-4200).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
CLGLInterop
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///F:/Programme/OpenCl/CLGLSierpinskiGasket/CLGLInterop/bin/Debug/CLGLInterop.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4016 (NetFxQFE.050727-4000).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4205 (VistaSP2GDR.050727-4200).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4016 (NetFxQFE.050727-4000).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
OpenTK
    Assembly-Version: 1.0.0.201.
    Win32-Version: 1.0.0.201.
    CodeBase: file:///F:/Programme/OpenCl/CLGLSierpinskiGasket/CLGLInterop/bin/Debug/OpenTK.DLL.
----------------------------------------
OpenTK.GLControl
    Assembly-Version: 1.0.0.201.
    Win32-Version: 1.0.0.201.
    CodeBase: file:///F:/Programme/OpenCl/CLGLSierpinskiGasket/CLGLInterop/bin/Debug/OpenTK.GLControl.DLL.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4206 (VistaSP2GDR.050727-4200).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
Cloo
    Assembly-Version: 0.7.4.0.
    Win32-Version: 0.7.4.
    CodeBase: file:///F:/Programme/OpenCl/CLGLSierpinskiGasket/CLGLInterop/bin/Debug/Cloo.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4016 (NetFxQFE.050727-4000).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
« Last Edit: December 13, 2010, 07:33:40 PM by Stefan »