Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2837 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Nov 12, 2004, 2:32:01 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: shininess set to 2.0 as default. (just looks better :)) and implemented transparency readout, but it does not include in the render-properties yet

Location:
orxonox/trunk/importer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/framework.cc

    r2812 r2837  
    4646    return 0;
    4747  }
    48 
    49 
    50   obj = new Object (argv[1]);
     48  if (argc >=3)
     49    obj = new Object (argv[1], atof(argv[2]));
     50  else
     51    obj = new Object(argv[1]);
    5152
    5253  GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0};
  • orxonox/trunk/importer/material.cc

    r2836 r2837  
    5555  setAmbient(0,0,0);
    5656  setSpecular(0,0,0);
    57   setShininess(0.0);
     57  setShininess(2);
    5858  setTransparency(0.0);
    5959 
  • orxonox/trunk/importer/object.cc

    r2836 r2837  
    331331          tmpMat->setShininess(Buffer+3);
    332332        }
     333      // setting up transparency
     334      else if (!strncmp(Buffer, "d", 1))
     335        {
     336          tmpMat->setTransparency(Buffer+2);
     337        }
     338      else if (!strncpy(Buffer, "Tf", 2))
     339        {
     340          tmpMat->setTransparency(Buffer+3);
     341        }
     342
    333343    }
    334344  return true;
Note: See TracChangeset for help on using the changeset viewer.