Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] Adding -I/path/to/teem to scene build


Chronological Thread 
  • From: Christiaan Paul Gribble <cgribble@sci.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [MANTA] Adding -I/path/to/teem to scene build
  • Date: Mon, 15 May 2006 16:00:21 -0600

P.S. For those of you that don't know, there are several NRRD datasets in /usr/csafe/raid1/cgribble/particle/data, ranging from very small to very large.

On May 15, 2006, at 3:54 PM, Christiaan Paul Gribble wrote:

I found a way to do it (which may or may not be strictly correct), but it certainly works for now. James: if I've messed up the CMake structure you like, feel free to make it better.

To use the NRRD particle reader, you must turn on:

MODEL_PARTICLENRRD
SCENE_PARTICLEREADER

via CMake.  You can then use a command line like the following:

bin/manta -np 2 -scene lib/libscene_pnrrd.dylib\("-i /usr/csafe/ raid1/cgribble/particle/data/pmodels/solid_cube.nrrd -radius 0.02 - bv bvh"\)

to render the particles after you rebuild. It's all very basic for the moment, but it works.

C

On May 15, 2006, at 3:06 PM, Christiaan Paul Gribble wrote:

Actually, I need to do this in Model/Readers, but only if the CMake variable that indicates use of this option is turned on. Specifically, I need to add to files to the source string indicating which files to compile, I need to add /path/to/teem to the include directories, and I need to be able to link against the teem library.

I anticipate that the current Models/Readers CMakeLists.txt should be modifed to look something like this:

SET (Manta_Readers_SRCS
     Readers/glm/glm.h
     Readers/glm/glm.cc
     Readers/rply/rply.c
     Readers/BART/kbsplpos.c
     Readers/BART/kbsplrot.c
     Readers/BART/parse.cc
     Readers/BART/quat.c
     Readers/IW.cc
     Readers/PlyReader.cc
     Readers/V3C1.h
     Readers/V3C1.cc
)

# Apple places malloc.h in /usr/include/malloc/malloc.h
IF (APPLE)
   INCLUDE_DIRECTORIES(/usr/include/malloc/)
ENDIF (APPLE)

# Reader for NRRD particle data
SET(MODEL_PARTICLENRRD 0 CACHE BOOL "NRRD Particle Data Reader")
IF(MODEL_PARTICLENRRD)
# add the following to Manta_Readers_SRCS:
#     Readers/ParticleNRRD.h
#     Readers/ParticleNRRD.cc
# add teem include directory
# add teem library
ENDIF(MODEL_PARTICLENRRD)

I'm just not savvy enough with Manta's CMake structure to make this happen. Tips or pointers appreciated.

C

On May 15, 2006, at 2:02 PM, Christiaan Paul Gribble wrote:

Hi,

I've got a scene file that uses NRRD to read some input data. I've added the scene to CMakeLists.txt in the scene/ directory, but it won't build because "-I/path/to/teem" doesn't show up in the build command. How do I add this to the CMakeLists.txt so that it will show up?

Thanks,

C








Archive powered by MHonArc 2.6.16.

Top of page