Jump to content

ThePhoenix

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by ThePhoenix

  1. Is there a way to edit the script of a camera in Miscellaneous objects (like a pivot), i can attach a script but it doesnt create the camera so i can't set the multisample to 2 or instead of using self.camera can i use a global function to set the multisample in a object camera?

  2. Just discovered that changing the BallPlayer.lua in the marble game function Scrit:Start() to

     

    function Script:Start()

    self.camera = Camera:Create()

    self.startposition = self.entity:GetPosition(true)

    self.camera:SetMultisampleMode((System:GetProperty("multisample","2")))

    self.font = Font:Load("Fonts/Ranchers-Regular.ttf",32)

    if self.font==nil then

    local context = Context:GetCurrent()

    self.font = context:GetFont()

    end

    self:Respawn()

    end

     

     

    will fix the problem too. So i can make games that arent FPS.

  3. Hi! im working on a project which need the user to pickup small objects on a table, like keys, cards etc. Is there a way to change the range of selection for it to be smaller? Cause even if the little hand is pointing at an object it might picked up another object thats closer or besides it.

     

     

    (line: 450ish in FPSPlayer, and the the icon is 490ish)

    local p0 = self.camera:GetPosition(true)

    local p1 = Transform:Point(0,0,self.useDistance,self.camera,nil)

    if self.entity.world:Pick(p0,p1, pickInfo, 1, true) then

     

    tried changing the two zeros in the Transform:Point, but what it does is only moving the object selection range on the x,z axis and keeping the same range. so i can select the object when the middle of the window is more on the left or right.

     

    and another question : at the end of a level before loading the new map i would like to fadeout to a DrawRec or Image. I know how to put it full on but is there a way to fade in/out?

     

    Thanks guys!

  4. it works for Fps camera, but if i try a camera that is not the one in FPSPlayer it doesnt work. Water doesnt show up properly too and ive made a SkyBox by putting a .tex in texture mode cubemap and the problem comes back on the texture within the texture editor but it appears fine in the map.

  5. Nexerade <3 Tianshee <3 TWE666q on steam found a solution guys :

    Ok I did it.

     

    Go to

    -Script Editor

    --Player

    ---FPSPlayer.lua

    in line 153 self.camera:SetMultisampleMode((System:GetProperty("multisample"' date='"1")))

     

    change 1 to 2.

     

    This will make antialiasing 2x when player spawned.

     

    This fixed problem for me on R9 380 4 GB [/quote']

×
×
  • Create New...