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 ... 11 12 [13] 14 15 ... 30

Author Topic: Importer  (Read 241697 times)

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #180 on: October 08, 2012, 07:32:59 am »

How are we suppose to spawn imported aircrafts? It doesn't appear in F4 menu, but I can spawn it as static object, though I imported it as aircraft.
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6718
  • No sense of urgency.
    • outerra.com
Re: Importer
« Reply #181 on: October 08, 2012, 07:45:40 am »

Temporarily through the static objects window, as long as it's got the FDM and scripts assigned it will be spawned as an aircraft.
It will go into F4 later.
Logged

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #182 on: October 08, 2012, 10:23:01 am »

What could that error mean?
Code: [Select]
ERROR: V8 exception: unknown exceptionaircraft(13): SyntaxError: Unexpected token const
I managed to make the plane fly and lands on it's wheels, but animations doesn't work. Here's eng.log and .js file:
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

giucam

  • Full Member
  • ***
  • Posts: 171
  • It's an ugly pile of bones... like me.
Re: Importer
« Reply #183 on: October 08, 2012, 10:30:17 am »

It means there's an unexpected  'const' on line 13 of the .js file. (V8 is a javascript engine). The actual problem though is the ',' on line 7 that shouldn't be there. I don't know if javascript wants a ';' after each statement. If yes tou need to put a ';' instead of the ',' of line 7.
Logged
ResidualVM 0.1.1 is OUT! www.residualvm.org

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6718
  • No sense of urgency.
    • outerra.com
Re: Importer
« Reply #184 on: October 08, 2012, 10:31:33 am »

The declaration before line 13 (at line 7) does not end with a semicolon but with a comma, as you've commented out the last variable that had the semicolon after it:
Code: [Select]
var propeller_id,
//elevator_l_id,
//elevator_r_id,
aileron__l_id,
aileron__r_id,          <----------------- error
//rudder_id,
//wheel_l_id,
//wheel_r_id,
//wheel_tail_id;

const PI = 3.14159265358979323846;

Oh, giucam beat me to it.
« Last Edit: October 08, 2012, 10:33:13 am by cameni »
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6718
  • No sense of urgency.
    • outerra.com
Re: Importer
« Reply #185 on: October 08, 2012, 10:37:09 am »

Javascript actually doesn't require semicolons, but since you've put the comma there it expected another variable name, and "const" isn't a valid variable name.
Logged

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #186 on: October 08, 2012, 10:41:17 am »

Thanks, the error is gone. But animations don't work still. Do I need to repeat names of the model parts as script bones names when I import the model?
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6718
  • No sense of urgency.
    • outerra.com
Re: Importer
« Reply #187 on: October 08, 2012, 10:44:33 am »

Only checking the bones should be enough. Check if your impcfg has the bones you want accessible tagged as [bonename]
Logged

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #188 on: October 08, 2012, 10:52:14 am »

Yep, that's what I forgot - I didn't check bones. Thanks, works now.
« Last Edit: October 08, 2012, 11:11:54 am by ddenn »
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2519
  • #1 Outerra Fan Boy
    • My Youtube
Re: Importer
« Reply #189 on: October 08, 2012, 12:20:53 pm »

Now it is up to you to make a video ddenn. The world needs to see it.
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #190 on: October 08, 2012, 12:40:58 pm »

I've no problem with releasing this model for the whole world, as I did for x-plane. But I'm complete newbie in JSB scripting, so it'll take time. Right now I'm stuck at making wheels spin.



And it will be a challenge to install it to Outerra too.
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

Bartolomeus

  • Sr. Member
  • ****
  • Posts: 288
    • VirtualTechArt Design
Re: Importer
« Reply #191 on: October 08, 2012, 01:54:01 pm »

Amazing! Looks really great!

Marko

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #192 on: October 09, 2012, 04:56:03 am »

How is Cessna' prop disc works? I tried to use its texture and material, but get only that



Cessna material doesn't use opacity texture (and it seems it works incorrectly anyway), and prop texture doesn't have alpha channel
« Last Edit: October 09, 2012, 07:33:15 am by ddenn »
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian

angrypig

  • Sr. Member
  • ****
  • Posts: 454
Re: Importer
« Reply #193 on: October 09, 2012, 05:09:37 am »

There are two textures for blurred propeller propeller_80.dds and propeller_80_opacity.dds, the first one is the diffuse component and the second one is the alpha (alpha is in "ati1/bc4" dds format photoshop doesn;t support it use nvidia texture tools)

Here is the material definition from cessna:

Code: [Select]
{
"name" : "propeller_80",
"diffuse" : "1.0,1.0,1.0,0.0", // the fourth parameter is important, it has to to be zero, it
                                                         // is the weight between fresnel and alpha opacity
                                                         // transparency 0 means that only alpha is used for opacity
"Ax" : "0.04",
"Ay" : "0.04",
"m" : "1.0",
"tex_diffuse" : "propeller_80.dds",
"tex_normal" : "",
"tex_env" : "",
"tex_opacity" : "propeller_80_opacity.dds"
},
Logged

ddenn

  • Sr. Member
  • ****
  • Posts: 374
Re: Importer
« Reply #194 on: October 09, 2012, 05:14:58 am »

Thanks, I was looking to the wrong material file for Cessna, it has two matlib files for some reason.

« Last Edit: October 09, 2012, 07:26:20 am by ddenn »
Logged
i7 3930K 3.50 (3.80) Ghz, 32Gb RAM, GTX980 4 Gb VRAM, Windows 7 64-bit

About Outerra in Russian
Pages: 1 ... 11 12 [13] 14 15 ... 30