WebSite Logo
  • Content
  • Similar Resources
  • Metadata
  • Cite This
  • Log-in
  • Fullscreen
Log-in
Do not have an account? Register Now
Forgot your password? Account recovery
  1. ACM SIGGRAPH 2004 Web graphics (SIGGRAPH '04)
  2. Universal converter for platform independent procedural shaders in X3D
Loading...

Please wait, while we are loading the content...

Graffiti archaeology
Ryukyu ALIVE: information galaxy visualizing users' access log
NetAIBO project
What graphics designers should know about the mobile web
Universal converter for platform independent procedural shaders in X3D
Online 3D retrieval based on perceptual quality
Efficient dynamic media generation
Flash finally hits Hollywood
electroscape 002: BAC +3 Digit // multiplied space
Visual query interfaces for wiki's and blogs
OHAYO players
JSR-226: a versatile API for mobile SVG on J2ME
Rich media procedural texturing
The Kata of web3D
CSS Zen Garden
Sign language animation site "Hello! Astroboy"
Processing.org: programming for artists and designers
_knowscape mobile, associating territory of data and physical space
Flash everywhere
Gateway and protocol for modern cyberspace

Similar Documents

...
Web based molecular visualization using procedural shaders in X3D

Article

...
Platform independent real-time x3d shaders and their applications in bioinformatics visualization

Article

...
X3D programmable shaders

Article

...
Procedural texture matching and transformation (2004).

...
Sampling procedural shaders using affine arithmetic

Article

...
High-level procedural shading VRML/X3D

Article

...
Effective use of procedural shaders in animated scenes (2004).

Article

...
APPLICATIONS IN BIOINFORMATICS VISUALIZATION (2005)

Thesis

...
Real-time Shading: Sampling Procedural Shaders

Universal converter for platform independent procedural shaders in X3D

Content Provider ACM Digital Library
Author Owen, G. Scott Zhu, Ying Liu, Feng
Abstract Each of the three currently available real time shading languages has limitations. The Microsoft HLSL (high level shading language) is Microsoft Windows specific. The NVIDIA Cg shading language is claimed to be platform independent, however our experimental testing results indicated that none of the ATI 9000 level cards could fully support the programs in the Cg toolkit browser [nVidia 2002]. That means we can't say that Cg is really a platform independent shading language. It is still unclear whether OpenGL Shading Language (GLSL) [Rost 2004] can achieve platform independence since it is only supported by a few graphics cards at this point. Until all shading languages achieve platform independence, there is a need to convert shaders in one language to another. Even after this point, the owners of older versions of GPUs will still need a bridge to connect to the newer shader format, especially when they try to publish their shaders on the Internet or load the other version shaders on their graphics card.In this talk, we propose a XML based Universal Converter (UC) for shaders. X3D is defined in XML and the X3D shader group [Carvalho et al. 2003] is working on a shader standard. Thus, we chose to use an XML shader format as the middle layer for the conversion between different shader languages (Figure 1.), so that it will be compatible with any new X3D standard. The UC design, shading languages mapping, difficulties we faced during the implementation and partial implementation results will be discussed.An example of converting a simple vertex shader in GLSL to XML to Cg vertex shader format and vice versa will be presented. The first step is to look at the two corresponding shading languages data-type mapping, structure mapping, qualifier mapping, attribute/semantics mapping, built-in functions mapping, and texture lookup functions mapping. In the presentation we will present mapping tables illustrating these.From looking at the mapping table, it will be apparent that it is not hard to implement the data type conversions. For example, vect2/ vect3/ vect4 and matrix2/ matrix3/ matrix4 in GLSL correspond to the float2/ float3/ float4 and float2x2/ float3x3/ float 4x4 in Cg respectively. We convert ivect/bvect in GLSL to vect type in Cg. That means the middle layer XML will employ the more general data type during parsing.Another issue is mapping attributes in GLSL corresponding to the semantics in Cg. For example, when we parse a structure like: "float4 position: POSITION" in Cg, we need to convert it to a corresponding GLSL built-in attribute "gl_vertex" which is already predefined in GLSL.Some standard library functions in the source language do not have counterparts in the target language. We solve this problem by implementing the "missing" functions using existing functions in the target language. For example,float4 lighting = lit(diffuse, specular, 32); II in Cg would be converted to the following code in GLSL:vec4 lighting; II in OpenGL shading languagelighting.x = 1.0;lighting.y = max(diffuse, 0.0);lighting.z = min(diffuse, speclar);if (lighting. z < 0)lighting.z = 0.0;elselighting.z = pow (speclar, 32);lighting.w = 1.0;There are two difficulties during implementation. One is the predefined uniform issue. Some uniform variables in GLSL are built-in variables. However in Cg, this uniform variable wouldn't be defined until the API commands call the shaders and send the variable. This will cause some problems with unknown variables. Another issue is that branching statements, like for loop, are used with different scope by GLSL and Cg.Please refer to the mapping tables for the GLSL-Cg languages mapping in APPENDIX A. APPENDIX B shows an example of converting of Cg -- xml -- GLSL and GLSL -- xml -- Cg as well as the middle layer XML format for the same shader.
File Format PDF
ISBN 1581138962
DOI 10.1145/1186194.1186211
Language English
Publisher Association for Computing Machinery (ACM)
Publisher Date 2004-08-08
Publisher Place New York
Access Restriction Subscribed
Content Type Text
Resource Type Article
  • About
  • Disclaimer
  • Feedback
  • Sponsor
  • Contact
  • Chat with Us
About National Digital Library of India (NDLI)
NDLI logo

National Digital Library of India (NDLI) is a virtual repository of learning resources which is not just a repository with search/browse facilities but provides a host of services for the learner community. It is sponsored and mentored by Ministry of Education, Government of India, through its National Mission on Education through Information and Communication Technology (NMEICT). Filtered and federated searching is employed to facilitate focused searching so that learners can find the right resource with least effort and in minimum time. NDLI provides user group-specific services such as Examination Preparatory for School and College students and job aspirants. Services for Researchers and general learners are also provided. NDLI is designed to hold content of any language and provides interface support for 10 most widely used Indian languages. It is built to provide support for all academic levels including researchers and life-long learners, all disciplines, all popular forms of access devices and differently-abled learners. It is designed to enable people to learn and prepare from best practices from all over the world and to facilitate researchers to perform inter-linked exploration from multiple sources. It is developed, operated and maintained from Indian Institute of Technology Kharagpur.

Learn more about this project from here.

Disclaimer

NDLI is a conglomeration of freely available or institutionally contributed or donated or publisher managed contents. Almost all these contents are hosted and accessed from respective sources. The responsibility for authenticity, relevance, completeness, accuracy, reliability and suitability of these contents rests with the respective organization and NDLI has no responsibility or liability for these. Every effort is made to keep the NDLI portal up and running smoothly unless there are some unavoidable technical issues.

Feedback

Sponsor

Ministry of Education, through its National Mission on Education through Information and Communication Technology (NMEICT), has sponsored and funded the National Digital Library of India (NDLI) project.

Contact National Digital Library of India
Central Library (ISO-9001:2015 Certified)
Indian Institute of Technology Kharagpur
Kharagpur, West Bengal, India | PIN - 721302
See location in the Map
03222 282435
Mail: support@ndl.gov.in
Sl. Authority Responsibilities Communication Details
1 Ministry of Education (GoI),
Department of Higher Education
Sanctioning Authority https://www.education.gov.in/ict-initiatives
2 Indian Institute of Technology Kharagpur Host Institute of the Project: The host institute of the project is responsible for providing infrastructure support and hosting the project https://www.iitkgp.ac.in
3 National Digital Library of India Office, Indian Institute of Technology Kharagpur The administrative and infrastructural headquarters of the project Dr. B. Sutradhar  bsutra@ndl.gov.in
4 Project PI / Joint PI Principal Investigator and Joint Principal Investigators of the project Dr. B. Sutradhar  bsutra@ndl.gov.in
Prof. Saswat Chakrabarti  will be added soon
5 Website/Portal (Helpdesk) Queries regarding NDLI and its services support@ndl.gov.in
6 Contents and Copyright Issues Queries related to content curation and copyright issues content@ndl.gov.in
7 National Digital Library of India Club (NDLI Club) Queries related to NDLI Club formation, support, user awareness program, seminar/symposium, collaboration, social media, promotion, and outreach clubsupport@ndl.gov.in
8 Digital Preservation Centre (DPC) Assistance with digitizing and archiving copyright-free printed books dpc@ndl.gov.in
9 IDR Setup or Support Queries related to establishment and support of Institutional Digital Repository (IDR) and IDR workshops idr@ndl.gov.in
I will try my best to help you...
Cite this Content
Loading...