Re: [osg-users] retrieve texture id

2011-10-07 Thread Conan Doyle
The CUDA Examples built fine. I built OSG with 4.4.0 The core of osgCompute built but the examples didn't. I'll collect the error messages and post them later this AM CD J.P. Delport wrote: Hi, pls send the error message s you are getting. Also pls send output of gcc -v and g++ -v. Did

Re: [osg-users] retrieve texture id

2011-10-07 Thread J.P. Delport
Hi, On 07/10/2011 15:17, Conan Doyle wrote: The CUDA Examples built fine. I built OSG with 4.4.0 The core of osgCompute built but the examples didn't. make sure you checked out the data part of osgCompute as well. cheers jp I'll collect the error messages and post them later this AM CD

Re: [osg-users] retrieve texture id

2011-10-07 Thread Conan Doyle
I do have that checked out... is it required for the build? Also, I had some issues building this on Windows (Win7 64 bit, Visual Studio 2008). Is that supported? CD J.P. Delport wrote: Hi, On 07/10/2011 15:17, Conan Doyle wrote: The CUDA Examples built fine. I built OSG with 4.4.0

Re: [osg-users] retrieve texture id

2011-10-07 Thread J.P. Delport
Hi, On 07/10/2011 15:29, Conan Doyle wrote: I do have that checked out... is it required for the build? I remember at some stage some examples needed things in the data checkout. Not sure for latest trunk version though. Also, I had some issues building this on Windows (Win7 64 bit, Visual

Re: [osg-users] retrieve texture id

2011-10-07 Thread Conan Doyle
Not sure what I did to correct the problem but all builds now. I verified that my symlinks to the correct gcc version were correct, and I added a compiler-bindir line in nvcc.profile to point to the dir with my symlinks, then rebuilt CUDA 4 examples to verify, then tried again and osgCompute

Re: [osg-users] retrieve texture id

2011-10-06 Thread J.P. Delport
Hi, I've just recently compiled osgCuda with CUDA 4.0 on 64-bit with gcc/g++ 4.4 (which is a requirement for nvcc). I had to make only minor changes and most of these are already checked into the trunk of osgCuda. See thread here:

Re: [osg-users] retrieve texture id

2011-10-06 Thread Conan Doyle
Things are moving along nicely, until I tried to build osgCompute with CUDA 4.0 and gcc44. It appears that some thing is getting pulled from gcc 4.1.2 tree in the build process. I set an alias for gcc/g++ to point to gcc44 and g++44, as well as exported CC/CXX to point to these versions...

Re: [osg-users] retrieve texture id

2011-10-06 Thread J.P. Delport
Hi, pls send the error messages you are getting. Also pls send output of gcc -v and g++ -v. Did you build the CUDA examples that came with 4.0? What did you build OSG with? jp On 06/10/2011 23:16, Conan Doyle wrote: Things are moving along nicely, until I tried to build osgCompute with

Re: [osg-users] retrieve texture id

2011-10-05 Thread Conan Doyle
osgCuda was my first choice, but I will not compile on my machine. I am using OSG 3.0.1 and the SVN version of osgCuda, on RHEL 5.4. Is that a workable combination? CD J.P. Delport wrote: Hi, an alternative to doing this manually would be to look at osgCompute/osgCuda. Even if you

Re: [osg-users] retrieve texture id

2011-10-05 Thread Conan Doyle
Perhaps the problem is that I am doing this before viewer.run()... I'll move the code and see if that fixes my problem. CD Skylark wrote: Hello Conan, I create my gc manually then create viewer/window etc... so my code looks like this: unsigned int contextID =

Re: [osg-users] retrieve texture id

2011-10-05 Thread J.P. Delport
Hi, I think it should work, 32/64 bit? What compiler do you have? If you supply some error messages maybe someone can help. cheers jp On 05/10/2011 14:58, Conan Doyle wrote: osgCuda was my first choice, but I will not compile on my machine. I am using OSG 3.0.1 and the SVN version of

Re: [osg-users] retrieve texture id

2011-10-05 Thread Conan Doyle
64 bit. I modified this post after your reply to say that I am using Cuda 4.0, which is a requirement. I have a feeling there may need to be some mods made to osgCuda to support 4.0. CD J.P. Delport wrote: Hi, I think it should work, 32/64 bit? What compiler do you have? If you supply

[osg-users] retrieve texture id

2011-10-04 Thread Conan Doyle
Hi, [dumbquestion] I am integrating some cuda into my osg app and one call requires the texture name/id. How do I get that from my texture object? I look through the source code and only found and id method in TextureObject, but my attempts to retrieive this bit of data eludes me.

Re: [osg-users] retrieve texture id

2011-10-04 Thread Jean-Sébastien Guay
Hi Conan, (I have the impression your name is a pseudonym, I wonder why... ;-) [dumbquestion] I am integrating some cuda into my osg app and one call requires the texture name/id. How do I get that from my texture object? I look through the source code and only found and id method in

Re: [osg-users] retrieve texture id

2011-10-04 Thread Conan Doyle
This is actually what I tried. The issue texture-getTextureObject(contextID) returns 0, which I assume means a null pointer? I create my gc manually then create viewer/window etc... so my code looks like this: unsigned int contextID = gc.get()-getState()-getContextID() unsigned int textureID

Re: [osg-users] retrieve texture id

2011-10-04 Thread Jean-Sébastien Guay
Hello Conan, I create my gc manually then create viewer/window etc... so my code looks like this: unsigned int contextID = gc.get()-getState()-getContextID() unsigned int textureID = texture[0]-getTextureObject(contextID)-id(); Upon executing the textureID = I get a seg fault, and upon

Re: [osg-users] retrieve texture id

2011-10-04 Thread J.P. Delport
Hi, an alternative to doing this manually would be to look at osgCompute/osgCuda. Even if you don't use osgCuda you can learn from there how to do what you want. cheers jp On 05/10/2011 01:28, Conan Doyle wrote: Hi, [dumbquestion] I am integrating some cuda into my osg app and one call