On 10.08.2009 23:06, shahar siman-tov wrote: > Hello CrystalSpace team! > > I am trying to work the DrawLine() function so I can draw a mesh or a > 'tree' of lines in 3d space I can rotate the camera around (they are > supposed to symbolize connections between objects in 3d space). I think > I manged to successfuly translate position between camera space and > world space, However, the line is drawn 'behind' all 3d graphics and is > being obscured by it.
Well, you draw the lines _before_ the 3D graphics, so the 3D stuff paints over it. On a related post I found from 2006, jorrit said > 'Note that this will draw on top of all 3D geometry that is already > present and it must be done in 2D mode', but the opposite seems to be > happening-the line is behind, not on top of, all other graphics. It will if you switch the order and draw the 2D stuff after the 3D stuff :P The important point here is that the lines will _not_ interact with the depth buffer - ie they don't occlude 'real' geometry or are occluded by 'real' geometry, -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
