Results 1 to 5 of 5

Thread: 3D Texture Mapping questions.

  1. #1
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    10

    3D Texture Mapping questions.

    I've built a 3D texture out of some 2D data that I have.

    I was under the impression that I could use this 128x128x128 texture like a stick of butter and cut through it with a virtual camera, and view it's insides.

    However I've been mapping it to a quad, which just displays the 3D texture as a 2D on a hovering screen.

    Is there a way to render the entire 3D texture so I can pass through it with a camera?

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

    Re: 3D Texture Mapping questions.

    You can pass trough it.

    I am not sure if you want to only see the "cut plane" in front of the camera, at a fixed distance, moving trought the volume, or if you want to do true volume rendering.

    For volume rendering you have to draw a bunch of blended quads, as if it were slices in the butter.
    Simple methods fixes the quads along the axis which is the most parallel to the camera z axis. Better methods rotate the quads continuously so they are always aligned to the camera z.

    You can search "opengl volume rendering", you will find a lot of info on the web. Try also "hardware accelerated volume rendering".

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

    Re: 3D Texture Mapping questions.


  4. #4
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    10

    Re: 3D Texture Mapping questions.

    My goal is to simulate a fly through feel.

    The "cut plane" that you mentioned is the plane that I have my 3D texture mapped to right?

    For right now im straying away from making and mapping a bunch of QUADS.(thats what the volume rendering essentially is right?)

    Right now im trying to keep the cutplane in a fixed position(not size) and alter the data that is displayed on that plane with some keyboard keys.

    I feel like it's over complicating things, and wont provide a true fly through feeling.

    Is that kinda of true?

  5. #5
    Senior Member Regular Contributor
    Join Date
    Feb 2006
    Location
    greece
    Posts
    181

    Re: 3D Texture Mapping questions.

    There's an article by Mark Harris on cloud rendering that uses 3D textures... I don't know if this is like what you're after but, anyway, the article is here.
    while(1){keyboardsolo(FORTE, BPM_190);}

Similar Threads

  1. Some Bump Mapping Questions (cube-mapping)
    By Whooster in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-14-2012, 11:55 PM
  2. My Questions about texture mapping
    By houdy in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 11-02-2004, 05:42 PM
  3. Texture mapping questions
    By autumn in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 08-06-2003, 04:10 AM
  4. Two bump-mapping questions
    By yoale in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 05-06-2003, 10:46 AM
  5. Some newbie texture mapping questions
    By surgptr in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-14-2003, 09:53 AM

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