Changeset 251


Ignore:
Timestamp:
Mar 1, 2006, 8:08:27 PM (19 years ago)
Author:
qiaow
Message:

Added config.h. It contains global configuration variables.

One configuration variable is added: "NV40"

-- Use 6 series hardware (NV40). Comment its define will enable compatibility to 5xxx series cards (NV30). NV30

only supports 8-bit per component textures with linear filtering. Whereas NV40 supports 16bit per
component texture with linear filtering, thus can store negative values.

Location:
trunk/gui/vizservers/nanovis
Files:
1 added
4 edited

Legend:

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

    r226 r251  
    1 OBJ_NANOVIS = nanovis.o Socket.o RenderVertexArray.o GLSLShader.o Plane.o ConvexPolygon.o Vector4.o Vector3.o Mat4x4.o \
     1OBJ_NANOVIS = nanovis.o Socket.o RenderVertexArray.o Plane.o ConvexPolygon.o Vector4.o Vector3.o Mat4x4.o \
    22                Texture1D.o Texture3D.o
    33
     
    2222RenderVertexArray.o: RenderVertexArray.h RenderVertexArray.cpp
    2323        gcc $(CFLAG) RenderVertexArray.cpp
    24 
    25 GLSLShader.o: $(SORTSRC)/GLSLShader.cpp
    26         gcc $(CFLAG) $(SORTSRC)/GLSLShader.cpp
    2724
    2825#qdclient: $(OBJ_CLIENT)
  • trunk/gui/vizservers/nanovis/Texture3D.h

    r226 r251  
    1717
    1818#include <GL/glew.h>
     19#include "config.h"
    1920
    2021class Texture3D{
  • trunk/gui/vizservers/nanovis/nanovis.cpp

    r226 r251  
    1616
    1717#include "socket/Socket.h"
    18 #include "sort/GLSLShader.h"
    1918#include "RenderVertexArray.h"
    2019#include "ConvexPolygon.h"
     
    134133//GPU sorting related stuff
    135134//GLSL shaders
    136 GLSLShader oddevenMergeSort;
     135//GLSLShader oddevenMergeSort;
    137136//sorting related vars
    138137// field size to sort
     
    558557
    559558
     559#if 0
    560560void init_sort(){
    561561
     
    563563  assert(ret);
    564564}
     565#endif
    565566
    566567
     
    619620   init_cg();           //init cg shaders
    620621   init_vbo();          //init vertex buffer object
    621    init_sort();         //init oddeven sort
     622   //init_sort();               //init oddeven sort
    622623
    623624   get_slice_vectors();
     
    11971198
    11981199
     1200#if 0
     1201
    11991202//oddeven sort on GPU
    12001203void sortstep()
     
    12631266}
    12641267
     1268#endif
    12651269
    12661270void get_near_far_z(Mat4x4 mv, double &zNear, double &zFar)
  • trunk/gui/vizservers/nanovis/nanovis.h

    r226 r251  
    2525#include <float.h>
    2626
     27#include "config.h"
     28
    2729
    2830//defines for the image based flow visualization
     
    3436#define MAX_N_VOLUMES 10 //maximum of volumes the application can handle
    3537
    36 #define NV40            //the Nvidia 6 series card
    3738
    3839
Note: See TracChangeset for help on using the changeset viewer.