nythrix's picture

[Cloo] Ray-triangle intersection test not working

Project:Cloo
Version:0.2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

As reported here running the ray-triangle intersection test fails on several configurations.


Comments

viewon01's picture

#1

Hi, after some debuging...

I have discover that the problem occur only with WPF applications... (at least) ...

I think that WPF is using DirectX shaders, but I'm not sure it is related to the "compilation" !

I join a sample appilcation that you can use to see the problem....

AttachmentSize
WpfOpenCL.zip16.08 KB
nythrix's picture

#2

Status:open» in progress (review)

After upgrading my drivers (which were apparently buggy), this is the solution to the intersection test.
Kernel signature is:

kernel void intersect(
    global float4* dir,
    ...

It should be:

kernel void intersect(
    float4 dir,    // <- change here
    ...

Unfortunately, I have no WPF machine ATM. Can you post the error that occurs?
Does the modified example work from the console?

viewon01's picture

#3

Yes,

This version work fine.

WPF machine ? You just need to install the .NET 3.5 (or 3.0) framework.

Take a look at the following post : http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=123091&en...

I have send the problem to AMD... maybe the problem reside on their side... can you check it please ?

Thanks

nythrix's picture

#4

I've never felt like using WPF, I even thought it was restricted to Vista or 7, funny that.

Your code runs fine here. Can you post some environment information? OS type, 32 or 64 bit, etc.,

You might also give it a try with the latest revision from: git://opentk.git.sourceforge.net/gitroot/opentk/cloo/

viewon01's picture

#5

Hi,

No, WPF work on XP, Vista... it is a wonderful technology ;-)

I have a machine running Windows XP , here are some informations :

------------------| Start OpenCL platform info |------------------

For test only: Expires on Sun Feb 28 00:00:00 2010
name: ATI Stream
version: OpenCL 1.0 ATI-Stream-v2.0-beta4
profile: FULL_PROFILE
vendor: Advanced Micro Devices, Inc.

extensions:
+

devices:
name: Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz
driver: 1.0
vendor: GenuineIntel
extensions:

+ cl_khr_global_int32_base_atomics
+ cl_khr_global_int32_extended_atomics
+ cl_khr_local_int32_base_atomics
+ cl_khr_local_int32_extended_atomics
+ cl_khr_byte_addressable_store

-------------------| End OpenCL platform info |-------------------

viewon01's picture

#6

Hi,

I've try this :

git.exe fetch -v "git://opentk.git.sourceforge.net/gitroot/opentk/cloo/"

But it failed ! "fatal : unable to connect a socket"... can you send me a ZIP to viewon01 ... at ... viewon.tv please ?

Thx

viewon01's picture

#7

Hi,

I have browse to your SF repository, the SVN and the GIT are empty !!!! :-(

nythrix's picture

#8

I have browse to your SF repository, the SVN and the GIT are empty !!!! :-(

Yes, I know. The code is in the OpenTK repository :). Note the URI I posted earlier. I've been having problems with my own repository.
Here goes the zip...

Edit: Try building another program in that WPF application. Like the one from the "vectorAdd" example... And post the results.

AttachmentSize
cloo-snapshot.zip30.64 KB
nythrix's picture

#9

Status:in progress (review)» closed

This should be fixed in 0.3.1+. If not please reopen.