Jump to content

Recommended Posts

Posted

Hi,

 

has someone a solution for an xray outliner - displays the Player moving behind walls and so on?

I've seen some Video with older Leadwerks Versions but no idear how to make this...

 

cu

Volker

Posted

If you want a quick solution for displaying charcters behind walls just raycast them from the camera

 

something like this:. (will make it red and transparent and seen thorugh walls)

 


if camerapick then

material:SetDepthTestMode(true)

material:SetBlendMode(Blend.Solid)

material:SetColor(1,1,1,1)

material:SetSortMode(false)

else

material:SetDepthTestMode(false)

material:SetBlendMode(Blend.Alpha)

material:SetColor(1,0,0,0.5)

material:SetSortMode(true)

end

  • Upvote 3

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

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.

×
×
  • Create New...