| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> since the multiply them together... <1> yes, they multiply together <1> to make your GL matrix <1> but there is no element of cursor position <1> from the camera view <1> or whatever view <0> do you have a matrix that stores the rotation and position of your camera? <1> regardless, no mouse pos being calculated in there <0> yes it is <0> v! <1> but it doesnt use V <1> vPickRayOrig.x = m._41; <1> it uses only m <1> and m is just world*view <1> you agree? <0> just do the first stuff and get v
<0> discard the other stuff <1> i Got v <0> now, do you have the rotation and position of the camera? <1> yes <0> get the inverse of that <1> which is m <1> got it <0> call it cameraToWorld <0> ;) <1> Matrix camToWorld = matWorld * matView; <1> there <0> no <0> camToWorld = worldToCam.inverse(); <0> worldToCam = rotation and translation of camera <1> Matrix m = matView; <1> m.Invert(); <1> renamed m to camToWorld <0> Now theres two different ways of doing this <0> rayStart = Camera.position; rayDir = normalize( cameraToWorld * v - rayStart ); ( I think ) <0> rayStart = cameraToWorld * v; rayDir = camera.rotation.getZAxis(); <1> and where does mouse position come into that <0> v!!! <1> ah <1> i typed it out <1> i mean nm <1> which one? <0> ? <1> your 2nd line? <0> use whichever you like the most ;) <0> try both <1> both awkward <1> i dont have cam position or rotation seperate like that <1> you awkward so and so <1> ;P <1> cant multiply a matrix by a vector <1> f****** <0> why not? <1> no operator :( <1> hehe, ready for giving up <1> 2 hours now nearly <1> on picking... <0> so use a regular function? <1> like friggin what? <0> what matrix and vector code are you using? <1> D3DX <0> so you're telling med the C# version of D3DX doesnt have a Matrix4x4 * Vector3 transformation function? <1> yep <0> then you probably havent looked hard enough... <1> ErrorOperator '*' cannot be applied to operands of type 'Microsoft.DirectX.Matrix' and 'Microsoft.DirectX.Vector3'C:\Documents and Settings\Admin\My Documents\Visual Studio 2005\Projects\LevelEditor\LevelEditor\FrmMain.csLevelEditor <0> so you base all that on that error message? <0> have you bothered looking in the docs? <1> you mean the half written ones? <1> yes i have <2> yeah, what swx said <2> and allow me to add, newb <0> so write your own function? :P <1> vPickRayOrig = Vector3.Transform(v, camToWorld); <1> there <3> yo <3> since i got my blackberry <3> i wanted to learn wml
<1> returns a Vector3 though <3> so i give you <1> Vector4 i mean <3> http://wap.sleazysoft.com <3> for wireless devices <0> so ignore .w <1> cant the way im using operators all down my code <1> but <1> nope, doesnt work either <4> yoyo dog <4> w***w*** w***sup <1> om <1> it works <1> wtf did i just change <1> Rendering.device.Transform.World = Matrix.Identity; <1> when i draw the line <0> :P <1> but <1> the ray looks weird <1> yet its placing my ship correctly <1> directly under the mouse <1> the origin doesnt look like its directly on the mouse pointer <1> but its casting in the right direction <0> which one did you use? <1> what could cause that <0> the first or second? <1> ive done.. <0> or the original one? <1> Vector4 temp = Vector3.Transform(v, camToWorld); <1> then chopped off the w <1> i dont see how this can work <1> hehe <1> doesnt look its working properly <1> but the results are what i want <1> maybe i should just move on :P <0> :P <0> are you sure its working properly? <0> your naming seems to be wrong... <0> v is in camera space <0> nm <0> its correct <1> wanna see a screenie? <2> no <5> hehe <5> lol <6> anybody good with trig? <7> shouldnt you be <1> heh <1> how far with Trig <6> Anyone familiar with half-angle identities? <8> PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk Y <8> F|< G F|< G F|< G F|< G F|< G F|< G F|< G F|< <8> PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk YoU aLL! PhUCk Y <8> F|< G F|< G F|< G F|< G F|< G F|< G F|< G F|< <9> *cough* <9> why would you do that? <10> huh? <2> it was alaskaby <9> aren't you norwegian too? :) <10> yes <2> well true <2> busted <10> oki <9> welp <9> if you had a hand in the flood, u ****. <9> otherwise, no worries :) <11> pretty pointless flood at that <10> I didn't have anything to do with it but i knew it was coming. I know the whacko who did it. <11> so what does JEG_VIL_H do anyways <11> Ghaleon is a IRL gamedev ;D
Return to
#gamedev or Go to some related
logs:
#beginner #beginner #linuxhelp #3dsmax the.soprano s06e01 #photoshop #nhl #qmail #nhl #gentoo
|
|