How to put a color bar beside my Scene graph - Graphics

This is a discussion on How to put a color bar beside my Scene graph - Graphics ; I draw a complicate scene graph. In this scene graph, I used different colors to show different things. How can I show a legend using a color bar with text beside the scene graph. You know my scene graph is ...

+ Reply to Thread
Results 1 to 4 of 4

How to put a color bar beside my Scene graph

  1. Default How to put a color bar beside my Scene graph

    I draw a complicate scene graph. In this scene graph, I used different
    colors to show different things. How can I show a legend using a color
    bar with text beside the scene graph. You know my scene graph is a 3D
    scene. A user is allowed to zoom and turen around the scene to view it
    in different perspect, but I don't want the color bar to be changed when
    the scene is zoomed in/out, or turned around.

    I am appreciate of your great help.

    Thanks in advance.

    Zhang


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

  2. Default Re: How to put a color bar beside my Scene graph

    "Sirinus Zhang" <sirinus@excite.com> writes:

    > I draw a complicate scene graph. In this scene graph, I used different
    > colors to show different things. How can I show a legend using a color
    > bar with text beside the scene graph. You know my scene graph is a 3D
    > scene. A user is allowed to zoom and turen around the scene to view it
    > in different perspect, but I don't want the color bar to be changed when
    > the scene is zoomed in/out, or turned around.


    You should probably set up a new camera and viewport for the legend
    scene graph.

    Coin's SmallChange CVS repository has some example extension nodes,
    including a LegendKit node kit that you can use directly or as
    example code to implement your own node.

    You can check out SmallChange from the same CVSROOT as Coin.

    Peder


  3. Default Re: How to put a color bar beside my Scene graph

    "Sirinus Zhang" <sirinus@excite.com> wrote in message news:<bb8b969f791d8ce2bd42fe22dc2b13e0.122597@mygate.mailgate.org>...
    > I draw a complicate scene graph. In this scene graph, I used different
    > colors to show different things. How can I show a legend using a color
    > bar with text beside the scene graph. You know my scene graph is a 3D
    > scene. A user is allowed to zoom and turen around the scene to view it
    > in different perspect, but I don't want the color bar to be changed when
    > the scene is zoomed in/out, or turned around.


    Just add two cameras in the scene graph, normally one
    perspective camera and one orthographic camera. Put
    your 3D data after the perspective camera. Put your
    legend after the second (orthographic) camera. The
    viewer will attach to the first camera it finds, which
    should be the perspective camera. So moving the mouse
    will only modify the perspective camera.

    -Mike
    TGS Inc, http://www.tgs.com

  4. Default Thanks

    Thanks a lot


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

+ Reply to Thread

Similar Threads

  1. Scene Graph ???
    By Application Development in forum Graphics
    Replies: 11
    Last Post: 11-18-2007, 12:37 PM
  2. Scene Graph ???
    By Application Development in forum Graphics
    Replies: 0
    Last Post: 11-14-2007, 10:02 PM
  3. Scene graph efficiency
    By Application Development in forum Java-Games
    Replies: 2
    Last Post: 03-02-2004, 05:17 PM
  4. How Expensive is X3D Scene Graph?
    By Application Development in forum vrml
    Replies: 4
    Last Post: 11-06-2003, 07:09 AM