Giter Site home page Giter Site logo

soyaceo / u3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ningfei/u3d

0.0 0.0 0.0 14.08 MB

Universal 3D Sample Software

License: Apache License 2.0

CMake 0.48% Shell 2.01% HTML 0.53% C++ 50.04% C 20.03% Objective-C 0.03% Groff 16.08% Makefile 10.78% M4 0.02%

u3d's Introduction

This is a fork of ningfei/u3d which is a fork of the v1.4.5 U3D library. It has been updated to support x86 and x64 Windows (VS2008, VS2010, VS2015), Linux and OS X.

See here for an conda package: https://github.com/conda-forge/u3d-feedstock

Build scripts

Below are the build scripts used to compile and install the U3D library.

Set U3D_SHARED=OFF to use the packaged libpng, jpeg and zlib libraries, or on to use system installed.

Windows

Confirmed to work for x86 and x64; VS2008, VS2010 and VS2015. Set %LIBRARY_PREFIX% to the target installation directory.

set BUILD_CONFIG=Release

mkdir build
cd build

cmake .. -G "NMake Makefiles" ^
    -Wno-dev ^
    -DCMAKE_BUILD_TYPE=%BUILD_CONFIG% ^
    -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
    -DU3D_SHARED:BOOL=ON
if errorlevel 1 exit 1

nmake install
if errorlevel 1 exit 1

Unix

Confirmed to work for x86 and x64 Linux and x64 OS X. Set $PREFIX to the target installation directory.

#!/usr/bin/env bash
BUILD_CONFIG=Release

mkdir build
cd build

cmake .. -G "Unix Makefiles" \
    -DCMAKE_BUILD_TYPE=$BUILD_CONFIG \
    -DCMAKE_INSTALL_PREFIX=$PREFIX \
    -DU3D_SHARED:BOOL=ON

make install

Original Readme

U3D is a format for 3D models that can be embedded into PDF and viewed in Adobe Acrobat/Reader (but not other PDF viewers). There is a C++ library to produce U3D files and a converter from IDTF, a verbose text format.

You need libpng (http://www.libpng.org/), jpeg library (http://www.ijg.org/) and zlib (http://www.zlib.net/) installed to compile U3D lib using autotools.

The cmake build uses bundled versions of the above tools.

This is just a port of Intel U3D library to the GNU Build System and cmake, with rendering part thrown out.

There is not much to read in this readme since I guess there is not too many potential readers.

You may contact me, Michail Vidiassov, by Internet e-mail [email protected]. That will make me describe my changes in more detail or apply some minor fixes you desire. But the proper place to discuss things is the U3D software forum at sourceforge. You can also find the Intel source there, only the main part is preserved in this distribution.

I have made the following changes - all quality factors are set to maximum quality by default, thus supressing compression. To IDTF I have added one more parameter - TEXTURE_LAYER_REPEAT: "UV", "U", "V" or "NONE", with "UV" being default. The name says what it does.

I have also dissected IDTFConverter and made a library from the converter part (discarding IDTF file parser), it can be used to eliminate intermediate IDTF files that may be really lengthy and slow to create and than parse with IDTFConverter.

"History of the U3D File Format" at http://www.okino.com/conv/imp_u3d.htm is a good read on what U3D is and where it comes from.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.