📄 readme.txt
字号:
=================================================================================================================
NeHe Productions Lord Of The Rings - The Two Towers Contest Entry Form
=================================================================================================================
Project Title: t^3
Project Description: A 'Now Loading' scene featuring The One Ring engraved by 'real' Cirth inscriptions,
followed by a small scene showing a procedural forest.
Author: Vincent DAVID - vincoof@netscape.net - vincoof@wanadoo.fr
using the base code of Jeff 'NeHe' Molofee - nehe@connect.ab.ca - http://nehe.gamedev.net
multi-platform support is available through the SDL version of the base code, thanks to Fabio 'SnowDruid' Franchello - swondruid@tiscali.net
Notes:
This project is more a technical demonstration rather than a real entertaining demo.
For instance, the demo does not really load objects. In fact there is not even a Data folder (all models are procedural).
Keys :
ESC - stop the demo
F1 - toggle between fullscreen and windowed mode
I hope that some of you who can read runic characters will be able to translate the text, which still has not been done
since the last contest ;)
The code is written in C++ using Visual C++ 6.0 and linux tools such as NEDIT or GVIM.
The executable is built for Windows and Linux platforms, but could be compiled to any platform supporting OpenGL and SDL.
It is recommended to rebuild your own linux executable if you experience linking problems when the program starts.
As a technical project, each of the two scenes has a specific point.
The first scene uses bump-mapping with different code path in order to run on as many hardware as possible.
The bump-mapping effect is completely available to all GeForce cards using register combiners, and completely available
to ATi cards from the Radeon 8500 series using fragment shaders. Other old cards (like ATi Radeon 7500) will still be able
to render the effect, but without being complete. You need to use a very old graphics card or very outdated drivers in
order not to see the effect. And even in that case you will still see the scene (but without the effect obviously). That
was one of the main requirements of the project : being able to run on ALL cards, even if it means reduced quality.
The second scene shows how procedural models can be easy and fast to write. For instance, the tree model is written in less
than 20 (twenty) lines of code, including normals (necessary for lighting) and took me approximately 30 minutes to write it.
The project may include the 'minitree.c' file which is a sample project in its own that renders the second scene. This
source file does everything from creating the window to animating and rendering the scene... in less than 3000 bytes !
All the code that runs here was written in a fairly short ammount of time, so please don't blame me if I left some useless
comments or, worse, some useless classes. You will especially find a file called vbo.cpp which has been discarded because
the NVIDIA implementation of the vertex buffer object feature had serious problems with linux drivers on GeForce2 and
GeForce4 MX cards, and I didn't want people to run the program and see it crash.
The demo should run on any machine which supports OpenGL1.1 ; there's no need for disk space except for the log file.
The compiled linux version may require OpenGL1.4 or other OpenGL features. If the program does not start on your linux
box, consider compiling the project again. You just need to download the SDL at http://libsdl.org and type in 'make' in the
Source directory, once 'sdl-config' is visible in one of the search paths.
Disclaimer:
Neither me (Vincent DAVID) nor Jeff Molofee may be taken responsible for any damage of any kind
caused by the compilation and/or the execution of the t^3 project.
I've not borrowed any data from anyone. I've not even used a sentence from the book or the movie. All the
artwork is made by myself ; so you do NOT need any authorization to use or distribute the work from the
t^3 project as long as you respect NeHe Productions Terms Of Use. Visit http://nehe.gamedev.net for more
information.
=================================================================================================================
By submitting this project to NeHe Productions, I am giving NeHe Productions full permission to distribute both
the source code and executable for this project! No signature required.
=================================================================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -