Jump to content

Slastraf

Members
  • Posts

    710
  • Joined

  • Last visited

Everything posted by Slastraf

  1. Hm, I am not sure how to do that. If I wanted to make the water look like the screenshot of your workshop Item , what exactly should I do ? Also, late reply bc Im working on some 3D models. It should still be in the workshop, try advanced searching by selecting " all items" in the type selection in workshop browser
  2. As you can see, when going on a Distance, there are artifacts on the reflection cant be seen. However, it instantly shows these , when you get on a some particular near distance. Updated Drivers, gtx so it should work
  3. In the top half of the picture you can see a Water material "inexpensive water" from the workshop, in the lower half you can see the built in Water mode. I have the problem that the reflection in the water mode looks very strange, same as the Water material. How to disable the reflections or make thw Water material the right way ? with the environment probes ?
  4. I thinl that would conflict with the character shape, you would need to add some extra code
  5. I have scaled and remodelled the model to make it look good.http://imgur.com/a/Aofyp
  6. How do you properly render a weapon so that it doesnt clip or go trough walls, I have remembered from some other thread that you make a new world, only render the fpsweapon inside of it like this: and then apply all the rendered pixels to the actual camera, in the original world, so it looks something like this: But how do you make it properly, that the shaders and lighthnings are visible on the weapon / melee, in Leadwerks Lua ?
  7. Havent got any bigger problems with my old sapphire amd 7870 , currently I have the gtx 970 and never had this error. It probably makes less problems the newer the hardware is.
  8. probably has not got anything to do with leadwerks itself, rather steam servers
  9. just set the character angle to 90 or 180 degrees same as in the crawler prefab
  10. There was a trigger around the object that needs to be triggered. Only saw it when I watched th evideo myself ;S
  11. I have been hanging on this bug for some time, but now I found it. Basically its when you pick a box that is originally imported as a child from an fbx object, it wont be pickable. I have made a short video on this: https://youtu.be/Pn5is60p8rI
  12. if window:MouseHit(1) then local pickinfo= PickInfo() local p1 = Window:GetCurrent():GetMousePosition() --local box = Model:Box() if (self.camera:Pick(p1.x,p1.y,pickinfo,0.5,true)) then if pickinfo.entity then if pickinfo.entity:GetKeyValue("Button")~="" then --box:SetScale(0.2,0.2,0.2) --box:SetPosition(pickinfo.entity:GetPosition(true),true) System:Print(tostring(pickinfo.entity:GetKeyValue("Button"))) end end end end the above is the camera pick , I cant find anything . The camera pick should Print the Key value of the box in the script below. However, it prints nothing and I dont know why. Script.localKeyValue = -1--string " Key Value Integer" function Script:Start() self.entity:SetKeyValue("Button",self.localKeyValue) end
  13. In the UpdateFootSteps method of the fpsplayer, it plays a sound with some time in between, maybe you should understand this method and write a similar one , only with a much smaller repeatdelay
  14. If I think about it, 9 keys arent that much just to set a key value for it
  15. There is a flicker script in the leadwerks folders ?alternatively you can set the color to black and back to white again, when its black no light will appear
  16. I basically just want to Camera Pick a Button , and when the Button has the number 1 as name, this value is typed in the keypad
  17. If I sometimes work at line 494 in my script and want to create a new variable, i need to scroll to the top and then make a new one , then try to find the line 494 again, remember what I actually called the value (sometimes need to scroll up again ,ha) . I think one will know what I mean. What would be good Is a tool at the side of the script editor where you it generates values by selecting the data type, what its called and so on. Just a smaller change that I would add to all the changes that we await for the script editor.
  18. Maybe setting the ambient light colour in any script could fix this, even if its the exact same as in the editor. Also if one could get the graphics card name and if its amd or nvidia set the colour a little darker in the script, so it looks the same for every card, you would need to experiment with both cards ,then.
  19. When I got back to it i noticed this " calculation " is pure nosense, ha Am I bad in math.
  20. I have decided to scale the font in percentage compared to the default size where the numbers are lining up. it looks like this now : (it is the fastes way i could think of so its not optimized) local windowres=Window:GetCurrent():GetWidth() local optimFontSize= 65 local difference=0 if windowres~=1920 then --then it calculates optimal font resolution System:Print(tostring("Calculating font optimized for Screen Resolution : "..windowres)) if windowres < 1920 then difference = 1920-windowres else difference = windowres -1920 end if difference~=0 then optimFontSize = (100*difference)/1920 System:Print(tostring("Font is being Scaled (in %) : "..optimFontSize)) --optimFontSize is the percentage to add or decrease the font size end end
  21. I want to make a password pad to put in some numbers. The attached picture is what it looks now, at a resolution of 1080 p. (for 1920 p the green text fits in properly) But as you can see the text is not scaled with the window, so how do I make it right? I can get the top left and bottom right of the screen as x,y vectors, but how do i calculate that the text always is inside of it ?
  22. Old thread but it does work in leadwerks 4 , I will use this in my project
  23. Oh men you saved my day After coming back frp, java leadwerks seems much rougher
  24. http://pastebin.com/q3g4J3Ky the above is the modified push button script. In the fpsplayer i have a function that calls the getpospiv() function from the pushbutton. When I press e on the button inside the game and try to get the pospiv, the self is a nil value error appears at the line 37. on the script. the target is a pivot. What can I do ?
×
×
  • Create New...