Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10154 in orxonox.OLD


Ignore:
Timestamp:
Jan 1, 2007, 3:32:36 AM (17 years ago)
Author:
marcscha
Message:

Wobblegrid addition for alienweapons

Location:
branches/playability/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/lib/graphics/importer/vertex_array_model.cc

    r9869 r10154  
    260260                            ((float)j - (float)resolutionY/2.0)/(float)resolutionY * sizeY);
    261261          this->addNormal(0.0, 1, 0.0);
    262           this->addTexCoor((float)i/(float)resolutionX, (float)j/(float)resolutionY);
     262          this->addTexCoor((float)i/(float)(resolutionY-1), (float)j/(float)(resolutionX-1));
    263263          this->addColor(1.0, 1.0, 1.0);
    264264        }
  • branches/playability/src/world_entities/Makefile.am

    r10107 r10154  
    1010                                weapons/weapon.cc               weapons/ammo_container.cc               projectiles/projectile.cc \
    1111                                                extendable.cc           power_ups/power_up.cc           power_ups/param_power_up.cc \
    12                                 power_ups/weapon_power_up.cc                            spawning_point.cc                                               effects/explosion.cc            effects/billboard.cc \
     12                                power_ups/weapon_power_up.cc                            spawning_point.cc                                               effects/explosion.cc            effects/billboard.cc            effects/wobblegrid.cc\
    1313                                effects/trail.cc                                elements/glgui_energywidget.cc elements/glgui_energywidgetvertical.cc
    1414
     
    1818                                weapons/weapon.h                weapons/ammo_container.h                projectiles/projectile.h \
    1919                                                power_ups/power_up.h            power_ups/param_power_up.h              power_ups/weapon_power_up.h \
    20                                                 spawning_point.h                                                effects/explosion.h             effects/billboard.h             effects/trail.h \
     20                                                spawning_point.h                                                effects/explosion.h             effects/billboard.h             effects/trail.h                 effects/wobblegrid.h\
    2121                                                                                elements/glgui_energywidget.h elements/glgui_energywidgetvertical.h
    2222
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10152 r10154  
    3737#include "particles/sprite_particles.h"
    3838#include "effects/trail.h"
     39
     40#include "effects/wobblegrid.h"
    3941
    4042#include "util/loading/factory.h"
     
    370372
    371373  this->toList(OM_GROUP_00);
     374
     375  Wobblegrid* test  = new Wobblegrid(5);
     376  test->setTexture("maps/fichte_ast6.tga");
     377 
     378  test->setAbsCoor( this->getAbsCoor() + Vector(0, 2, 0));
     379  test->setParent( this);
     380 
    372381}
    373382
Note: See TracChangeset for help on using the changeset viewer.