Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users




« 1 (2) 3 »


Re: VHTK getting started
#11
Quite a regular
Quite a regular


See User information
sorry for my poor English. "all the information" mean the raw data in each reading image, have not been filter by the filter class, e.g. IsoSurface.


Posted on: 2007/10/11 14:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#12
Guru
Guru


See User information
Let's see if I understand this correctly - you wonder if the IsoSurface filter in some way affects the source volume? In that case, the answer is no, the data is not changed. You can use the same scalar volume simultaneously for both an iso surface node and a haptic mode.

Posted on: 2007/10/11 16:03
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#13
Quite a regular
Quite a regular


See User information
I'm not familiar with the data type avaliable in H3D and VHTK. The following code is how i filter the sphere data according to my chosen Isovalue.

<Shape DEF="i_shape">
<
Appearance DEF="SURFAPP">
<
RenderProperties />
<
Material transparency=".3" />
</
Appearance>
<
IsoSurface DEF="V_ISO"
  
solid="FALSE"
    
isoValue="0.6" >
  <
ScalarVolume
              DEF
="SCALAR"
              
url="data/sphere_128x128x128_u8.raw" >
            <
ManipImageLoader
                padding
="true">
              <
RawImageLoader
                  width
="128" height="128" depth="128"
                  
bitsPerPixel="8"
                  
pixelType="LUMINANCE"
                  
pixelComponentType="UNSIGNED"
                  
pixelSize="0.1 0.1 0.1" />
            </
ManipImageLoader>
        </
ScalarVolume>
</
IsoSurface>
</
Shape>


May i know how can i pass the shape above to Texture3DVolume?

Posted on: 2007/10/11 19:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#14
Guru
Guru


See User information
You use USE to insert the instance of your volume node in the Texture3DVolume. Check the Doxygen manual for details on the different types and nodes. You should think of the lower parts of the scene graph DAG as a data flow network, similar to that of VTK.

Posted on: 2007/10/12 8:30
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#15
Quite a regular
Quite a regular


See User information
I plan to use Texture3Dvolume class with WindowFunction to filter the ScalarVolume, hence generate a sphere with specific pixel value between [0,1] and pass it to VolumeRenderer to render it. The following code is NOT working. May i know what is the correct way of doing it?

<!-- Volume Rendering   -->  
          
        <
VolumeRenderer
              planes
="200" >
            
            <
Texture3DVolume
                property
="SCALAR" >
                <
WindowFunction
          level
=".5"
          
width="0.5"
          
roof="0.5"/>
                <
ScalarVolume
              DEF
="SSCALAR"
              
url="data/sphere_128x128x128_u8.raw" >
            <
ManipImageLoader
            padding
="true">
              <
RawImageLoader
              width
="128" height="128" depth="128"
              
bitsPerPixel="8"
              
pixelType="LUMINANCE"
              
pixelComponentType="UNSIGNED"
              
pixelSize="0.1 0.1 0.1" />
            </
ManipImageLoader>
            </
ScalarVolume>
            </
Texture3DVolume>
            
         </
VolumeRenderer>

Posted on: 2007/10/12 10:49
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#16
Guru
Guru


See User information
I see no reason for it not to work, do you get any error messages? You should consider using colour and opacity transfer functions as well.

Posted on: 2007/10/14 11:19
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#17
Quite a regular
Quite a regular


See User information
May i know where is the source code for VHTK::WindowFunction? I couldn't really understand how WindowFunction work to clamp the ScalarVolume.

Posted on: 2007/10/15 11:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#18
Guru
Guru


See User information
You find the code for all the transfer functions in the TransferFunctions.hh and TransferFunctions.cpp files.

The doxygen documentation over WindowFunction should have a figure describing how the function converts an incoming value to an output.

Posted on: 2007/10/18 13:16
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#19
Not too shy to talk
Not too shy to talk


See User information
Dear Karlu,

I am trying to use "setup_sphere.x3d" to load another raw data file (by changing from "sphere_128x128x128_u8.raw" to Head_256x256x256.raw), though I don't see any changes in the rendering.
Please explain me or suggest any documentation, how I could load raw data file (e.g dental tooth model)and render it using VolumeHaptic mode.

I have studied you PhD thesis work and relevant papers . Now I am looking for tools [Volume Haptics].

regards
hari

P.S

Posted on: 2008/9/30 14:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK getting started
#20
Guru
Guru


See User information
Hi,

The only reason I can think of is that you're changing a data set that is being used for haptic rendering and not for visual rendering. Could that be it? The setup_sphere.x3d file that I have here loads only one volume and uses it for both haptic and visual rendering, but there might be different versions of that file. Check that the data loader you're changing is actually used by a volume renderer node.

Posted on: 2008/9/30 15:33
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




« 1 (2) 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS