What is the standard material conversion ?

New Message Reply Date view Thread view Subject view Author view

ceti (ceti++at++worldnet.net)
Tue, 23 Sep 1997 16:33:51 +0200 (MET DST)


Because I got visual result really far from what I was expected, I'm wondering
What is the standard conversion from Inventor to OpenGL for the material
definition?

Typically, all inventor's parameters are in a range of 0.0 to 1.0.
OpenGL are in range of -1.0 to 1.0 or 0 to 128

Is the transformation I'm assuming correct ?

Ambient OGL= ( 2* Ambient Oiv ) - 1
Difuse OGL= ( 2* Difuse Oiv ) - 1
Specular OGL= ( 2* Specular Oiv ) - 1
emis OGL= ( 2* emis Oiv ) - 1
shininess OGL= 128* shininess OIV
transparency OIV converted [( 2*transparency OIV )-1] and reported in Alpha
component of material definition

Thanks for your help.
==================================================================
      _/_/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/
    _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
   _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/
  _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
  _/_/ _/_/_/ _/_/_/ _/ _/_/_/ _/_/_/ _/ _/
                                                               
     BILLARD Olivier - Engineer R&D - C&I Software
     1 avenue de la mer - 44380 PORNICHET - FRANCE
     Tel: +33 2 40 11 68 72 Fax: +33 2 40 61 68 14
  Email: ceti++at++worldnet.net URL:http://www.worldnet.net/~ceti
=================================================================
                          \\\|||///
                         \\ - - //
                          ( ++at++ ++at++ )
       +----------------oOOo-(_)-oOOo----------------------+
| " We don't inherit the world from our ancestors, |
| it's only a loan from our children ." |
| Antoine de Saint Exupery. |
       +-------------------------Oooo----------------------+
                         oooO ( )
                        ( ) ) /
                         \ ( (_/
                          \_)

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.