Commit d832ab37 authored by Luiz Velho's avatar Luiz Velho
Browse files

first commit

parents
Loading
Loading
Loading
Loading

INSTALL

0 → 100644
+32 −0
Original line number Original line Diff line number Diff line


- Notes for Linux
------------------

- Para o cmake reconhecer o Qt5 que não esteja instalado no sistema 
e sim em um diretório do usuário, é necessário rodar o cmake desta maneira:

$ CMAKE_PREFIX_PATH=~/Applications/Qt5/5.5/gcc_64/lib/cmake/ cmake ../core


- Para executar os testes as libs do Qt5 devem estar visíveis para o sistema.
Então, basta executar o seguinte comando:
 
$ export LD_LIBRARY_PATH=~/Applications/Qt5/5.5/gcc_64/lib



- Notes for Mac OS
-------------------

- Have HomeBrew and Qt installed

- Add to your .profile:

export PATH=$PATH:/Programs/Devel/Qt/5.5/clang_64/bin/


- Install GLEW with HomeBrew:

$ brew install glew

README

0 → 100755
+121 −0
Original line number Original line Diff line number Diff line

S3D/Core Software
=================


This is the companion software package of the book
"Design and Implementation of 3D Graphics Systems" 
by Luiz Velho and Jonas Gomes and Mario Sousa.

The software contains an implementation of all the
algorithms described in the book.


CONTENTS
--------

The directory hierarchy structure is as follows:

./s3d
     /core      - Linux relatead source code
     /data      - Data files
     /test      - Test scripts
     /platforms - Deployment
     /build     - CMake build directory
      
./s3d/core
     /base    - Source of the Base library
     /proj    - Source of the Applications

./s3d/data
     /model   - Geometric Model
     /scn     - 3D Scene Files
     /pic     - Images

./s3d/tst
     /demo    - Scripts to Run the CPU demos
     /gldemo  - Scripts to Run the GPU demos

./s3d/platforms
     /qt            - QT Creator projects
     /linux/bin     - Executables
     /linux/lib     - Libraries
     /linux/include - Header files


INSTALLATION
------------

To install the Linux software run these commands in the "build" directory
    cmake ../core
    make
    make install

This should generate, compile and install the libraries and applications.


TESTING
-------

To play the CPU demos run the main shell in the demo directory
  cd test/demo
  sh run-all

This will execute all applications with test data.

To play the GPU demos run the main shell in the gldemo directory
  cd tst/gldemo
  sh run-new

To complie and run the QT demo
  cd platforms/qt/s3dgl
Open the project s3dgl.pro with QtCreator
  run s3dgl
  drag and drop the files in platforms/qt/scenes


COMPATIBILITY
-------------

This software was developed using GNU tools under the
Linux operating system. It has also been ported to MacOS X 
and it may compile in Windows using the Cygwin/MinGW environment.


REQUIREMENTS
------------

The software needs the following development tools
 cmake, sh, make, gcc, bison, flex.
It uses the imaging library libpng.
The OpenGL implementation requires GLEW, GLUT and GLSL 2.1,

The QT Applications require Qt 5.4 or higher.


REMARKS
-------

Please note that for QT Applications work properly under Linux
the following environment variables have to be set as indicated below.
 LANG=C
 LC_NUMERIC=C

In QtCreator, this can be set up using the selection:
 Project -> Run Settings -> Build Environments


UPDATES
-------

For updates and more information go to the book website:

  http://www.visgraf.impa.br/sg3d/

VERSION
-------

6.3


Copyright 1999 - 2016 - Luiz Velho

core @ 2db32481

Original line number Original line Diff line number Diff line
Subproject commit 2db32481826c5fdf593d2b0ada9798a9a707b1b8

data/model/curve.pts

0 → 100755
+4 −0
Original line number Original line Diff line number Diff line
.2 1 0
1 1 0
1 -1 0
.2 -1 0

data/model/curve2.pts

0 → 100755
+2 −0
Original line number Original line Diff line number Diff line
1 1 0
1 -1 0
Loading