Jump to content

LinePick


Rick
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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...

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

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).

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

?? 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...