- Timestamp:
- Jun 2, 2006, 2:05:50 AM (18 years ago)
- Location:
- trunk/gui/vizservers/nanovis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/vizservers/nanovis/Makefile
r434 r453 15 15 NANOSCALESRC = ./nanoscale 16 16 17 LIB_NANOVIS = -ltcl8. 3-L/opt/render/lib -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lstdc++17 LIB_NANOVIS = -ltcl8.4 -L/opt/render/lib -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lstdc++ 18 18 LIB_CLIENT = -L/opt/render/lib -lGL -lglut -pthread -lstdc++ 19 INCLUDES = -I../ ../src2/core -I/opt/render/include -I/autohome/u76/qiaow/Cg/usr/include19 INCLUDES = -I../core -I/opt/render/include -I/autohome/u76/qiaow/Cg/usr/include 20 20 CFLAG = -g -c $(INCLUDES) 21 21 … … 26 26 27 27 nanovis: $(OBJ_NANOVIS) 28 gcc -g -o nanovis $(OBJ_NANOVIS) $(LIB_NANOVIS) ../ ../src2/core/*.o28 gcc -g -o nanovis $(OBJ_NANOVIS) $(LIB_NANOVIS) ../core/*.o 29 29 30 30 ColorGradient.o: Color.o $(TFSRC)/ColorGradient.cpp -
trunk/gui/vizservers/nanovis/nanovis.cpp
r451 r453 2088 2088 vol_render = new VolumeRenderer(g_context); 2089 2089 2090 2090 2091 /* 2091 2092 //I added this to debug : Wei 2092 2093 float tmp_data[4*124]; 2094 memset(tmp_data, 0, 4*4*124); 2093 2095 TransferFunction* tmp_tf = new TransferFunction(124, tmp_data); 2094 2096 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); 2097 2103 */ 2104 2098 2105 2099 2106 //create an 2D plane renderer … … 2639 2646 glPushMatrix(); 2640 2647 glTranslatef(0.4, 0., 0.); 2648 glRotatef(90, 1, 0, 0); 2649 glRotatef(180, 0, 1, 0); 2641 2650 glScalef(0.0005, 0.0005, 0.0005); 2642 2651 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'x'); … … 2645 2654 glPushMatrix(); 2646 2655 glTranslatef(0., 0.4, 0.); 2656 glRotatef(90, 1, 0, 0); 2657 glRotatef(180, 0, 1, 0); 2647 2658 glScalef(0.0005, 0.0005, 0.0005); 2648 2659 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'y'); … … 2651 2662 glPushMatrix(); 2652 2663 glTranslatef(0., 0., 0.4); 2664 glRotatef(90, 1, 0, 0); 2665 glRotatef(180, 0, 1, 0); 2653 2666 glScalef(0.0005, 0.0005, 0.0005); 2654 2667 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'z'); -
trunk/gui/vizservers/nanovis/nanovis.h
r445 r453 89 89 90 90 //variables for mouse events 91 float live_rot_x = 0.; //object rotation angles92 float live_rot_y = 0.;93 float live_rot_z = 0.;91 float live_rot_x = 90.; //object rotation angles 92 float live_rot_y = 180.; 93 float live_rot_z = -135; 94 94 95 95 float live_obj_x = -0.0; //object translation location from the origin
Note: See TracChangeset
for help on using the changeset viewer.