Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: 1 ... 7 8 [9] 10

Author Topic: Ural 4320-31  (Read 76437 times)

Jagerbomber

  • Hero Member
  • *****
  • Posts: 1535
Re: Ural 4320-31
« Reply #120 on: January 29, 2015, 12:43:54 pm »

Milk Brigade, go!
Logged
"Perhaps this speaks to some larger trend within society today...  A prevailing desire on the part of indie developers to recreate the entire world into one where you can charge more than $15 for your game design degree coursework." - Yahtzee ;) :P

aWac9

  • Hero Member
  • *****
  • Posts: 1766
  • newbie
Re: Ural 4320-31
« Reply #121 on: January 29, 2015, 12:59:06 pm »

Bravo !!!
well-done
Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #122 on: January 30, 2015, 11:54:53 am »

  I speculated out a script for the differential and its lock. It looks a little bit rough, but ill like to hear some of your thoughts about it. You disable/enable it by pressing the "AUX3" key for now (and ya can see if the lock is engaged on the front panel).

  There is also the "FaWDiffrotL" variable - wheels shouldn't loose as much force trough different speeds at a differential at turning, but i added this like that cause it could be a possible way to define the loss of the force between them if a different ground type is there (like ice under one of the axles wheels ... off course, trough some comparison method whyte some "ideal" wheel)

  If the diff-lock is on, its basicly like the orginal version (just changed the speed of wheels turning, so they have the same speed on the axle as they should). So try it out and let me know what ya think, or if you find some bigger issues.

download (you have to have the latest Ural version (0.3) already installed cause it swaps just the .js file) :

https://drive.google.com/file/d/0B3ZscF0ox2AGWWpfVEtXcU9QNEE/view?usp=sharing

Code looks like (if someone wants to see) :

Code: [Select]

     // Front axile

    var wfl =  this.wheel(0);
    var heiwfl = wfl.caxle;
    var wflrot = wfl.rotation;

    var wfr =  this.wheel(1);
    var heiwfr = wfr.caxle;
    var wfrrot = wfr.rotation;
 
     // Middle axile

    var wml =  this.wheel(2);
    var heiwml = wml.caxle;
    var wmlrot = wml.rotation;

    var wmr =  this.wheel(3);
    var heiwmr = wmr.caxle;
    var wmrrot = wmr.rotation;
 
       // Back axile

    var wbl =  this.wheel(4);
    var heiwbl = wbl.caxle;
    var wblrot = wbl.rotation;

    var wbr =  this.wheel(5);
    var heiwbr = wbr.caxle;
    var wbrrot = wbr.rotation;

       // for wheel-rpm based stuff

  var wflrpm = wfl.rpm;
  var wfrrpm = wfr.rpm;
       
  var wmlrpm = wml.rpm;
  var wmrrpm = wmr.rpm;
       
  var wblrpm = wbl.rpm;
  var wbrrpm = wbr.rpm;
 
  var rodrpm = ( dt * ( wflrpm + wfrrpm + wmlrpm + wmrrpm + wblrpm + wbrrpm / 6 ) );
 
 
     // -- Script for simulating axle diferentials and diferential lock -- //

   var FaWDiffrotL = ( wflrpm / wfrrpm );
   var MaWDiffrotL = ( wmlrpm / wmrrpm );
   var BaWDiffrotL = ( wblrpm / wbrrpm );
 
   var FaWDiffrotR = ( wfrrpm / wflrpm );
   var MaWDiffrotR = ( wmrrpm / wmlrpm );
   var BaWDiffrotR = ( wbrrpm / wblrpm );
 
 
 if ( DiffLock == false ) {
   
    this.geom.rotate_joint_orig(this.gearLever3, 0, {x:1,y:0,z:0});
   
    this.geom.set_mesh_visible_id(this.illumfp013_id, false);
 
   if ( heiwfl < 0.2599 || heiwfr < 0.2599 ) {
      var FinForceF = ( force );
   }
   else { var FinForceF = 0; } // If a wheel gets up on an axle, it gets all the force as it is the least resistance based
 
   if ( heiwml < 0.2599 || heiwmr < 0.2599 ) {
      var FinForceM = ( force );
      var StateMAx = 0; // Both Middle and Back axle are on a single rod, so when one rod "looses force" it is transfered to the other one
   }
   else {
         var FinForceM = 0;
         var StateMAx = 1;
   }
 
   if ( heiwbl < 0.2599 || heiwbr < 0.2599 ) {
      var FinForceB = ( force );
      var StateBAx = 0;
   }
   else {
        var FinForceB = 0;
        var StateBAx = 1;
        }
 
    if ( heiwfl < 0.2599 ) {
    var wflrott = wflrot;
    } else { wflrott = ( 2 * rodrpm ); }
   
    if ( heiwfr < 0.2599 ) {
    var wfrrott = wfrrot;
    } else { wfrrott = ( 2 * rodrpm ); }
 
    if ( heiwml < 0.2599 ) {
    var wmlrott = wmlrot;
    } else { wmlrott = ( 2 * rodrpm ); }
   
    if ( heiwmr < 0.2599 ) {
    var wmrrott = wmrrot;
    } else { wmrrott = ( 2 * rodrpm ); }
   
    if ( heiwbl < 0.2599 ) {
    var wblrott = wblrot;
    } else { wblrott = ( 2 * rodrpm ); }
   
    if ( heiwbr < 0.2599 ) {
    var wbrrott = wbrrot;
    } else { wbrrott = ( 2 * rodrpm ); }
   
 }
 
 if ( DiffLock == true ) {
   
    this.geom.rotate_joint_orig(this.gearLever3, 0.5, {x:-1,y:0,z:0});
     
    this.geom.set_mesh_visible_id(this.illumfp013_id, true);
   
      FinForceF = ( force );
      FinForceM = ( force );
      FinForceB = ( force );
   
    FaWDiffrotL = 1;
    MaWDiffrotL = 1;
    BaWDiffrotL = 1;
 
    FaWDiffrotR = 1;
    MaWDiffrotR = 1;
    BaWDiffrotR = 1;
   
   StateMAx = 0;
   StateMBx = 0;
   
    wflrott = ( ( wflrot + wfrrot ) / 2 );
    wfrrott = ( ( wflrot + wfrrot ) / 2 );
    wmlrott = ( ( wmlrot + wmrrot ) / 2 );
    wmrrott = ( ( wmlrot + wmrrot ) / 2 );
    wblrott = ( ( wblrot + wbrrot ) / 2 );
    wbrrott = ( ( wblrot + wbrrot ) / 2 );
   
 }

 
   // -- End of script for simulating axle diferentials and diferential lock -- //



...



    this.wheel_force(0, ( FinForceF * FaWDiffrotL ) );
    this.wheel_force(1, ( FinForceF * FaWDiffrotR ) );
    this.wheel_force(2, ( FinForceM * MaWDiffrotL + ( StateBAx * FinForceM ) ) );
    this.wheel_force(3, ( FinForceM * MaWDiffrotR + ( StateBAx * FinForceM ) ) );
    this.wheel_force(4, ( FinForceB * BaWDiffrotL + ( StateMAx * FinForceB ) ) );
    this.wheel_force(5, ( FinForceB * BaWDiffrotR + ( StateMAx * FinForceB ) ) );


Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

Cristian

  • Newbie
  • Posts: 4
  • newbie
Re: Ural 4320-31
« Reply #123 on: February 01, 2015, 02:09:50 am »

I haven't played Outerra for a long time and now I downloaded the Ural but I can't get it to move, the engine starts and no matter which key I press it doesn't want to move
Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #124 on: February 01, 2015, 03:44:38 am »

I haven't played Outerra for a long time and now I downloaded the Ural but I can't get it to move, the engine starts and no matter which key I press it doesn't want to move
... its on manual transmission and i added the need for pressing the clutch to shift the gears. Clutch is on "AUX2" key-bind, moving gears up and down is on "Shift UP/DOWN" key-binds, but if ya want the automatic transmission, press "AUX1" ... still, in both to brake, you still have to hold the clutch too.
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #125 on: February 01, 2015, 05:14:11 am »

Hey Cameni !
 
 ... im trying to get my turning lights working and i got a little thought. There is that "lights_off " method, could there be an method, where you can select one of the light-sources to turn off ?

My code looks like :

Code: [Select]
 
 if ( time.getMilliseconds() < 500 ) {
     lightblinker = 1;
    }
 else {
       lightblinker = 0;
      }
     
 if ( this.automaticTransmission == true ) {
 
   if (this.started == true) {
     
     if    ( steerAngle < -1 ) {
       
         if ( lightblinker == 1 ) {
           this.geom.set_mesh_visible_id(this.slightr_id, false);
             this.geom.set_mesh_visible_id(this.LONAll13_id, true);
         }
       
         this.light(8, lightblinker > 0);
         this.light(10, lightblinker > 0);
     } 
     
     else  {
           this.geom.set_mesh_visible_id(this.slightr_id, true);
             this.geom.set_mesh_visible_id(this.LONAll13_id, false);
       
           }
   
     if ( steerAngle > 1 ) {
       
         if ( lightblinker == 1 ) {
           this.geom.set_mesh_visible_id(this.slightl_id, false);
             this.geom.set_mesh_visible_id(this.LONAll12_id, true);
         }     
       
         this.light(7, lightblinker > 0);
         this.light(9, lightblinker > 0);
     }
     
     else  {
           this.geom.set_mesh_visible_id(this.slightl_id, true);
             this.geom.set_mesh_visible_id(this.LONAll12_id, false);
       
           }
 }       
}
     

 ... thing is, when i get the steer-angle back to zero, while lightblinker being 1 the light stays on, (from that same reason i have those hiding-scripts for the bulbs in the "else" argument right after). So a selective turn-off script would be handy for me.
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6696
  • No sense of urgency.
    • outerra.com
Re: Ural 4320-31
« Reply #126 on: February 01, 2015, 05:46:40 am »

Not sure I follow - there's light(id, false) method that selectively turns off lights, and you are using it ...
Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #127 on: February 01, 2015, 08:20:47 am »

 ... i figured it out trough applying an additional variable ... i meant only, that there could be a script just for turning on and just for turning off the selected light, but i could handle it an else way, so dont mind it.
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #128 on: February 01, 2015, 11:07:01 am »

ALL PEOPLE ---- i added lights to the ural - check last download post !

P.S.: Differential included, dont forget the "AUX3" button ...
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

aWac9

  • Hero Member
  • *****
  • Posts: 1766
  • newbie
Re: Ural 4320-31
« Reply #129 on: March 09, 2015, 05:49:53 pm »

I added mipmaps and lost control of the steering wheel ... do not understand?
I'll wait for your update.
Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #130 on: March 09, 2015, 06:35:51 pm »

Damned ... sorry people, forgot to upload the fixed stuff ... ill do it ASAP ...

EDIT : --- uploadet at latest download post. If ya find some texture, that still isnt right, or has some UV-layout lines, let me know !
« Last Edit: March 09, 2015, 08:54:39 pm by PytonPago »
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #131 on: June 20, 2015, 04:28:43 am »

Sorry M7, still UV-ying it. But its not far from finishing anymore ...



 Wheels are done, just need to copy-paste-swap them for the UVd one, else, its just the drive-shafts, leaf-springs, the engine-filters and lights (both glass and polymer case-parts). Then ill finally give ya the files to play whyte.
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: Ural 4320-31
« Reply #132 on: June 20, 2015, 12:21:43 pm »

Well im waiting myself on  software update from quixel. Atm it works really well when using normals from a high poly baked to low models but not so well when dealing with models that dont have normals map. I could still make texture without it but its really hard to recreate the same edge wear across multiple UV.
With quixel sofware, you  can create presets and apply the same material with edge wear to multiple UV which will make things a lot simpler for the Ural and other vehicles/weapons
I've complained on their forum and they say they will have it fixed in the next update. The problem is who knows when that next update will come as it's supposed to be a major update.
Logged

PytonPago

  • Hero Member
  • *****
  • Posts: 2266
  • It´s way too complex, dont let me try to explain !
Re: Ural 4320-31
« Reply #133 on: June 20, 2015, 12:42:35 pm »

... next update will come as it's supposed to be a major update.

 ... hope, it wont be buggy then ...
Logged
We are still undeveloped as long as we don´t realize, that all our science is still descriptive, and than beyond that description lies a whole new world we just haven´t even started to fully understand.

HiFlyer

  • Hero Member
  • *****
  • Posts: 1779
  • newbie
Re: Ural 4320-31
« Reply #134 on: June 20, 2015, 01:11:39 pm »

... next update will come as it's supposed to be a major update.

 ... hope, it wont be buggy then ...

All major updates, everywhere, are buggy!  =D
Logged
Spex: Intel Core i7 6700K @ 4.6GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ASUS STRIX GeForce GTX 1080 / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / Windows 10 Pro
Pages: 1 ... 7 8 [9] 10