[Bcbdirectx-bugs] Re: Why I can't install this component?
Status: Pre-Alpha
Brought to you by:
bcb_freak
From: Lin X. <ris...@ho...> - 2001-08-25 05:51:53
|
Ahha, some more bad coding from me. Argh. Replace BoxVisibility in DXObjectUtil.cpp (starts on line 126) with this: int __fastcall BoxVisibility(TDXPoint Point,TDXVector Front,TDXBoundingBox* Box, float AngleViewed,float MaxViewRange) { //Check Center TDXPoint Pointing = Box->Center; Pointing = Pointing - Point; if(TDXVector(Pointing).LengthNS()>MaxViewRange*MaxViewRange) return OUT_VIEW; float Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return IN_VIEW; //Check 8 corners Pointing = Box->Center + TDXPoint(-Box->LengthX,-Box->LengthY,-Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(-Box->LengthX,-Box->LengthY,Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(-Box->LengthX,Box->LengthY,-Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(-Box->LengthX,Box->LengthY,Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) Pointing = Box->Center + TDXPoint(Box->LengthX,-Box->LengthY,-Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(Box->LengthX,-Box->LengthY,Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(Box->LengthX,Box->LengthY,-Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; Pointing = Box->Center + TDXPoint(Box->LengthX,Box->LengthY,Box->LengthZ)*Box->World; Pointing = Pointing - Point; Angle = TDXVector(Pointing) ^ Front; if(Angle<0) Angle = -Angle; if(Angle<=AngleViewed) return PART_VIEW; //After all this it's outside return OUT_VIEW; } Note: if it still doesn't work reply and I'll give you the DXMath units to try to fix it again. :-( ----- Original Message ----- From: "wayne" <lov...@16...> To: <ris...@ho...> Sent: Friday, August 24, 2001 10:07 PM Subject: Why I can't install this component? > can't compile > [C++ Warning] transip.h(241): > W8022 'CTransInPlaceFilter::Transform(IMediaSample *)' > hides virtual function 'CTransformFilter::Transform > (IMediaSample *,IMediaSample *)' > [C++ Warning] source.h(169): W8022 'CSourceStream::Run()' > hides virtual function 'CBasePin::Run(__int64)' > [C++ Error] DXObjectUtil.cpp(136): E2285 Could not find a > match for 'TDXMatrix::TDXMatrix(const TDXMatrix)' > [C++ Error] DXObjectUtil.cpp(136): E2342 Type mismatch in > parameter 'O' (wanted 'TDXMatrix', got 'TDXMatrix') > [C++ Error] DXObjectUtil.cpp(142): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(148): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(154): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(159): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(165): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(171): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > [C++ Error] DXObjectUtil.cpp(177): E2094 'operator+' not > implemented in type 'TDXPoint' for arguments of > type 'TDXMatrix' > |