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] 2

Author Topic: Jeep Wrangler 1989  (Read 13907 times)

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Jeep Wrangler 1989
« on: February 20, 2013, 12:18:58 am »

Meet, Jeep Wrangler 1989. Great car for traveling on the road!
Please kindly write about all I found no bugs.

List of bugs:
1. Fake engine sound
2. Artifacts may occur in some parts of the body.

Warning! If you decide to try out all the capabilities of the car, and he turned and started to turn around and fly bugged, just press Alt+R, which would restart the car.

Installation:
Folder from the archive to put in ..\Outerra Anteworld\packages\outerra

Author: ToZik
Many thanks for your help: ddenn, Brano Kemen

Download(deposit)





« Last Edit: February 20, 2013, 12:43:13 pm by ToZik »
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2518
  • #1 Outerra Fan Boy
    • My Youtube
Re: Jeep Wrangler 1989
« Reply #1 on: February 20, 2013, 11:55:52 pm »

Looks good Tozik.. If you are interested I just tweaked the physics a tad. I am pretty OCD with this stuff and since the jeep doesn't have a solid axle yet. (and it SHOULD CAMENI...) This is the best I could do

Code: [Select]
//invoked only the first time the model is loaded, or upon reload
function init_chassis()
{
  var wheelparam = {
    radius: 0.35,
    width: 0.225,
    suspension_max: 0.4,
    suspension_min: -0.15,
    suspension_stiffness: 15.0,
    damping_compression: 0.20,
    damping_relaxation: 0.19,
    slip: 0.60,
    roll_influnce: 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); 
 
  //sounds
  this.load_sound("jeep_start.ogg");
  this.load_sound("jeep_idle.ogg");
  this.add_sound_emitter("steering_wheel");
 
  return {mass:1331, steering:2.2, steering_ecf:60, centering: 3.0,
      centering_ecf: 40, com:{z:-0.65,y:0.18}};
}

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

  this.started = 0;
}

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


const EF = 4000.0;
const BF = 1800.0;
const maxkmh = 120;
const forceloss = EF / (0.4*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.2 : 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.6;
  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);

  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);
  }
  this.animate_wheels(); 
}
« Last Edit: February 21, 2013, 12:26:46 am by ZeosPantera »
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #2 on: February 21, 2013, 01:47:33 am »

ZeosPantera, thank you, I'll see later.
Logged

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #3 on: February 21, 2013, 02:01:26 am »

I looked up, it came out very well! But I still stay with my physics, I'll finish off :) And you can change it, experiment with it, only to other resources, without my knowledge not spread :)
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2518
  • #1 Outerra Fan Boy
    • My Youtube
Re: Jeep Wrangler 1989
« Reply #4 on: February 24, 2013, 02:39:31 am »

Is it possible, to make this with a solid axle setup?

Like it is suppose to be?

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

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #5 on: February 24, 2013, 07:20:13 am »

ZeosPantera, i do not know, but keep in mind it is a regular Wrangler 1989, as depicted here like Wrangler Rubicon.
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2518
  • #1 Outerra Fan Boy
    • My Youtube
Re: Jeep Wrangler 1989
« Reply #6 on: February 24, 2013, 11:23:46 am »

I'm pretty sure all jeeps have solid axles front and back. http://image.4wdandsportutility.com/f/30720423+w750+st0/0908_4wd_03+1989_jeep_wrangler_YJ+right_front_angle.jpg  Don't worry Cameni said it isn't possible yet to implement solid axles.
« Last Edit: February 24, 2013, 11:30:09 am by ZeosPantera »
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #7 on: February 25, 2013, 02:21:50 am »

All right. But it can be done, united two wheels in one whole cylinder, but they will move as one wheel.
« Last Edit: March 12, 2013, 07:12:51 am by ToZik »
Logged

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2518
  • #1 Outerra Fan Boy
    • My Youtube
Re: Jeep Wrangler 1989
« Reply #8 on: March 01, 2013, 03:23:13 am »

I couldn't resist modifying the colors a bit. I found an old post of Angrypig's where he described how to achieve a "chrome" look. I think it worked out well.







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

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #9 on: March 01, 2013, 05:25:49 am »

Mmm, nice
Logged

Pollux

  • Jr. Member
  • *
  • Posts: 13
  • newbie
Re: Jeep Wrangler 1989
« Reply #10 on: March 01, 2013, 04:34:47 pm »

Really good work.
Logged

GHAO

  • Member
  • **
  • Posts: 82
  • Thinking
Re: Jeep Wrangler 1989
« Reply #11 on: March 29, 2013, 03:09:01 pm »

How possible is it to make a 'scuffed' texture, so that it looks like you've been off-road in it? Adding to that, anyone knowledgeable if there will be dynamic 'dirtying' of vehicles as they go through mud/water, etc? And will there be an aging property that adds rust and so on?
The models are beautiful, but as with FSX add-ons, everything is too clean!
Logged

ToZik

  • Member
  • **
  • Posts: 81
  • Modeler for Outerra
Re: Jeep Wrangler 1989
« Reply #12 on: April 02, 2013, 02:35:30 pm »

GHAO, the project is well advanced, but to compare it with games from big companies, especially FSX, very stupid. Engine developing 2 people, I think, and everything is moving very slowly. So these subtleties should not wait until ... Sorry for my English.
Logged

bugsblake

  • Sr. Member
  • ****
  • Posts: 254
  • jedi master
Re: Jeep Wrangler 1989
« Reply #13 on: May 30, 2013, 02:16:59 pm »

thanks for the jeep! bit on the rapid side but that something i can tweek! :)
Logged
Intel 6 core i7 Xeon - 4930k @3.40 GHz
GTX 770 4GB X2 in SLI
Asus P9X79 Extreme MOBO
Patriot 16GB DDR3 1600MHz
SSD 250GB + SATA 500GB + SATA 1TB

ChocolateBlock1221

  • Newbie
  • Posts: 5
Re: Jeep Wrangler 1989
« Reply #14 on: November 27, 2016, 02:01:57 pm »

link broke  :(
Logged
Pages: [1] 2