Rick Posted December 19, 2009 Author Share Posted December 19, 2009 hmm, I recreated a new scene and now it works. I was using an existing scene the entire time and I wonder if something got corrupt. Maybe I'll compare the 2 sbx files to see if I can see anything wrong. Quote Link to comment Share on other sites More sharing options...
Rick Posted December 19, 2009 Author Share Posted December 19, 2009 Can't find any difference between the 2. This doesn't make any sense, but I guess I'll assume going forward it's all good. *sigh* Quote Link to comment Share on other sites More sharing options...
Rick Posted December 20, 2009 Author Share Posted December 20, 2009 I think there is still a bug with this. It was working fine, but then I manipulated the terrain and it stopped working. Mackle, could you test out your code with manipulating the terrain? What I did exactly was create a small mount, then run the game a few times. That works. Then flatten the terrain and try it again to see if the terrain still collides with LinePick. Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 20, 2009 Share Posted December 20, 2009 I think there is still a bug with this. It was working fine, but then I manipulated the terrain and it stopped working. Mackle, could you test out your code with manipulating the terrain? What I did exactly was create a small mount, then run the game a few times. That works. Then flatten the terrain and try it again to see if the terrain still collides with LinePick. ?? why would it return the terrain on a linepick if the the terrain was flattened? if there is no actual terrain between the camera position and the cube position then it won't return a terrain... or maybe i am not understanding what exactly you are trying to get me to do... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
TylerH Posted December 20, 2009 Share Posted December 20, 2009 Is it possible the LinePick doesn't work with the terrain because it is setup via the vertex shader? I mean, it is basically a high-resolution ish plane with a displacement map (height map). Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Rick Posted December 20, 2009 Author Share Posted December 20, 2009 ?? why would it return the terrain on a linepick if the the terrain was flattened? if there is no actual terrain between the camera position and the cube position then it won't return a terrain... or maybe i am not understanding what exactly you are trying to get me to do... My camera is able to rotate below the terrain. Quote Link to comment Share on other sites More sharing options...
Rick Posted December 20, 2009 Author Share Posted December 20, 2009 Is it possible the LinePick doesn't work with the terrain because it is setup via the vertex shader? I mean, it is basically a high-resolution ish plane with a displacement map (height map). It did work at one point on the terrain, but after manipulating the terrain it seemed to stop working. Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 20, 2009 Share Posted December 20, 2009 My camera is able to rotate below the terrain. seems like you would need to prevent that from happening... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Rick Posted December 20, 2009 Author Share Posted December 20, 2009 lol, yeah that's what the LinePick should do. Ah, nevermind. My player pivot was "inside" the terrain so it never was really not visible. I had to move the player pivot up slightly. My bad. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.