Introduction to WTK Jin-Bey Yu 2001/10/04. What is WTK Library With over 1000 functions written in C that enable you to rapidly develop virtual reality.

Slides:



Advertisements
Similar presentations
Programming with OpenGL - Getting started - Hanyang University Han Jae-Hyek.
Advertisements

Chapter 2: Graphics Programming
C Program Design Supplements 主講人:虞台文. Content Who takes the return value of main() ?
In 3DMAX. Autodesk 3ds Max, formerly 3D Studio Max, is 3D computer graphics software for making 3D animations, models, and images. It was developed and.
1 CONFIDENTIAL | © 2012 The MathWorks, Inc. CONFIDENTIAL March, 2013 Ariel Rubanenko Application, Consulting & Tool Implementation for Large-scale simulations,
Introduction of MontaVista Linux Ku-Chuan Lin. MontaVista Linux2 2015/6/3 Outlines Introduction of Embedded System Environment Build Host Build Target.
Mobile IP Lab TA: 洪敏書
ACM ICPC 競賽環境設定 Introducer: Hsing-Yen Ann Date: 2008/08/14.
How to create your library 井民全製作. Select a library type  Win32 Dynamic-Link Library  Win32 Static Library 1 2.
MS-DOS 作業系統 張基昇 (Microsoft-Disk Operating System).
程式語言實習 - JAVA Class1 1. 介紹 Java 編寫、編譯、執行 2. 請同學完成作業二.
CG HW1 A Basic Scene Editor. Introduction  Objective –Design a interactive tool to manipulate 3D models for basic transformations.  Input –Some object.
Virtual reality interfaces in connection with building process simulations. Prof. Nash Dawood Centre for Construction Innovation Research University of.
下載 Dev C++ Compiler. 網址 ding.php?groupnamehttp://sourceforge.net/project/downloa ding.php?groupname=dev-cpp & filename=devcpp _setup.exe.
Further Programming for 3D applications CE Introduction to Further Programming for 3D application Bob Hobbs Faculty of Computing, Engineering and.
1 An tutorial to AMPL. 2 Introduction Mathematical programming is a technique for solving certain kinds of problems --- notably maximizing profits and.
Java 3D Pablo Figueroa University of Alberta April 2000.
Network Analyzer For Ethereal. 基本設備 Hardware pc network card can connect INTERNET Software OS Winpcap Ethereal.
組合語言與系統程式 軟體使用教學. 軟體下載及安裝 下載 到課程網頁下載 tw/~jiun/ 安裝 解壓縮後將 System Software 資料夾放在 D 槽 (C 槽版本放在 C 之下 )
Sep 30, I3I3DG&VR CE00539-m Interactive 3D Graphics and Virtual Reality Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
如何使用 Yahoo Messenger Yahoo Messenger 雅虎即時通 讓你在第一時間內和上線的朋 友溝通!
09610CS_ 校園授權軟體下載與安裝 講師 : 張智宏. 登入校務資訊系統 校園軟體下載.
Miscellanea Switch Bitwise operations ?,. break; continue; (example) (example) do { a = getc(stdin); if (a=='q') break; else if (a=='c') continue; n++;
Android 遊戲設計模組 1 Android 開發環境建構 郭育政 東吳大學資訊管理系 涂昆源 萬能科技大學資訊工程系 余執彰 萬能科技大學資訊工程系 周建興 淡江大學電機工程系 林旭陽 東吳大學資訊管理系 教育部網路通訊人才培育先導型計畫 ─ 課程發展計畫.
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
如何 deploy JSP 到 Tomcat 井民全 製作. 系統需求 Apache Ant ( Apache Ant ( 負責編譯與製作 war 檔 負責編譯與製作 war 檔 Apache Tomcat.
Discussion Silvia Lindtner INF 132 April 07. Fitts’ law - recap A predictive model of time to point at an object Help decide the location and size of.
Model Of Software Development Process For Virtual Environment –A Case Study - Shraddha Pathak.
Basic 3D Graphics Chapter 5. Bird’s Eye View  Basic 3D Graphics –Basic concepts of 3D graphics, rendering pipeline, Java 3D programming, scene graph,
3D Concepts Coordinate Systems Coordinates specify points in space 3D coords commonly use X, Y, & Z A vertex is a 'corner' of an object Different coordinate.
Getting started © juhanita2015.
1 Computer Graphics Dr. Amy Zhang Assistant Professor of Computer Science United International College.
Module 1: Introduction to C# Module 2: Variables and Data Types
Session 1 - Introduction and Data Access Layer
VRML - 1 Virtual Reality Modeling Language (VRML) Peter O’Grady.
 Java SE Develop Kit (JDK) 包含了編寫 Java 語言程式時可能會使用的元件。  Android SDK 開發 Android 程式的工具。  Eclipse with Android Development Tools (ADT) plugin 免費的程式編寫工具,加上.
Overview LAN 1LAN 2 Summary 目的 連接 LAN1 與 LAN2 Frame forwarding Frame filtering Hint Data link layer socket programming Library: libpcap libnet.
CHAPTER FOUR COMPUTER SOFTWARE.
OpenGL Shading Language (Advanced Computer Graphics) Ernest Tatum.
Using OpenGL in Visual C++ Opengl32.dll and glu32.dll should be in the system folder Opengl32.dll and glu32.dll should be in the system folder Opengl32.lib.
CSC 461: Lecture 41 CSC461: Lecture 4 Introduction to OpenGL Objectives: Development of the OpenGL API OpenGL Architecture -- OpenGL as a state machine.
Microsoft Robotics Studio Simulation Kyle Johns Software Development Engineer Microsoft Corporation.
UNIT I 2D PRIMITIVES INTRODUCTION 1 SNSCE/IT/ARUNA.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
1 VR assignment#2 WTK SDK Introduction By Jin-Bey Yu 2001/11/12.
1 Chapter 12 GUI C/C++ Language Programming Wanxiang Che.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Introduction to OpenGL and GLUT. What’s OpenGL? An Application Programming Interface (API) A low-level graphics programming API – Contains over 250 functions.
© TMC Computer School HC20203 VRML HIGHER DIPLOMA IN COMPUTING Chapter 2 – Basic VRML.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1 Network Simulator 2 Install Chao-Ying Chiu. 2 Outline n Install Cygwin n Install NS2 n Test NS2 Example.
Vizard Virtual Reality Toolkits Vizard Virtual Reality Toolkits.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
DESIGNING 3D WEB USING VRML Bob Hobbs Introduction to Virtual Reality and Simulation CE
NoufNaief.net TA: Nouf Al-harbi.
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
王子健 Overview LAN 1LAN 2.
Other Thread Synchronization Functions 井民全製作. Introduction.
VIRTUAL REALITY (VR) INTRODUCTION AND BASIC APPLICATIONS الواقع الافتراضي : مقدمة وتطبيقات Dr. Naji Shukri Alzaza Assist. Prof. of Mobile technology Dean.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
Introducing To 3D Studio Max George Atanasov Telerik Corporation
Statistical analysis - R Language Open Source R R Studio.
李志清 南台科大. 開發環境建置 調整硬碟分割區 Partition Magic XPE 開發環境安裝 Disk 1 Windows XP Embedded SP1 Disk 2 Windows XP Embedded SP1 Disk 3 Windows XP Embedded SP2 XPE.
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Institute for Computer Graphics and Vision Computer Graphics and Interactive Systems 1 Grabner HS i4, 2006/03/08 Web3D, VRVU, SGP Web3D ( ) VRVU.
Games Development Practices 3D Modelling
01_NF_Ch11 - Configuring and Testing Your Network
Tutorials available at jamestedder.net
Lecture 3. Virtual Worlds : Representation,Creation and Simulation
Presentation transcript:

Introduction to WTK Jin-Bey Yu 2001/10/04

What is WTK Library With over 1000 functions written in C that enable you to rapidly develop virtual reality applications. Resemble virtual world Object in this world may have reality-world properties and behavior Structured in an object-oriented way Functions are object-oriented in their naming convention, and are organized into over 20 classes.

Scene Graph Architecture

What WTK Does Rendering Reading input sensors Importing geometries Simulation Incorporates the philosophy of OpenVR TM (portable across platforms) Supports a variety of input and output devices.

Overview of the WTK Classes Universe The container of all WTK object Geometries Graphical object that are visible in a simulation Nodes Building blocks from scene graphs Polygons Vertices Lights

Overview of the WTK Classes (const.) Viewpoints Define the position and orientation of the view. Windows Display user ’ s scene. Sensors Manipulate object motion Path Object that allow geometric or viewpoint to follow.

Overview of the WTK Classes (const.) Tasks assign behaviors (such as movement) Motion links Associate a senor (or a path) with an target Sound User interface Networking asynchronously communicate over an Ethernet Serial port

Other Features Materials and Translucency Complete control of coloring geometries Task Objects Specify the behavior of any geometry, node Performance Optimizations for Rendering Atmospheric Effects fog, haze, and cloud layers Constraints Available on the translations and rotations

Other Features (const.) Textures from Memory Support for Many Sensors Support for 3D Text Support for Many File Formats WRL, FLT, DXF, NFF, OBJ, 3DS, BFF, SLP, and GEO file formats.

Simulation Loop

使用環境 作業系統 : 95/98/NT MicroSoft visual C WTK Release 7.0 其他工具 : 3D Studio MAX 3D 加速卡 (optional)

事前設定 安裝 將 WorldToolKit_Release7 目錄下的 Wtk.lib- cracked 取代安裝後的 Lib 目錄下的 Wtk.lib 將 wtkcodes 複製到 ( 你的 ) 執行檔目錄。 VC 設定 Tools ->Options ->Directories 下請加入 WTK 的 Include 和 Lib 目錄的位置 Project -> Settings ->Link ->General->modules 請加入 wtk.lib opengl32.lib ->Link ->Input -> Ignore libraries 請填上 libcd.lib

Example #include "wt.h" WTnode *root; WTviewpoint *view; void main (int argc, char* argv[]) { WTsensor *sensor; WTuniverse_new(WTDISPLAY_DEFAULT, WTWINDOW_DEFAULT); root = WTuniverse_getrootnodes(); sensor = WTmouse_new(); view = WTuniverse_getviewpoints(); WTviewpoint_addsensor(view, sensor); WTkeyboard_open(); /* set universe action function */ WTuniverse_setactions(actions); WTuniverse_setbgrgb(0, 0, 0); setup_scene(); WTuniverse_ready(); WTuniverse_go(); WTuniverse_delete(); }

Example (const.) void actions() { int key ; key = WTkeyboard_getkey(); if (key) handle_key(key); } void handle_key(int k) { WTp3 pos; switch (k) { case '1' : WTviewpoint_getposition(view, pos); WTmessage("%f, %f, %f\n", pos[X], pos[Y], pos[Z]); break; default:break; }

Example (const.) void setup_scene() { WTgeometry *cylinder, *sphere; WTnode *myLOD, *n1, *n2, *tel; float lodrange[2] = {10.0, 30.0}; WTp3 pos; WTlight_load("lights"); tel = WTnode_load(root, "Tel.3DS", 0.01f); cylinder = WTgeometry_newcylinder(10.0, 0.3, 3, FALSE, FALSE); sphere = WTgeometry_newsphere(1.0, 8, 16, FALSE, FALSE); myLOD = WTlodnode_new(root); n1 = WTgeometrynode_new(myLOD, cylinder); n2 = WTgeometrynode_new(myLOD, sphere); pos[X] = 0; pos[Y] = 7.5; pos[Z] = 0; WTlodnode_setcenter(myLOD, pos); WTlodnode_setrange(myLOD, lodrange, 2); }

WTK light format Directed light parameters d[irected] [dir ] [ int ] [amb ] [diff ] [spec ] Point light parameters p[oint] [pos ] [ int ] [att ] [amb ] [diff ] [spec ] Spot light parameters s[pot][pos ][dir ][int ][angle[rad] ] [exp ] [att ][amb ][diff ][spec ] Ambient light parameters a[mbient] [int ] [amb ]

Relative Resource Ftp cggmpc3.csie.nctu.edu.tw:21 username/password: vr2001/vr2001 WTK release7 3D Studio Max R3 Bryce 4.0 Poser 4.0