Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Scania STAX - concept truck 2002 - Download  (Read 26103 times)

newS

  • Jr. Member
  • *
  • Posts: 16
Scania STAX - concept truck 2002 - Download
« on: February 28, 2013, 08:14:55 pm »

I've made this truck for Euro Truck Simulator, German Truck Simulator and Euro Truck Simulator 2 and now for Outerra:
see also here: http://www.trucksimsforum.de/viewtopic.php?f=235&t=15328

This is a high poly model (163.991 triangles)

http://www.scania.com/media/pressreleases/2002091016EN.aspx

*Edit:

I've finished a first version:

Download:
http://www.klemund.de/Outerra/files/Scania-STAX_by_newS_v1.0.rar

click on the image to enlarge:
« Last Edit: March 01, 2013, 09:39:34 am by newS »
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Re: Scania STAX - concept truck 2002
« Reply #1 on: February 28, 2013, 09:11:11 pm »

I am going to steal those rear tires off that truck and put them on the Jeep Wrangler.. My dream.
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

Bartolomeus

  • Sr. Member
  • ****
  • Posts: 288
    • VirtualTechArt Design
Re: Scania STAX - concept truck 2002
« Reply #2 on: March 01, 2013, 12:54:54 am »

Yes, the wheels are awesome! Great work on the Truck.

Marko

newS

  • Jr. Member
  • *
  • Posts: 16
Re: Scania STAX - concept truck 2002 - Download
« Reply #3 on: March 01, 2013, 09:40:14 am »

Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Re: Scania STAX - concept truck 2002 - Download
« Reply #4 on: March 01, 2013, 12:21:38 pm »

Looks good. A bit more texture and it will be great. I think outerra can handle a bit more detail than EuroTruck simulator. If you don't mind I spent some time with the physics. Tell me what you think.

Code: [Select]
var axle2coef=1.0;

//invoked only the first time the model is loaded, or upon reload
function init_chassis()
{
  var wheelparam = {
    radius: 0.49,
    width: 0.27,
    suspension_max: 0.17,
    suspension_min: -0.10,
    suspension_stiffness: 30.0,
    damping_compression: 0.06,
    damping_relaxation: 0.08,
    slip: 0.55,
    roll_influence: 0.1

  };
  this.add_wheel('wheel_f_l', wheelparam);
  this.add_wheel('wheel_f_r', wheelparam);
  this.add_wheel('wheel_b_l', wheelparam);
  this.add_wheel('wheel_b_r', wheelparam);
  this.add_wheel('wheel_b1_l', wheelparam);
  this.add_wheel('wheel_b1_r', wheelparam);
 
  //compute steering coefficient for the second axle
  var body = this.get_geomob(0);
  var a0 = body.get_joint_local_pos(body.get_joint('tire_l0')).y;
  var a1 = body.get_joint_local_pos(body.get_joint('tire_l1')).y;
  var a2 = body.get_joint_local_pos(body.get_joint('tire_l2')).y;
  var a3 = body.get_joint_local_pos(body.get_joint('tire_l3')).y;
  var m = 0.5*(a2+a3);
  axle2coef = (a1-m)/(a0-m);
 
  //sounds
  this.load_sound("diesel-engine-start.ogg");
  this.load_sound("diesel-engine-idle.ogg");
  this.add_sound_emitter("wheel_f_l");
 
  return {mass:8164, com:{z:1.0, y:0.8}};
}

//invoked for each new instance of the vehicle
function init_vehicle()
{
  this.set_fps_camera_pos({x:-0.53,y:1.2,z:2.4});
  this.snd = this.sound();
  this.snd.set_ref_distance(0,1.0);

  this.started = 0;
}

function engine(start)
{
  if(start) {
    this.started=1;
    this.snd.play(0, 0, false, false);
  }
}


const EF = 15000.0;
const BF = 7500.0;
const maxkmh = 90;
const forceloss = EF / (0.5*maxkmh + 2);


//invoked each frame to handle inputs and animate the model
function update_frame(dt, engine, brake, steering)
{
  var kmh = this.speed()*3.6;
 
  //reduce engine force with speed (hack)
  var redux = engine>=0 ? 0.1 : 0.6;
  var esign = engine<0 ? -1 : 1;
  engine = EF*Math.abs(engine);
  var force = (esign>0) == (kmh>=0)
        ? engine/(redux*Math.abs(kmh) + 1)
        : engine;
  force -= forceloss;
  force = Math.max(0.0, Math.min(force, engine));
  engine = esign*force;


  steering *= 0.8;
  this.steer(0, steering);
  this.steer(1, steering);
 
 
  if(this.started>1)
    this.wheel_force(0, engine);
    this.wheel_force(1, engine);
    this.wheel_force(2, engine);
    this.wheel_force(3, engine);
 
  brake *= BF;
  this.wheel_brake(-1, brake);
 
  this.animate_wheels();
 
  if(this.started==1 && !this.snd.is_playing(0)) {
    this.started=2;
    this.snd.play(0, 1, true, false);
  }
  else if(this.started==2) {
    var pitch = Math.abs(kmh)/20.0;
    var g = kmh>0 ? Math.floor(pitch) : 0;
    var f = pitch - g;
    f += 0.5*g;
    this.snd.set_pitch(0, 0.5*f + 1.0);
  }
}
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Scania STAX - concept truck 2002 - Download
« Reply #5 on: March 01, 2013, 01:37:27 pm »

Just a note for Outerra modelers:

It worth to spend extra minute and add a thumbnail icon to your model:
 
It's 64x36px JPEG image located in ...\Outerra\Anteworld\www\images\pkg\<username>\<model name>\<model name>.jpg


For example if the model is:
...\Outerra\Anteworld\packages\deathevor\Su-27\Su-27.pkg

Then the the thumbnail will be:
...\Outerra\Anteworld\www\images\pkg\deathevor\su-27.jpg

Just makes it look nicer:


Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Re: Scania STAX - concept truck 2002 - Download
« Reply #6 on: March 01, 2013, 01:40:27 pm »

 

BATTLE!
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

Juggernautz

  • Jr. Member
  • *
  • Posts: 48
  • newbie
Re: Scania STAX - concept truck 2002 - Download
« Reply #7 on: March 01, 2013, 02:35:27 pm »

Ah yes, the much vaunted Mid Wheel Drive configuration. :P
Logged

newS

  • Jr. Member
  • *
  • Posts: 16
Re: Scania STAX - concept truck 2002 - Download
« Reply #8 on: March 01, 2013, 03:46:41 pm »

thanks for this tip  :)



@ZeosPantera

thanks for the script. :)
« Last Edit: March 01, 2013, 04:22:14 pm by newS »
Logged

newS

  • Jr. Member
  • *
  • Posts: 16
Re: Scania STAX - concept truck 2002 - Download
« Reply #9 on: March 02, 2013, 04:43:36 pm »

I've made a little video:



Logged

Foxiol

  • Full Member
  • ***
  • Posts: 101
  • Gamer
Re: Scania STAX - concept truck 2002 - Download
« Reply #10 on: March 07, 2013, 06:12:40 pm »

Good work man. Keep models coming for the ones like me who can just enjoy them. (I mean, not doing them hehe)
Logged

Cristian

  • Newbie
  • Posts: 4
  • newbie
Re: Scania STAX - concept truck 2002 - Download
« Reply #11 on: May 03, 2013, 01:02:12 am »

I modified a little bit your .matlib file so now it shines. i hope that's not a problem with you.




Logged

newS

  • Jr. Member
  • *
  • Posts: 16
Re: Scania STAX - concept truck 2002 - Download
« Reply #12 on: May 03, 2013, 05:49:57 am »

cool
thanks :)
Logged

Atrax

  • Full Member
  • ***
  • Posts: 119
  • newbie
    • AtraxGaming Game Shop
Re: Scania STAX - concept truck 2002 - Download
« Reply #13 on: June 06, 2013, 06:02:36 pm »

Very awesome! :D Thanks for sharing! And make some more, or convert them for Outerra if you can =P