Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

169 Excellent

About tipforeveryone

  • Rank
    Advanced Member
  • Birthday 04/11/1989

Profile Information

  • Gender
  • Location
    Hanoi, Vietnam
  • Interests
    3D Game making, Drawing, Playing games

Recent Profile Visitors

3,183 profile views
  1. tipforeveryone

    Shine on materials?

    you can add a specular map to your material, that will look better than just reducing specular color. Use photoshop to make that specular map from diffuse by black and white command, then adjust contrast.
  2. You can get the length of animation by using entity:GetAnimationLength() Then how to get the current frame of an animation, I want to play a sound in the middle of animation so that I need that. Please show me Thanks
  3. tipforeveryone

    Camera FOV vs Camera Zoom

    I dont feel any diffirence between these functions in final resuilt when applying to a camera. So there is any way to know when to use Zoom or FOV ?
  4. Maybe you should right-click on the viewport then check out RenderMode
  5. I have this problem on 4.6 sometimes, my suggestion is using stable 4.5 instead
  6. tipforeveryone

    Concern about camera?

    I use this for my weapon blocking (by wall) system, I think it will work with your camera You can calculate the distance between the pickInfo.position and the entity which you put start of Pick (Beam Point 1) then use the maximum range of your camera to player (self.defaultCameraRange) minus that, you get the distance between MaxRange to pickInfo.position (called self.collisionMinusRange) Because camera point its Z axis to player, so that you can use entity:Move(0,0,self.collisionMinusRange) In the meantime, Use camera:SetPosition(self.beamPoint2:GetPosition(true)) to keep you camera at the maxRange when not collided any obstacle Hope you can understand what I am trying to explain
  7. tipforeveryone

    Health bar FOV check

    You can modify the code and make it work I think, because this function was used in my hand-made PlayerScript then I am not sure it will work on default AI / Player scripts of leadwerks.
  8. tipforeveryone

    Health bar FOV check

    target in my function should be an entity, dont try it with Vec3() value
  9. tipforeveryone

    Health bar FOV check

    I have a small function which can help you to define if an entity is inside a cone view of another entity. function CheckConeView(axis,entity,target,angle) local z,u if axis == "x" then z = Transform:Point(Vec3(1,0,0),entity,nil) elseif axis == "y" then z = Transform:Point(Vec3(0,1,0),entity,nil) elseif axis == "z" then z = Transform:Point(Vec3(0,0,1),entity,nil) end u = Transform:Point(target:GetPosition(true),nil,entity) z = Transform:Point(z,nil,entity) local targetAngle = Math:ACos(u:Dot(z)/(u:Length()*z:Length())) if targetAngle < angle/2 then return true else return false end end This should be made as global function, then you can use this as below function Script:PostRender() if CheckConeView("z",self.yourPlayerCamera,self.target,90) and self.targetInRange == true then --display health bar code end end hope this make your idea possible
  10. Anyone has an example of this shader usage ? I mean a collection of All texture maps which can combine together on an object. which texture slot should I put those textures into ? By the way, Is there any tutorial which shows me how to create parallax / roughness for leadwerks
  11. tipforeveryone

    How to control ssr shader

    Please @Josh can you make ssr depens on specular map ?
  12. tipforeveryone

    Sharing Content

    Why dont you use all of the methods :"D I have an unique FPSPlayer Control which was built from scratch, kind of useful then I share it via my blog on this site.
  13. tipforeveryone

    I did not find entity:SetDamping in documentation

    Thank you @macklebee this is so clear ! I wonder why there are many functions like this not in document, maybe they are unofficial but still being used in default code somewhere, making everybody confused
  14. tipforeveryone

    How to control ssr shader

    Nouse. they are still shiny like hell : ))
  15. It is sad that noone can give me any answer on my posted topics in Technical Assistance :)

    1. martyj


      That's because only one person knows what it does, and that person is very busy with LE5/Turbo

    2. tipforeveryone


      This answer satisfied me hehe

    3. macklebee


      See post.