Hello again.
Please forget the last patch I sent, since it was a huge black hole in
my head I think :)
This one does the same but is much simpler, just pushes all 3d clouds
into CLOUDS_BIN which is depth sorted from back to front, and all 3d
clouds render nicely.
I still see problem with 2d cloud layers hiding the 3d clouds behind
them. It needs a bit more thinking to get that one working correctly.
Lauri A.K.A. Zan
P.s. the 2d cloud layers work, it was the same black hole again.
--
Lauri Peltonen
Index: cloudfield.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/sky/cloudfield.cxx,v
retrieving revision 1.35
diff -u -r1.35 cloudfield.cxx
--- cloudfield.cxx 23 Jan 2010 11:40:43 -0000 1.35
+++ cloudfield.cxx 1 Mar 2010 21:25:47 -0000
@@ -132,7 +132,8 @@
field_transform->setMatrix( LAT*LON*T );
}
- field_root->getStateSet()->setRenderBinDetails(asl, "DepthSortedBin");
+ // Render the clouds in order from farthest away layer to nearest one.
+ field_root->getStateSet()->setRenderBinDetails(CLOUDS_BIN, "DepthSortedBin");
return true;
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel