Revision: 7769
http://playerstage.svn.sourceforge.net/playerstage/?rev=7769&view=rev
Author: rtv
Date: 2009-06-03 07:53:46 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
tweaking ray tracing
Modified Paths:
--------------
code/stage/trunk/libstage/model_laser.cc
code/stage/trunk/libstage/stage.hh
code/stage/trunk/libstage/world.cc
Modified: code/stage/trunk/libstage/model_laser.cc
===================================================================
--- code/stage/trunk/libstage/model_laser.cc 2009-06-03 07:38:57 UTC (rev
7768)
+++ code/stage/trunk/libstage/model_laser.cc 2009-06-03 07:53:46 UTC (rev
7769)
@@ -302,7 +302,7 @@
// trace the ray, incrementing its heading for each sample
for( unsigned int t=0; t<sample_count; t += resolution )
{
- stg_raytrace_result_t r = ray.Trace();
+ stg_raytrace_result_t r = world->Raytrace( ray );
samples[t].range = r.range;
// if we hit a model and it reflects brightly, we set
Modified: code/stage/trunk/libstage/stage.hh
===================================================================
--- code/stage/trunk/libstage/stage.hh 2009-06-03 07:38:57 UTC (rev 7768)
+++ code/stage/trunk/libstage/stage.hh 2009-06-03 07:53:46 UTC (rev 7769)
@@ -864,8 +864,6 @@
stg_ray_test_func_t func;
const void* arg;
bool ztest;
-
- RaytraceResult Trace();
};
const uint32_t INTERVAL_LOG_LEN = 32;
Modified: code/stage/trunk/libstage/world.cc
===================================================================
--- code/stage/trunk/libstage/world.cc 2009-06-03 07:38:57 UTC (rev 7768)
+++ code/stage/trunk/libstage/world.cc 2009-06-03 07:53:46 UTC (rev 7769)
@@ -53,12 +53,6 @@
#include "option.hh"
using namespace Stg;
-
-RaytraceResult Ray::Trace()
-{
- return mod->world->Raytrace( origin, range, func, mod, arg, ztest );
-}
-
// static data members
unsigned int World::next_id = 0;
bool World::quit_all = false;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit