Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TRACER.DAT
Package: RayTracing Code.rar [view]
Upload User: lhwx1029
Upload Date: 2013-03-07
Package Size: 1173k
Code Size: 1k
Category:
3D Graphic
Development Platform:
Visual C++
- type vertex [3]float
- type colour [3]float
- type matter { colour colour float float float }
- type light { vertex colour }
- type sphere { int matter vertex float }
- type polygon { int matter vertex ptr int ptr }
- type world { colour int ptr int ptr }
- var light l1 {[-500 -50 -400] [.4 .4 .4]}
- var light l2 {[300 -50 -400] [.5 .5 .5]}
- var [2]ptr lights [l1 l2]
- var sphere s1 { 1 {[1 .5 0] [1 .5 0] .9 30 .4} [ -100 -70 500] 200 }
- var sphere s2 { 1 {[1 0 0] [1 0 0] .9 30 .4} [ 90 55 120] 75 }
- var sphere s3 { 1 {[0 1 1] [0 1 1] .6 30 .3} [ -90 55 120] 75 }
- var [15]float vrt [-300 130 1000
- 300 130 1000
- 300 130 0
- -300 130 0
- -300 130 1000]
- var polygon p { 2 {[0.6 0.6 0.6] [0.6 0.6 0.6] .9 30 .3} [0 0 0] 0 4 vrt }
- var [4]ptr objects [p s1 s2 s3]
- var world world { [.1 .1 .1] 2 lights 4 objects }
- export world