Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by YouGroove

  1. It works, thank you for your help Shadmar.
  2. I deleted the Cube brush, and maked a new one from menu and not copying some cube, and there is no more collision problem. The thread can be closed.
  3. FPS Player script usage with 8 parameters : self.entity:SetInput(rotY, self.playerMovement.z, self.playerMovement.x, jump , false, 1.0, 0.5, true) The documentation with 6 parameters explained : Entity::SetInput Syntax void SetInput(float angle, float move, float strafe=0, float jump=0, bool crouch=false, float maxaccel=1) Does someone knows what are the other two variables ?
  4. YouGroove

    The Borrower

    I had to read the game description to understand how to play. But this is a good game start. Now the bad things : - getting the fire power should not shut down the torch flame , this looks weird as if you release the power the flame start again in the torch - The flashLight system should be always on , at least a minimal light like the player had some lightening power making light around him , because it is too dark to move around without it. - You need icons when some flame power can be grabbed or some object can be grabbed otherwise it is hard to understand some interaction is possible. - I didn't know what to do to open the door i could only grab the flame power. Well perhaps this is what is called a puzzle game The game is too slow on laptop, how to change the resolution in game ? No Help menu in game ? Good luck.
  5. Using the character controller and walking is ok, but jumping from a height the character sink a little on the floor, and readjust later if it keeps walking around. The code is standard self.entity:SetInput(rotY, self.playerMovement.z, self.playerMovement.x, 0, false, 0.8) EDIT : This is BSP imprecision and i use a BSP in some non common way, as i have a very big cube as BSP for the floor. Just walking around when going further the character starts to sink on the floor even without jumping.
  6. I had the same Sci Fi game prototype and on my laptop i had the main character using LE3 character controller becoming very unresponsive with long deceleration and too slow accelerations when using faster movement speed. I thaught it was the level complexity or the laptop , because it runs just good on a powerfull machine. I made my own character controller, with it's own deceleration system and surprise there is no lagging physics and quick custom deceleration , unlike LE3 default character controller on the same map level in my laptop 1) I use a 3d detailled sphere model as the moving 3D object , so there is no friction problems 2) It works and physics stay constant with PhysicsUpdate , no deceleration lag or slow accelerations using my own deceleration system 3) Using higher movement speed, there is no collision problems or pass through and there is no lagging or long deceleration problems or slow acceleration So my question is should LE3 character controller need to be re worked for other people that can't code their own ? Or should it be added some other character controller for faster character games movement ? For people interested here is the work in progress code , it is not final as deceleration must be tweaked to be proportionnal to character speed. Speed directions and axe rotation are really specific to direction keys for some game specific gameplay, so it is not some totally general usage controller. Also it needs a really detailled and smooth sphere model to work good. This is also non optimized code but this gives you some hints on how it works. Script.character = "" --entity Script.smoothness = 5000--int --Script.camera = "" --entity function Script:Start() self.playerMovement = Vec3(0,0,0) self.moveSpeed = 30 self.speedAutoDirection = 0.05 self.entity:SetFriction(0.5,0.5) self.maxSpeed = 25 self.angleDir = 0 self.dirPrevFrame = self.entity:GetPosition(true) self.posFrame = self.entity:GetPosition(true) self.deltaPosTime = Time:Millisecs() self.prevRot = Vec3(0,0,0) self.direction = Vec3(0,0,0) end function Script:UpdateWorld() self.posFrame = self.entity:GetPosition(true) dirSmooth = Vec3(0,0,0) --dirSmooth.x = Math:Curve(self.posFrame.x, self.dirPrevFrame.x,30) newCharPos = Vec3(0,0,0) dirSmooth.x = (self.posFrame.x - self.dirPrevFrame.x) / 2 dirSmooth.z = (self.posFrame.z - self.dirPrevFrame.z) / 2 newCharPos.z = Math:Curve(self.dirPrevFrame.z,self.posFrame.z,self.smoothness/Time:GetSpeed()) newCharPos.x = Math:Curve(self.dirPrevFrame.x,self.posFrame.x,self.smoothness/Time:GetSpeed()) newCharPos.y = Math:Curve(self.dirPrevFrame.y,self.posFrame.y,self.smoothness/Time:GetSpeed()) self.character:SetPosition(newCharPos,true) local angle = -Math:ATan2(dirSmooth.z,-dirSmooth.x) angle3 = Vec3(0,angle-90,0) self.character:SetRotation(angle3,true) end function Script:UpdatePhysics() rotation = self.entity:GetRotation(true) self.posFrame = self.entity:GetPosition(true) if Time:Millisecs()- self.deltaPosTime > 300 then self.deltaPosTime = Time:Millisecs() self.dirPrevFrame = self.posFrame end --self.direction = ( self.posFrame - self.dirPrevFrame ):Normalize() speedX = ((App.window:KeyDown(Key.D) and 1 or 0) - (App.window:KeyDown(Key.A)and 1 or 0)) speedY = ((App.window:KeyDown(Key.Z) and 1 or 0) - (App.window:KeyDown(Key.W)and 1 or 0)) self.playerMovement.x = speedX * Time:GetSpeed() * self.moveSpeed self.playerMovement.z = speedY * Time:GetSpeed() * self.moveSpeed vect = Vec3(speedX,0,speedY):Normalize() vel = self.entity:GetVelocity(true) if vel.x > self.maxSpeed and speedX == 1 then vel.x = self.maxSpeed /3 self.playerMovement.x = 0 end if vel.x < -self.maxSpeed and speedX == -1 then vel.x = -self.maxSpeed /3 self.playerMovement.x = 0 end if vel.z > self.maxSpeed then vel.z = self.maxSpeed /3 self.playerMovement.z = 0 end if vel.z < -self.maxSpeed then vel.z = -self.maxSpeed /3 self.playerMovement.z = 0 end if vel.x > self.speedAutoDirection and speedX == 0 then self.playerMovement.x = -self.speedAutoDirection * Time:GetSpeed() * self.moveSpeed *3 end if vel.x < self.speedAutoDirection and speedX == 0 then self.playerMovement.x = self.speedAutoDirection * Time:GetSpeed() * self.moveSpeed *3 end if vel.z > self.speedAutoDirection and speedY == 0 then self.playerMovement.z = -self.speedAutoDirection * Time:GetSpeed() * self.moveSpeed *3 end if vel.z < self.speedAutoDirection and speedY == 0 then self.playerMovement.z = self.speedAutoDirection * Time:GetSpeed() * self.moveSpeed *3 end --self.entity:AddForce(direction * Time:GetSpeed() * self.moveSpeed,true) self.entity:AddForce(self.playerMovement,true) --self.entity:AddForce( direction * Time:GetSpeed() * self.moveSpeed , true) if speedX == 0 and speedY ==0 then --self.entity:AddForce(vel,true) vel = vel*-1 *15 self.entity:AddForce(vel,true) end end
  7. There is only Max file source, but we are not all 3DS Max users. Could it be possible to provide the generic character as obj format please ? This help having it on the modeler as reference for what we build.
  8. Big environments to climb or jump from is great.
  9. I need to scale UV of each buildings depending on it's size in some uniform way. It is some object size parameter for objects in shader code ?
  10. Going more modular to maximum flexibility :
  11. Another modular work, the key to fast level making,
  12. When we delete a model we replace or no more use, LE3 should delete physic and meta files perhaps. It is better to keep a project source folders not overgrowing too fast.
  13. It is a problem with camera coordinates projection, ad we expect reflection on the whole surface. Just do like me and copy and change some developper material to test it.
  14. 1) I create a material and choose a shader and textures. 2) i create a new material and choose the same shader , it auto assign the same textures as the previous material And we can reset the textures as the slots are empty and no available button to remove the texture
  15. Another problem using a simple texture and normal map it makes artifacts depending on camera distance. I am not a shader coder, i will just wait for some tested working version.
  16. I recalculated, but they still look bad and moving the camera the reflections still changes reflections.
  17. I applied your changes Shadmar, but the reflection is still depending on camera position Also is the reflection half mixed with diffuse map or can we control in some way how much it reflects ?
  18. I changed the last line, still the effect is very strange ad the reflections depends on the camera height or movement it makes on part reflective and another part not reflective. Is there something specific i missed ?
  19. The normal map deos not display when a model has some part on shadows, even with ambient light.
  20. I put one on texture 5 slot , but nothing happens. I was seeking some reflective material effect for static models not animated. LE3 is not able to have buidling windows reflective like this simple shader ? How can we do ?
  21. YouGroove

    Character Sketches

    For big heads only lol
  22. Actually LE3 is unusable with models that are tiled to some unit and snap together. For example i kept Blender default unit, but in LE3 the snapping has always two units above or under. We should be able to specify the lenght of the snapping value at any time to be able to position wit LE3 snapping any tiled models.
  23. I am seeking a simple full reflection shader , just reflecting a skybox texture. Does anyone has that working in LE3 with last version ?
  24. I find that LE3 official shader "diffuse+normal+specular+env" just don't produce no environment effect at all.
  • Create New...