Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: 2D Texture Mapping

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    10

    2D Texture Mapping

    I want to do the 2D texture based volume rendering of some bridge data using opengl. But I am not familiar with the volume rendering process using 2d texture mapping. Is there any example code?

    Thanks.

  2. #2
    Senior Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    305

    Re: 2D Texture Mapping

    What type of volume rendering are you planning on doing with 2D textures?

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    10

    Re: 2D Texture Mapping

    Thank you for your reply. I just want to do the 3D visualization of my data. And I think 2D texture mapping is an easy way to do that. But I am not familiar with the process.

  4. #4
    Senior Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    305

    Re: 2D Texture Mapping

    I'm kind of having a hard time understanding what you're trying to do. Volume rendering is not the same thing as 3D visualization. Most of the time in OpenGL one is only concerned with surfaces. For example with a person, I don't need to worry about his/her internal organs--just the outer shell. Volume rendering, on the other hand, takes the internals into account and is a fundamentally different process that requires 3D data. You can volume render a bridge, but it means you have data inside the bridge to render. Is that true or do you just have the structure?

  5. #5
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    10

    Re: 2D Texture Mapping

    Sorry for the ambiguous words. Actually I am not going to visualize the bridge. I want to visualize the bridge examination data. I used the ultrasonics to test the bridge and got some three dimension data. I want to see the internal flaws such as crack and concrete corrosion and need to volume render such data. Right now I don't know how to do the volume rendering. General Opengl reference books do not have much description of this part. I feel grateful of your help, if you can provide some examples for me to understand the process.

    Thanks again for your kind reply.

  6. #6
    Senior Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    305

    Re: 2D Texture Mapping

    First question, what format is your data in? Is it a rectilinear grid? Tetrahedrals?

    Also, do you just need to visualize it in any program like VTK or do you need to write your own code?

  7. #7
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    10

    Re: 2D Texture Mapping

    Hey Strattonbrazil,

    Thank you very much for your patient reply. The data format is as following:
    X Y Z A
    0.3 0.3 0 0
    0.3 0.3 0.005 0
    0.3 0.3 0.01 0
    0.3 0.3 0.015 0
    0.3 0.3 0.02 0.05
    0.3 0.3 0.025 0.07
    0.3 0.3 0.03 0.28
    0.3 0.3 0.035 0.84
    0.3 0.3 0.04 0.39
    0.3 0.3 0.045 0.82

    0.9 0.3 0.675 0.14
    0.9 0.3 0.680 0.14
    0.9 0.3 0.685 0.15
    0.9 0.3 0.690 0.14


    Range of X is 0.3~16.5, with interval 0.6
    Range of Y is 0.3~3.3, with interval 0.6
    Range of Z is 0~1, with interval 0.005
    A is the amplitude value, I want to use it to control the color value.

    I need to write my own code. I have tried Matlab before for comparison. But it is only the scatter plot. I need the continuous performance.

    Right now I have another question. In order to have a continuous performance, do I need to do the interpolation first and apply the interpolation result to opengl? Or opengl already have interpolation commands and can do the internal interpolation for me?

    Thanks again for your kind reply all the time.

  8. #8
    Senior Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    305

    Re: 2D Texture Mapping

    Do you also have the 3D mesh of the bridge? If you need more than a scatterplot, you might want to consider using VTK. It most certainly can do what you need.

  9. #9
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    10

    Re: 2D Texture Mapping

    Thanks for the reply. I do not have 3D mesh of the bridge. I only have the sample data from the instrument. If I need more than the scatterplot, do I need to do the interpolation before applied to the Opengl?

    I am requested to finish in Opengl. Do you have some suggestions?

    Thanks again.

  10. #10
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: 2D Texture Mapping

    Just draw a bunch of points.
    How many points do you have ?

Page 1 of 2 12 LastLast

Similar Threads

  1. Texture mapping ::: 3D Face Mapping
    By 3render3 in forum OpenGL: General
    Replies: 2
    Last Post: 03-24-2013, 06:49 PM
  2. projective texture mapping and shadow mapping
    By phoenix_gl in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-08-2012, 08:00 PM
  3. Replies: 0
    Last Post: 01-09-2005, 05:53 PM
  4. Replies: 1
    Last Post: 01-09-2005, 05:50 PM
  5. Texture Mapping / Environmental Mapping.
    By imported_Andrew in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-09-2000, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean