DigitalCyborg
28-04-2006 00:29:05
Greetings .
While adding LensFlare via billboarding to my app, I noticed something that I wanted to mention here.
expects an OgreVector3. I've gotten quite used to Math3D.Vector3 and noticed that there is no explicit cast from Math3D.Vector3 to OgreVector3
everything seems to work if you set the x,y,z elements individually
but if you try to cast a Math3D.Vector3 to OgreVector3 explicitly:
you'll get an error of the form
I guess what I'm wondering is whether the Billboard class needs updated to use Math3D.Vector3 or whether we should add an explict cast for
Math3D.Vector3 to OgreVector3
what do you think Rastaman?
DC
While adding LensFlare via billboarding to my app, I noticed something that I wanted to mention here.
BillBoardSet.GetBillboard(uint idx).Position
expects an OgreVector3. I've gotten quite used to Math3D.Vector3 and noticed that there is no explicit cast from Math3D.Vector3 to OgreVector3
everything seems to work if you set the x,y,z elements individually
mBillboardSet.GetBillboard(0).Position.x = LFvect.x ;
mBillboardSet.GetBillboard(0).Position.y = LFvect.y ;
mBillboardSet.GetBillboard(0).Position.z = LFvect.z ;
but if you try to cast a Math3D.Vector3 to OgreVector3 explicitly:
mBillboardSet.GetBillboard(0).Position = (OgreVector3) LFvect;
you'll get an error of the form
Error 1 Cannot convert type 'Math3D.Vector3' to 'OgreDotNet.OgreVector3'
I guess what I'm wondering is whether the Billboard class needs updated to use Math3D.Vector3 or whether we should add an explict cast for
Math3D.Vector3 to OgreVector3
what do you think Rastaman?
DC