[vtkusers] about the vtkGPUVolumeRayCastMapper
Jochen K.
jochen.kling at email.de
Mon Jun 11 15:12:44 EDT 2012
Yeah,
I got it.
Here's the output of TestGPUInfo for my graphics card:
There is 2 GPU(s).
GPU 0:
dedicated VRAM=466 MB
dedicated RAM=0 MB
shared RAM=1274 MB
GPU 1:
dedicated VRAM=466 MB
dedicated RAM=0 MB
shared RAM=1274 MB
----------------------------------------------------------
Step by step instructions:
----------------------------------------------------------
1. Install DirectX SDK June 2010
2. Install Microsoft SDK 7.1 or 7.0A
3. CMake:
3.1: after the first Configure verify the following vars are set properly:
DirectX_INCLUDE_DIR: C:/Program Files/Microsoft DirectX SDK (June
2010)/Include
DirectX_LIBRARY: C:/Program Files/Microsoft DirectX SDK (June
2010)/Lib/x86/d3d9.lib
(these two entries usually wil be found automatically)
don't forget to enable BUILD_SHARED_LIBS and BUILD_TESTING !!
3.2. Configure and Generate.
4. Open VTK.sln in Visual Studio.
5. Add the following path to your vtkRenderer.csproj:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
(Please see my P.S. at the end of this post)
Due to the fact that I'm still a CMake noobie I added this path directly in
Viusal Studio:
5.1 in the solution explorer right click on project vtkRenderer,
5.2 choose Properties
5.3 click Treenode C/C++ General and add "C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include" to the "Additional Include Directories"
6. Select release, debug or relwithdebinfo under your solution configuration
and build all.
7. Get a cup of coffee or tea ;-)
8. When everything was build successfully goto your build directory and
browse to your bin/debug, bin/release or bin/relwithdebinfo folder, open a
cmd-Window, run RenderingCxxTests.exe and select test No. 14 and watch the
output.
So far so good.
Hope that helps you to get DirectX support in VTK.
with kind regards
Jochen
P.S.: It would be very nice if someone could tell we where/how to add the
path "C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" in Cmake in
order to make vtkRenderer.vcproj finding ddraw.h.
--
View this message in context: http://vtk.1045678.n5.nabble.com/about-the-vtkGPUVolumeRayCastMapper-tp5521644p5713756.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list