Changeset 453 for trunk


Ignore:
Timestamp:
Jun 2, 2006, 2:05:50 AM (18 years ago)
Author:
qiaow
Message:

Fixed initial camera view so Z points upward.

Location:
trunk/gui/vizservers/nanovis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/nanovis/Makefile

    r434 r453  
    1515NANOSCALESRC = ./nanoscale
    1616
    17 LIB_NANOVIS = -ltcl8.3 -L/opt/render/lib -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lstdc++
     17LIB_NANOVIS = -ltcl8.4 -L/opt/render/lib -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lstdc++
    1818LIB_CLIENT = -L/opt/render/lib -lGL -lglut -pthread -lstdc++
    19 INCLUDES = -I../../src2/core -I/opt/render/include -I/autohome/u76/qiaow/Cg/usr/include
     19INCLUDES = -I../core -I/opt/render/include -I/autohome/u76/qiaow/Cg/usr/include
    2020CFLAG = -g -c $(INCLUDES)
    2121
     
    2626
    2727nanovis: $(OBJ_NANOVIS)
    28         gcc -g -o nanovis $(OBJ_NANOVIS) $(LIB_NANOVIS) ../../src2/core/*.o
     28        gcc -g -o nanovis $(OBJ_NANOVIS) $(LIB_NANOVIS) ../core/*.o
    2929
    3030ColorGradient.o: Color.o $(TFSRC)/ColorGradient.cpp
  • trunk/gui/vizservers/nanovis/nanovis.cpp

    r451 r453  
    20882088   vol_render = new VolumeRenderer(g_context);
    20892089
     2090   
    20902091   /*
    20912092   //I added this to debug : Wei
    20922093   float tmp_data[4*124];
     2094   memset(tmp_data, 0, 4*4*124);
    20932095   TransferFunction* tmp_tf = new TransferFunction(124, tmp_data);
    20942096   vol_render->add_volume(volume[0], tmp_tf);
    2095    volume[1]->move(Vector3(0.5, 0.6, 0.7));
    2096    vol_render->add_volume(volume[1], tmp_tf);
     2097   volume[0]->get_cutplane(0)->enabled = false;
     2098   volume[0]->get_cutplane(1)->enabled = false;
     2099   volume[0]->get_cutplane(2)->enabled = false;
     2100
     2101   //volume[1]->move(Vector3(0.5, 0.6, 0.7));
     2102   //vol_render->add_volume(volume[1], tmp_tf);
    20972103   */
     2104
    20982105
    20992106   //create an 2D plane renderer
     
    26392646        glPushMatrix();
    26402647        glTranslatef(0.4, 0., 0.);
     2648        glRotatef(90, 1, 0, 0);
     2649        glRotatef(180, 0, 1, 0);
    26412650        glScalef(0.0005, 0.0005, 0.0005);
    26422651        glutStrokeCharacter(GLUT_STROKE_ROMAN, 'x');
     
    26452654        glPushMatrix();
    26462655        glTranslatef(0., 0.4, 0.);
     2656        glRotatef(90, 1, 0, 0);
     2657        glRotatef(180, 0, 1, 0);
    26472658        glScalef(0.0005, 0.0005, 0.0005);
    26482659        glutStrokeCharacter(GLUT_STROKE_ROMAN, 'y');
     
    26512662        glPushMatrix();
    26522663        glTranslatef(0., 0., 0.4);
     2664        glRotatef(90, 1, 0, 0);
     2665        glRotatef(180, 0, 1, 0);
    26532666        glScalef(0.0005, 0.0005, 0.0005);
    26542667        glutStrokeCharacter(GLUT_STROKE_ROMAN, 'z');
  • trunk/gui/vizservers/nanovis/nanovis.h

    r445 r453  
    8989
    9090//variables for mouse events
    91 float live_rot_x = 0.;          //object rotation angles
    92 float live_rot_y = 0.;
    93 float live_rot_z = 0.;
     91float live_rot_x = 90.;         //object rotation angles
     92float live_rot_y = 180.;
     93float live_rot_z = -135;
    9494
    9595float live_obj_x = -0.0;        //object translation location from the origin
Note: See TracChangeset for help on using the changeset viewer.