Renderer3D Class Reference

List of all members.

Public Member Functions

mixed HUDFX_AddRisingTextOnMob (mixed mob, mixed text, mixed r, mixed g, mixed b, mixed offsetx, mixed risetime, mixed riseh)
mixed CamKeyUp (mixed key)
mixed CamKeyDown (mixed key)
mixed InitLocalCam (mixed x, mixed y, mixed z)
mixed CamChangeZoom (mixed add)
mixed ChangeCamMode (mixed targetmode)
mixed UpdateMobileModel (mixed mobile)
 called from obj.mobile.lua
mixed UpdateMobileVisibility (mixed mobile)
mixed UpdateAura (mixed mobile, mixed forceupdate)
mixed UpdateMobile (mixed mobile)
mixed UpdateMobilePos (mixed mobile, mixed x, mixed y, mixed z, mixed qw, mixed qx, mixed qy, mixed qz)
mixed StepMobile (mixed mobile)
mixed MobileSetVisible (mixed mobile, mixed bVisible)
mixed DestroyMobileField (mixed mobile, mixed fieldname)
mixed DestroyMobileGfx (mixed mobile)
mixed CreateMobileGfx (mixed mobile)
mixed SelectMobile (mixed iSerial)
 select the given mobile
mixed MobileStartServerSideAnim (mixed animdata)
mixed GetExactMobilePos (mixed mobile)
mixed DestroyMousePickItemBySerial (mixed serial)
mixed TerrainRayIntersect_Hit (mixed tx, mixed ty, mixed tiletype, mixed hit_dist, mixed minz, mixed maxz)
mixed SetOfflineStartPos (mixed x, mixed y, mixed z)
mixed SetLastConfirmedUOPos (mixed xloc, mixed yloc, mixed zloc)
mixed SetLastRequestedUOPos (mixed xloc, mixed yloc, mixed zloc)
mixed SetViewDir (mixed dx, mixed dy)
 for AttackMobile macro
mixed UOPosToLocal (mixed xloc, mixed yloc, mixed z)
 warning !you still have to do 0.1 z factor seperately
mixed UOPosToLocal2 (mixed xloc, mixed yloc, mixed zloc)
mixed LocalToUOPos (mixed xlocal, mixed ylocal, mixed zlocal)
 warning ! you still have to do 0.1 z factor seperately
mixed UOPosToPixelPos (mixed xloc, mixed yloc, mixed zloc)
 returns px,py,bIsInFront
mixed LocalPosToPixelPos (mixed x, mixed y, mixed z)
 returns px,py,bIsInFront
mixed TranslateOsiWalkAngle (mixed x)
 param and result in DEGREES
mixed SetMapAreaEnv (mixed env)
mixed SetMapEnvironment (mixed bUnderGround)
mixed UpdateMapEnvironment (mixed hour, mixed minute, mixed second)
mixed SetupShadows (mixed strShadowTechnique)
mixed AddEffect (mixed effect)
 Manages particle effects, esp. huedfx, decide between effecttypes.
mixed AddLightningEffect (mixed effect)
 TODO.
mixed ParticleEffectHelper (mixed effect, mixed relx, mixed rely, mixed relz)
mixed AddHuedMeshEffect (mixed effect, mixed relx, mixed rely, mixed relz)
 Hued Effect : to display Meshes as instant Effects.
mixed AddParticleEffect (mixed effect, mixed particlename, mixed relx, mixed rely, mixed relz, mixed scalex, mixed scaley, mixed scalez)
 Particle Effect : to display Particles as instant Effects.
mixed Hook_ItemAddParticle (mixed artid, mixed x, mixed y, mixed z)
 hook to add artid based particle effects
mixed UpdateTrackingArrow (mixed active, mixed x, mixed y)
mixed WalkSmoothUpdate (mixed mobile)
 called from Renderer3D:UpdateMobile, not every frame
mixed WalkSmoothStep (mixed mobile)
mixed WalkSmoothReset (mixed mobile)
 used when teleported
mixed SetSimpleMobilePos (mixed mobile)
mixed GenerateCaduneTree (mixed entity)
mixed IsZLayerVisible (mixed layerZ)
 NOTE: layerZ is a uo zloc not the layer index in pStaticGeometryLayers.
mixed UpdateStaticVisibility (mixed entity)
 [[
mixed SetSunLight (mixed intensity)
mixed SetPersonalLight (mixed mobile, mixed intensity)
 sets the personal light level, intensity=0 -> dark, intensity=1 -> bright
mixed CalcPointLightValueDependingOnSun (mixed p)
 if ambient light is very intensitive reduce point light effect
mixed AddStandartUOPointLight (mixed x, mixed y, mixed z, mixed r)
 ------------------- PointLight ----------------------------------------------
mixed AddPointLight (mixed x, mixed y, mixed z, mixed dr, mixed dg, mixed db, mixed sr, mixed sg, mixed sb, mixed ar, mixed ag, mixed ab, mixed aa)
mixed RemovePointLight (mixed name)
mixed DestroyDynamicBlock (mixed bx, mixed by)
 destroys the static mesh of the given block
mixed UpdateDynamicItemPos (mixed dynamic, mixed randomRotation)
mixed UpdateDynamicVisibility (mixed dynamic)
mixed MarkDynamicBlockDirty (mixed x, mixed y)
 marks the dynamic block at uo position xy dirty, will get rebuild next time
mixed AddDynamicToMap (mixed dynamic)
mixed RemoveDynamicFromMap (mixed dynamic)
mixed RebuildDynamic (mixed dynamic)
 rebuilds the graphic of the dynamics
mixed RebuildAllDynamicsWithArtid (mixed artid)
mixed DestroyMultiGraphic (mixed multi)
 destroys the multi gfx static geometry
mixed AddMultiItem (mixed item)
mixed AddCorpseItem (mixed item)
mixed AddDynamicItem (mixed item)
 TODO: Multis & Serversidemultis don't recognize kTileDataFlag_LightSource yet.
mixed CreateArtBillBoard (mixed gfx, mixed iArtID, mixed iHue, mixed bShowDebugBoxInstead)
mixed RemoveDynamicItem (mixed item)
mixed DestroyDynamicGfx (mixed dynamic)
 handle child destroy of Multis
mixed CombatCreateDamageText (mixed text, mixed x, mixed y, mixed z, mixed r, mixed g, mixed b, mixed a, mixed size, mixed speed, mixed lifetime)
 creates a moving and disapearing damage text at the given tile position (x,y,z) (lifetime in sec, speed in ?)
mixed NotifyDamage (mixed serial, mixed damage)
 helper to plop damage
mixed NotifyHPChange (mixed mobile, mixed value)
 helper to plop hp adds
mixed NotifyManaChange (mixed mobile, mixed value)
 helper to plop mana changes

Static Public Member Functions

static mixed CalculatePointLightAttenuation (mixed radius)


Detailed Description

Definition at line 507 of file lua_pseudo_code.cpp.


Member Function Documentation

mixed Renderer3D::HUDFX_AddRisingTextOnMob ( mixed  mob,
mixed  text,
mixed  r,
mixed  g,
mixed  b,
mixed  offsetx,
mixed  risetime,
mixed  riseh 
) [inline]

Definition at line 509 of file lua_pseudo_code.cpp.

mixed Renderer3D::CamKeyUp ( mixed  key  )  [inline]

Definition at line 511 of file lua_pseudo_code.cpp.

mixed Renderer3D::CamKeyDown ( mixed  key  )  [inline]

Definition at line 513 of file lua_pseudo_code.cpp.

mixed Renderer3D::InitLocalCam ( mixed  x,
mixed  y,
mixed  z 
) [inline]

Definition at line 515 of file lua_pseudo_code.cpp.

mixed Renderer3D::CamChangeZoom ( mixed  add  )  [inline]

Definition at line 517 of file lua_pseudo_code.cpp.

mixed Renderer3D::ChangeCamMode ( mixed  targetmode  )  [inline]

Definition at line 519 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateMobileModel ( mixed  mobile  )  [inline]

called from obj.mobile.lua

Definition at line 522 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateMobileVisibility ( mixed  mobile  )  [inline]

Definition at line 524 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateAura ( mixed  mobile,
mixed  forceupdate 
) [inline]

Definition at line 526 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateMobile ( mixed  mobile  )  [inline]

Definition at line 528 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateMobilePos ( mixed  mobile,
mixed  x,
mixed  y,
mixed  z,
mixed  qw,
mixed  qx,
mixed  qy,
mixed  qz 
) [inline]

Definition at line 530 of file lua_pseudo_code.cpp.

mixed Renderer3D::StepMobile ( mixed  mobile  )  [inline]

called every frame from mainloop : MobileAnimStep a every frame stepper for mobiles

Definition at line 534 of file lua_pseudo_code.cpp.

mixed Renderer3D::MobileSetVisible ( mixed  mobile,
mixed  bVisible 
) [inline]

Definition at line 536 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyMobileField ( mixed  mobile,
mixed  fieldname 
) [inline]

Definition at line 538 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyMobileGfx ( mixed  mobile  )  [inline]

Definition at line 540 of file lua_pseudo_code.cpp.

mixed Renderer3D::CreateMobileGfx ( mixed  mobile  )  [inline]

Definition at line 542 of file lua_pseudo_code.cpp.

mixed Renderer3D::SelectMobile ( mixed  iSerial  )  [inline]

select the given mobile

Definition at line 545 of file lua_pseudo_code.cpp.

mixed Renderer3D::MobileStartServerSideAnim ( mixed  animdata  )  [inline]

~ animdata.mobileserial = input:PopNetUint32() ~ animdata.m_animation = input:PopNetUint16() ~ animdata.m_framecount = input:PopNetUint16() ~ animdata.m_repeat = input:PopNetUint16() --repeat (1 = once / 2 = twice / 0 = repeat forever) ~ animdata.m_animForward = input:PopNetUint8() --(0x00=forward, 0x01=backwards) ~ animdata.m_repeatFlag = input:PopNetUint8() --(0 - Don't repeat / 1 repeat) ~ animdata.m_frameDelay = input:PopNetUint8() --(0x00 - fastest / 0xFF - Too slow to watch) todo : remaining anim options (m_animForward, m_frameDelay , m_framecount ?)

Definition at line 555 of file lua_pseudo_code.cpp.

mixed Renderer3D::GetExactMobilePos ( mixed  mobile  )  [inline]

Definition at line 557 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyMousePickItemBySerial ( mixed  serial  )  [inline]

Definition at line 559 of file lua_pseudo_code.cpp.

mixed Renderer3D::TerrainRayIntersect_Hit ( mixed  tx,
mixed  ty,
mixed  tiletype,
mixed  hit_dist,
mixed  minz,
mixed  maxz 
) [inline]

[[ OBSOLETED CODE ! don't use this, hasn't been adjusted to xmirror fix>f TerrainRayIntersect_Hit .lua

Definition at line 563 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetOfflineStartPos ( mixed  x,
mixed  y,
mixed  z 
) [inline]

Definition at line 565 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetLastConfirmedUOPos ( mixed  xloc,
mixed  yloc,
mixed  zloc 
) [inline]

Definition at line 567 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetLastRequestedUOPos ( mixed  xloc,
mixed  yloc,
mixed  zloc 
) [inline]

Definition at line 569 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetViewDir ( mixed  dx,
mixed  dy 
) [inline]

for AttackMobile macro

Definition at line 572 of file lua_pseudo_code.cpp.

mixed Renderer3D::UOPosToLocal ( mixed  xloc,
mixed  yloc,
mixed  z 
) [inline]

warning !you still have to do 0.1 z factor seperately

Definition at line 575 of file lua_pseudo_code.cpp.

mixed Renderer3D::UOPosToLocal2 ( mixed  xloc,
mixed  yloc,
mixed  zloc 
) [inline]

Definition at line 577 of file lua_pseudo_code.cpp.

mixed Renderer3D::LocalToUOPos ( mixed  xlocal,
mixed  ylocal,
mixed  zlocal 
) [inline]

warning ! you still have to do 0.1 z factor seperately

Definition at line 580 of file lua_pseudo_code.cpp.

mixed Renderer3D::UOPosToPixelPos ( mixed  xloc,
mixed  yloc,
mixed  zloc 
) [inline]

returns px,py,bIsInFront

Definition at line 583 of file lua_pseudo_code.cpp.

mixed Renderer3D::LocalPosToPixelPos ( mixed  x,
mixed  y,
mixed  z 
) [inline]

returns px,py,bIsInFront

Definition at line 586 of file lua_pseudo_code.cpp.

mixed Renderer3D::TranslateOsiWalkAngle ( mixed  x  )  [inline]

param and result in DEGREES

Definition at line 589 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetMapAreaEnv ( mixed  env  )  [inline]

Definition at line 591 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetMapEnvironment ( mixed  bUnderGround  )  [inline]

Definition at line 593 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateMapEnvironment ( mixed  hour,
mixed  minute,
mixed  second 
) [inline]

Definition at line 595 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetupShadows ( mixed  strShadowTechnique  )  [inline]

Definition at line 597 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddEffect ( mixed  effect  )  [inline]

Manages particle effects, esp. huedfx, decide between effecttypes.

Definition at line 600 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddLightningEffect ( mixed  effect  )  [inline]

TODO.

Definition at line 603 of file lua_pseudo_code.cpp.

mixed Renderer3D::ParticleEffectHelper ( mixed  effect,
mixed  relx,
mixed  rely,
mixed  relz 
) [inline]

Definition at line 605 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddHuedMeshEffect ( mixed  effect,
mixed  relx,
mixed  rely,
mixed  relz 
) [inline]

Hued Effect : to display Meshes as instant Effects.

Definition at line 608 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddParticleEffect ( mixed  effect,
mixed  particlename,
mixed  relx,
mixed  rely,
mixed  relz,
mixed  scalex,
mixed  scaley,
mixed  scalez 
) [inline]

Particle Effect : to display Particles as instant Effects.

Definition at line 611 of file lua_pseudo_code.cpp.

mixed Renderer3D::Hook_ItemAddParticle ( mixed  artid,
mixed  x,
mixed  y,
mixed  z 
) [inline]

hook to add artid based particle effects

Definition at line 614 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateTrackingArrow ( mixed  active,
mixed  x,
mixed  y 
) [inline]

Definition at line 616 of file lua_pseudo_code.cpp.

mixed Renderer3D::WalkSmoothUpdate ( mixed  mobile  )  [inline]

called from Renderer3D:UpdateMobile, not every frame

Definition at line 619 of file lua_pseudo_code.cpp.

mixed Renderer3D::WalkSmoothStep ( mixed  mobile  )  [inline]

Definition at line 621 of file lua_pseudo_code.cpp.

mixed Renderer3D::WalkSmoothReset ( mixed  mobile  )  [inline]

used when teleported

Definition at line 624 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetSimpleMobilePos ( mixed  mobile  )  [inline]

Definition at line 626 of file lua_pseudo_code.cpp.

mixed Renderer3D::GenerateCaduneTree ( mixed  entity  )  [inline]

Definition at line 628 of file lua_pseudo_code.cpp.

mixed Renderer3D::IsZLayerVisible ( mixed  layerZ  )  [inline]

NOTE: layerZ is a uo zloc not the layer index in pStaticGeometryLayers.

Definition at line 631 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateStaticVisibility ( mixed  entity  )  [inline]

[[

Definition at line 634 of file lua_pseudo_code.cpp.

static mixed Renderer3D::CalculatePointLightAttenuation ( mixed  radius  )  [inline, static]

Definition at line 636 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetSunLight ( mixed  intensity  )  [inline]

------------Renderer3D Lightlevels ----------------------------------------------- sets the global sunlight level, intensity=0 -> dark, intensity=1 -> bright

Definition at line 640 of file lua_pseudo_code.cpp.

mixed Renderer3D::SetPersonalLight ( mixed  mobile,
mixed  intensity 
) [inline]

sets the personal light level, intensity=0 -> dark, intensity=1 -> bright

Definition at line 643 of file lua_pseudo_code.cpp.

mixed Renderer3D::CalcPointLightValueDependingOnSun ( mixed  p  )  [inline]

if ambient light is very intensitive reduce point light effect

Definition at line 646 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddStandartUOPointLight ( mixed  x,
mixed  y,
mixed  z,
mixed  r 
) [inline]

------------------- PointLight ----------------------------------------------

Definition at line 649 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddPointLight ( mixed  x,
mixed  y,
mixed  z,
mixed  dr,
mixed  dg,
mixed  db,
mixed  sr,
mixed  sg,
mixed  sb,
mixed  ar,
mixed  ag,
mixed  ab,
mixed  aa 
) [inline]

adds a point light source Diffuse dr,dg,db Specular sr,sg,sb Attenuation ar,ag,ab,aa

Definition at line 655 of file lua_pseudo_code.cpp.

mixed Renderer3D::RemovePointLight ( mixed  name  )  [inline]

Definition at line 657 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyDynamicBlock ( mixed  bx,
mixed  by 
) [inline]

destroys the static mesh of the given block

Definition at line 660 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateDynamicItemPos ( mixed  dynamic,
mixed  randomRotation 
) [inline]

Definition at line 662 of file lua_pseudo_code.cpp.

mixed Renderer3D::UpdateDynamicVisibility ( mixed  dynamic  )  [inline]

Definition at line 664 of file lua_pseudo_code.cpp.

mixed Renderer3D::MarkDynamicBlockDirty ( mixed  x,
mixed  y 
) [inline]

marks the dynamic block at uo position xy dirty, will get rebuild next time

Definition at line 667 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddDynamicToMap ( mixed  dynamic  )  [inline]

Definition at line 669 of file lua_pseudo_code.cpp.

mixed Renderer3D::RemoveDynamicFromMap ( mixed  dynamic  )  [inline]

Definition at line 671 of file lua_pseudo_code.cpp.

mixed Renderer3D::RebuildDynamic ( mixed  dynamic  )  [inline]

rebuilds the graphic of the dynamics

Definition at line 674 of file lua_pseudo_code.cpp.

mixed Renderer3D::RebuildAllDynamicsWithArtid ( mixed  artid  )  [inline]

Definition at line 676 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyMultiGraphic ( mixed  multi  )  [inline]

destroys the multi gfx static geometry

Definition at line 679 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddMultiItem ( mixed  item  )  [inline]

multi / house creates the geometry of the given multi and stores the gfx object in this multi

Definition at line 683 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddCorpseItem ( mixed  item  )  [inline]

Definition at line 685 of file lua_pseudo_code.cpp.

mixed Renderer3D::AddDynamicItem ( mixed  item  )  [inline]

TODO: Multis & Serversidemultis don't recognize kTileDataFlag_LightSource yet.

Definition at line 688 of file lua_pseudo_code.cpp.

mixed Renderer3D::CreateArtBillBoard ( mixed  gfx,
mixed  iArtID,
mixed  iHue,
mixed  bShowDebugBoxInstead 
) [inline]

Definition at line 690 of file lua_pseudo_code.cpp.

mixed Renderer3D::RemoveDynamicItem ( mixed  item  )  [inline]

Definition at line 692 of file lua_pseudo_code.cpp.

mixed Renderer3D::DestroyDynamicGfx ( mixed  dynamic  )  [inline]

handle child destroy of Multis

Definition at line 695 of file lua_pseudo_code.cpp.

mixed Renderer3D::CombatCreateDamageText ( mixed  text,
mixed  x,
mixed  y,
mixed  z,
mixed  r,
mixed  g,
mixed  b,
mixed  a,
mixed  size,
mixed  speed,
mixed  lifetime 
) [inline]

creates a moving and disapearing damage text at the given tile position (x,y,z) (lifetime in sec, speed in ?)

Definition at line 698 of file lua_pseudo_code.cpp.

mixed Renderer3D::NotifyDamage ( mixed  serial,
mixed  damage 
) [inline]

helper to plop damage

Definition at line 701 of file lua_pseudo_code.cpp.

mixed Renderer3D::NotifyHPChange ( mixed  mobile,
mixed  value 
) [inline]

helper to plop hp adds

Definition at line 704 of file lua_pseudo_code.cpp.

mixed Renderer3D::NotifyManaChange ( mixed  mobile,
mixed  value 
) [inline]

helper to plop mana changes

Definition at line 707 of file lua_pseudo_code.cpp.


The documentation for this class was generated from the following file:

Generated on Fri Mar 29 05:41:10 2013 for lua by  doxygen 1.5.6