Jump to content

Recommended Posts

Posted
There you go guys. Hope you're gonna like it. Not easy to do and some weird stuff with animations, like i couldn't find how to make the wings unfolded for a certian time. Anyways, enjoy!

 

 

 

 

https://www.digitalcombatsimulator.com/en/files/3300749/

Preciate the file. I was the one who asked you about the animations on your YT vid.:thumbup:

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted

I can't figure out how to set a livery. Anyone knows how?

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted (edited)

I'm working on a HUGE VR Scene,

 

Just a heads up, it will have proper syntax for Liveries in it.

 

Otherwise, the instructions from the template are:

 

local setLivery = function(self, livery , livery_folder)
return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)
end 

Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted (edited)
I'm working on a HUGE VR Scene,

 

Just a heads up, it will have proper syntax for Liveries in it.

 

Otherwise, the instructions from the template are:

 

local setLivery = function(self, livery , livery_folder)
   return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)
end 

 

 

 

 

Will try this, if it works, i owe you a beer keg :P

 

 

 

 

EDIT: Well, no Joy, i can't figure out how to use it. :(

Edited by Doum76
Posted

Yeah, SkateZilla, you might have to provide us with an example with actual values, please. If you don't mind. I'm not sure how the syntax should go.

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted (edited)

Instructions:

local setLivery = function(self, livery , livery_folder)
return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)
end 

 

 

So:

scene.<variable>:setLivery(<LIVERY>,<LIVERY FOLDER>);

 

Now the Confusing part was the names in the demosceneEnvironment.lua

 

<variable> = The Scene Object (most people use scene.m.xxxxx)

<LIVERY> = The Livery Folder name

<LIVERY FOLDER> = The Aircraft Folder for the Livery. (which was mis-understood as being path to livery, when it's really the aircraft's livery folder name: (ie "FA-18C_hornet", "f-86f sabre" etc)

 

So Lets say you want to use VFC-12's Livery

 

LIVERY = "VFC-12"

LIVERY FOLDER = "FA-18C_hornet"

 

So it would be:

setLivery("VFC-12", "FA-18C_hornet");

 

Also works with 3rd Party Liveries.

Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted

I have this code below, but it didn't work. Do I also need the "local" variable code also? If so, where does it need to go?

 

scene.m3 = sceneAPI:addModel("f-18C", -6, 1.85, -2);

scene.m3:setLivery("Canada 425th Squadron", "FA-18C_hornet")

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted
I have this code below, but it didn't work. Do I also need the "local" variable code also? If so, where does it need to go?

 

scene.m3 = sceneAPI:addModel("f-18C", -6, 1.85, -2);

scene.m3:setLivery("Canada 425th Squadron", "FA-18C_hornet")

 

new Lot20 Model is "fa-18c", "f-18C" is the old model.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted

THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU !!!!!! :thumbup:

 

This just made my day soooo much... thank you :)

 

 

Instructions:

local setLivery = function(self, livery , livery_folder)
return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)
end 

 

 

So:

scene.<variable>:setLivery(<LIVERY>,<LIVERY FOLDER>);

 

Now the Confusing part was the names in the demosceneEnvironment.lua

 

<variable> = The Scene Object (most people use scene.m.xxxxx)

<LIVERY> = The Livery Folder name

<LIVERY FOLDER> = The Aircraft Folder for the Livery. (which was mis-understood as being path to livery, when it's really the aircraft's livery folder name: (ie "FA-18C_hornet", "f-86f sabre" etc)

 

So Lets say you want to use VFC-12's Livery

 

LIVERY = "VFC-12"

LIVERY FOLDER = "FA-18C_hornet"

 

So it would be:

setLivery("VFC-12", "FA-18C_hornet");

 

Also works with 3rd Party Liveries.

 

 

--

 

One thing though. The names your are using are very confusing. I think this would be much more understandable:

 

8<

 

So:

scene.<variable>:setLivery(<LIVERY FOLDER>, <MODEL NAME>);

 

Now the Confusing part was the names in the demosceneEnvironment.lua

 

<variable> = The Scene Object (most people use scene.m.xxxxx)

<LIVERY FOLDER> = The Livery Folder name

<MODEL NAME> = The Aircraft Folder for the Livery. (which was mis-understood as being path to livery, when it's really the aircraft's livery folder name: (ie "FA-18C_hornet", "f-86f sabre" etc)

 

So Lets say you want to use VFC-12's Livery

 

LIVERY FOLDER = "VFC-12"

MODEL NAME = "FA-18C_hornet"

 

So it would be:

setLivery("VFC-12", "FA-18C_hornet");

 

Also works with 3rd Party Liveries.

 

 

What do you think?

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Posted

FA-18C_hornet is the Livery Folder Name for the lot 20 Model.

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted

I'm not getting at the Lot20 livery, but this:

 

<LIVERY> = The Livery Folder name

<LIVERY FOLDER> = The Aircraft Folder for the Livery

 

This is confusing AF if you don't pay very close attention and look at the examples.

 

This is practically self-explanatory:

 

<LIVERY FOLDER> = The Livery Folder name

<MODEL NAME> = The Aircraft Folder for the Livery.

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Posted (edited)

Except it's not the model name.

 

It's the Aircraft's Livery Folder from Within the /Liveries/ Directory.

 

Look, I figured it out and posted how to do it, spend less time debating over changing it, and more time making nice new VR Scenes,

 

It's self explanatory now w/ the example, no need to start changing everything around.

 

And there's a Reason for the way it is.

 

The sim should be looking for "VFC-12" within the "FA-18C_hornet" Folder, as there are some liveries w/ matching names across multiple aircraft.

Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted
new Lot20 Model is "fa-18c", "f-18C" is the old model.

:doh:I knew I was being an idiot. Thanks again for sharing.

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted
Instructions:

local setLivery = function(self, livery , livery_folder)
   return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)
end 

So:

scene.<variable>:setLivery(<LIVERY>,<LIVERY FOLDER>);

Now the Confusing part was the names in the demosceneEnvironment.lua

 

<variable> = The Scene Object (most people use scene.m.xxxxx)

<LIVERY> = The Livery Folder name

<LIVERY FOLDER> = The Aircraft Folder for the Livery. (which was mis-understood as being path to livery, when it's really the aircraft's livery folder name: (ie "FA-18C_hornet", "f-86f sabre" etc)

 

So Lets say you want to use VFC-12's Livery

 

LIVERY = "VFC-12"

LIVERY FOLDER = "FA-18C_hornet"

 

So it would be:

setLivery("VFC-12", "FA-18C_hornet");

Also works with 3rd Party Liveries.

 

 

 

 

Awesome thanks. iT's working now. :)

Posted
Except it's not the model name.

 

It's the Aircraft's Livery Folder from Within the /Liveries/ Directory.

 

Look, I figured it out and posted how to do it, spend less time debating over changing it, and more time making nice new VR Scenes,

 

It's self explanatory now w/ the example, no need to start changing everything around.

 

And there's a Reason for the way it is.

 

The sim should be looking for "VFC-12" within the "FA-18C_hornet" Folder, as there are some liveries w/ matching names across multiple aircraft.

 

I'm sorry if you feel attacked by my comments. That was not my intention and I apologize for that. I like to make things easily accessible to everyone. That was my only intention.

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Posted

Ok SkateZilla, need a little more direction for us non .lua experts.

 

I found these lines in demosceneEnvironment.lua

 

local setLivery = function(self, livery , livery_folder)

return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)

end

 

Where do I add the new line you show in your post, to this part of the .lua like so?

 

local setLivery = function(self, livery , livery_folder)

return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)

scene.m.1:setLivery("VFC-12", "FA-18C_hornet");

end

 

Basically I don't know where to put this line to have it show up in the Main Menu scene for VR:

scene.m.1:setLivery("VFC-12", "FA-18C_hornet");

 

Thanks for the clarification and eductation.

[sIGPIC] "GOONIE" [/sIGPIC]



"GOONIE"

 

CSG-1 VFA-25

Posted
Ok SkateZilla, need a little more direction for us non .lua experts.

 

I found these lines in demosceneEnvironment.lua

 

local setLivery = function(self, livery , livery_folder)

return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)

end

 

Where do I add the new line you show in your post, to this part of the .lua like so?

 

local setLivery = function(self, livery , livery_folder)

return ED_demosceneAPI.setLivery(self.obj, livery , livery_folder)

scene.m.1:setLivery("VFC-12", "FA-18C_hornet");

end

 

Basically I don't know where to put this line to have it show up in the Main Menu scene for VR:

scene.m.1:setLivery("VFC-12", "FA-18C_hornet");

 

Thanks for the clarification and eductation.

 

 

 

ie Default VR Scene Changed to hornet: (SceneVR.lua):

package.path = package.path ..';./Scripts/DemoScenes/?.lua;'
local sceneEnvironment = require("demosceneEnvironment")

scene = {} -- сюда кладем все созданные объекты

function loadScene(scenePtr)
sceneAPI = sceneEnvironment.getInterface(scenePtr)
sceneAPI:setUpdateFunc('sceneVRUpdate')
sceneAPI:setSun(math.rad(-90), math.rad(0)) -- сажаем солнце за горизонт чтоб не светило

scene.m			= sceneAPI:addModel("fa-18c", 0, 2.4, 0);
scene.m.setLivery = ("VFC-12", "FA-18C_hornet");
scene.m:setArgument(0, 1);
scene.m:setArgument(3, 1);
scene.m:setArgument(5, 1);
scene.m:setArgument(4, 0.25);
scene.m:setArgument(6, 0.25);
scene.m:setArgument(115, 1);
scene.m:setArgument(116, 1);
scene.m:setArgument(117, 1);

local cam_level = 1.8

scene.cam		= sceneAPI:addCamera(3, cam_level , 3)
scene.cam:setFarClip(1000.0)
scene.cam:setFov(90)
scene.cam.transform:lookAtPoint(-10.0, cam_level, 0);


scene.flr		= sceneAPI:addModel("shelter_floor", 0,0,0);
scene.flr:drawToEnvironment(true);
scene.flr.transform:scale(2,1.5,1.5);

scene.sh		= sceneAPI:addModel("ukrytie", 0,0,0); 
scene.sh:drawToEnvironment(true);
scene.sh.transform:scale(2,2,2);

scene.L1			= sceneAPI:addLightOmni(0, 25, 0,	1,0.8,0.5);
scene.L1:setRadius(200);
scene.L1:setAmount(1);

scene.cam:setActive()
end

--[0;1]
local function pingpong(length, t)
local tt = (t%length)*2/length
if tt>1 then tt = 2-tt end
return tt
end


function sceneVRUpdate(t, dt)

end



Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted
I'm sorry if you feel attacked by my comments. That was not my intention and I apologize for that. I like to make things easily accessible to everyone. That was my only intention.

 

no no, I should be apologizing, I didnt mean to come off so brash,

 

just meant to say that the definition plus working example are self explanatory, if we start changing the definition it will only confuse people (ie they will put the EDM Name instead of the aircraft livery folder etc)

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Posted (edited)

Any thoughts on why this doesn't work?

 

ackage.path = package.path ..';./Scripts/DemoScenes/?.lua;'
local sceneEnvironment = require("demosceneEnvironment")

scene = {} -- ???? ?????? ??? ????????? ???????

function loadScene(scenePtr)
sceneAPI = sceneEnvironment.getInterface(scenePtr)
sceneAPI:setUpdateFunc('sceneVRUpdate')
sceneAPI:setSky(true);

scene.m			= sceneAPI:addModel("fa-18c", 0, 21.3, 0.0);
scene.m.setLivery = ("VFA-37", "FA-18C_hornet");
scene.m:setArgument(0, 1);
scene.m:setArgument(1, 0.7);
scene.m:setArgument(3, 1);
scene.m:setArgument(4, 0.8);
scene.m:setArgument(5, 1); 
scene.m:setArgument(6, 0.8); 
scene.m:setArgument(8, 1.0); 
scene.m:setArgument(9, 0.6); 
scene.m:setArgument(10, 0.6);
scene.m:setArgument(11, -0.4);
scene.m:setArgument(12, -0.4);
scene.m:setArgument(13, 1.0);
scene.m:setArgument(14, 1.0);
scene.m:setArgument(15, -0.5);
scene.m:setArgument(16, -0.5);
scene.m:setArgument(17, -0.8);
scene.m:setArgument(18,  0.8);
scene.m:setArgument(31,  0.1);
scene.m:setArgument(32,  0.3);
scene.m:setArgument(38, 0.9);
scene.m:setArgument(50, 0.5);
scene.m:setArgument(89, 1.0); 
scene.m:setArgument(90, 1.0); 
scene.m:setArgument(91, 1.0); 

scene.m2		= sceneAPI:addModel("fa-18c", 0, 21.3, 10.0);
scene.m.setLivery = ("VFA-37", "FA-18C_hornet");
scene.m2:setArgument(0, 1);
scene.m2:setArgument(1, 0.7);
scene.m2:setArgument(3, 1);
scene.m2:setArgument(4, 0.8);
scene.m2:setArgument(5, 1); 
scene.m2:setArgument(6, 0.8); 
scene.m2:setArgument(8, 1.0); 
scene.m2:setArgument(9, 0.6); 
scene.m2:setArgument(10, 0.6);
scene.m2:setArgument(11, -0.4);
scene.m2:setArgument(12, -0.4);
scene.m2:setArgument(13, 1.0);
scene.m2:setArgument(14, 1.0);
scene.m2:setArgument(15, -0.5);
scene.m2:setArgument(16, -0.5);
scene.m2:setArgument(17, -0.8);
scene.m2:setArgument(18,  0.8);
scene.m2:setArgument(31,  0.1);
scene.m2:setArgument(32,  0.2);
scene.m2:setArgument(38, 0.9);
scene.m2:setArgument(50, 0.0);
scene.m2:setArgument(89, 1.0); 
scene.m2:setArgument(90, 1.0); 
scene.m2:setArgument(91, 1.0); 

scene.m3		= sceneAPI:addModel("fa-18c", 5.0, 21.3, -17.0);
scene.m.setLivery = ("VFA-37", "FA-18C_hornet");
scene.m3.transform:rotate(0,-90.0,0.0);
scene.m3:setArgument(0, 1);
scene.m3:setArgument(1, 0.7);
scene.m3:setArgument(3, 1);
scene.m3:setArgument(4, 0.8);
scene.m3:setArgument(5, 1); 
scene.m3:setArgument(6, 0.8); 
scene.m3:setArgument(8, 1.0); 
scene.m3:setArgument(9, 0.6); 
scene.m3:setArgument(10, 0.6);
scene.m3:setArgument(11, -0.4);
scene.m3:setArgument(12, -0.4);
scene.m3:setArgument(13, 1.0);
scene.m3:setArgument(14, 1.0);
scene.m3:setArgument(15, -0.5);
scene.m3:setArgument(16, -0.5);
scene.m3:setArgument(17, -0.8);
scene.m3:setArgument(18,  0.8);
scene.m3:setArgument(31,  0.1);
scene.m3:setArgument(32,  0.1);
scene.m3:setArgument(38, 0.0);
scene.m3:setArgument(50, 0.0);
scene.m3:setArgument(89, 1.0); 
scene.m3:setArgument(90, 1.0); 
scene.m3:setArgument(91, 0.0); 

local cam_level = 21.2

scene.cam = sceneAPI:addCamera(3, cam_level , 2.5)
scene.cam:setFov(90)
scene.cam.transform:lookAtPoint(-10.0, cam_level, 5);

	
scene.flr		= sceneAPI:addModel("vinson", 20,0, -32.0);
scene.flr:drawToEnvironment(true);
--scene.flr.transform:scale(2,1.5,1.5);
scene.flr.transform:rotate(0,-90.0,0.0);

--[[
scene.sh		= sceneAPI:addModel("ukrytie", 0,0,0); 
scene.sh:drawToEnvironment(true);
scene.sh.transform:scale(2,2,2);]]

scene.cam:setActive()
end

--[0;1]
local function pingpong(length, t)
local tt = (t%length)*2/length
if tt>1 then tt = 2-tt end
return tt
end


function sceneVRUpdate(t, dt)

end

Edited by capthaltli

[sIGPIC] "GOONIE" [/sIGPIC]



"GOONIE"

 

CSG-1 VFA-25

Posted
Any thoughts on why this doesn't work?

 

ackage.path = package.path ..';./Scripts/DemoScenes/?.lua;'local sceneEnvironment = require("demosceneEnvironment")scene = {} -- ???? ?????? ??? ????????? ???????function loadScene(scenePtr)    sceneAPI = sceneEnvironment.getInterface(scenePtr)    sceneAPI:setUpdateFunc('sceneVRUpdate')    sceneAPI:setSky(true);        scene.m            = sceneAPI:addModel("fa-18c", 0, 21.3, 0.0);    scene.m.setLivery = ("VFA-37", "FA-18C_hornet");    scene.m:setArgument(0, 1);    scene.m:setArgument(1, 0.7);    scene.m:setArgument(3, 1);    scene.m:setArgument(4, 0.8);    scene.m:setArgument(5, 1);     scene.m:setArgument(6, 0.8);     scene.m:setArgument(8, 1.0);     scene.m:setArgument(9, 0.6);     scene.m:setArgument(10, 0.6);    scene.m:setArgument(11, -0.4);    scene.m:setArgument(12, -0.4);    scene.m:setArgument(13, 1.0);    scene.m:setArgument(14, 1.0);    scene.m:setArgument(15, -0.5);    scene.m:setArgument(16, -0.5);    scene.m:setArgument(17, -0.8);    scene.m:setArgument(18,  0.8);    scene.m:setArgument(31,  0.1);    scene.m:setArgument(32,  0.3);    scene.m:setArgument(38, 0.9);    scene.m:setArgument(50, 0.5);    scene.m:setArgument(89, 1.0);     scene.m:setArgument(90, 1.0);     scene.m:setArgument(91, 1.0);         scene.m2        = sceneAPI:addModel("fa-18c", 0, 21.3, 10.0);    scene.m.setLivery = ("VFA-37", "FA-18C_hornet");    scene.m2:setArgument(0, 1);    scene.m2:setArgument(1, 0.7);    scene.m2:setArgument(3, 1);    scene.m2:setArgument(4, 0.8);    scene.m2:setArgument(5, 1);     scene.m2:setArgument(6, 0.8);     scene.m2:setArgument(8, 1.0);     scene.m2:setArgument(9, 0.6);     scene.m2:setArgument(10, 0.6);    scene.m2:setArgument(11, -0.4);    scene.m2:setArgument(12, -0.4);    scene.m2:setArgument(13, 1.0);    scene.m2:setArgument(14, 1.0);    scene.m2:setArgument(15, -0.5);    scene.m2:setArgument(16, -0.5);    scene.m2:setArgument(17, -0.8);    scene.m2:setArgument(18,  0.8);    scene.m2:setArgument(31,  0.1);    scene.m2:setArgument(32,  0.2);    scene.m2:setArgument(38, 0.9);    scene.m2:setArgument(50, 0.0);    scene.m2:setArgument(89, 1.0);     scene.m2:setArgument(90, 1.0);     scene.m2:setArgument(91, 1.0);         scene.m3        = sceneAPI:addModel("fa-18c", 5.0, 21.3, -17.0);    scene.m.setLivery = ("VFA-37", "FA-18C_hornet");    scene.m3.transform:rotate(0,-90.0,0.0);    scene.m3:setArgument(0, 1);    scene.m3:setArgument(1, 0.7);    scene.m3:setArgument(3, 1);    scene.m3:setArgument(4, 0.8);    scene.m3:setArgument(5, 1);     scene.m3:setArgument(6, 0.8);     scene.m3:setArgument(8, 1.0);     scene.m3:setArgument(9, 0.6);     scene.m3:setArgument(10, 0.6);    scene.m3:setArgument(11, -0.4);    scene.m3:setArgument(12, -0.4);    scene.m3:setArgument(13, 1.0);    scene.m3:setArgument(14, 1.0);    scene.m3:setArgument(15, -0.5);    scene.m3:setArgument(16, -0.5);    scene.m3:setArgument(17, -0.8);    scene.m3:setArgument(18,  0.8);    scene.m3:setArgument(31,  0.1);    scene.m3:setArgument(32,  0.1);    scene.m3:setArgument(38, 0.0);    scene.m3:setArgument(50, 0.0);    scene.m3:setArgument(89, 1.0);     scene.m3:setArgument(90, 1.0);     scene.m3:setArgument(91, 0.0);         local cam_level = 21.2    scene.cam = sceneAPI:addCamera(3, cam_level , 2.5)    scene.cam:setFov(90)    scene.cam.transform:lookAtPoint(-10.0, cam_level, 5);            scene.flr        = sceneAPI:addModel("vinson", 20,0, -32.0);    scene.flr:drawToEnvironment(true);    --scene.flr.transform:scale(2,1.5,1.5);    scene.flr.transform:rotate(0,-90.0,0.0);    --[[    scene.sh        = sceneAPI:addModel("ukrytie", 0,0,0);     scene.sh:drawToEnvironment(true);    scene.sh.transform:scale(2,2,2);]]    scene.cam:setActive()end--[0;1]local function pingpong(length, t)    local tt = (t%length)*2/length    if tt>1 then tt = 2-tt end    return ttendfunction sceneVRUpdate(t, dt)end

Try replacing, "scene = {} -- ???? ?????? ??? ????????? ???????", with "scene = {} -- сюда кладем все созданные объекты"

i9 14900k @5.6GHz NZXT Kraken |Asus ROG Strix Z790 A-Gaming | Samsung NVMe m.2 990 Pro 2TB | 64GB DDR5 6400MHz

EVGA RTX 3090 FTW3 Ultra | PiMAX CRYSTAL LIGHT  | HOTAS Warthog | Saitek Flight Pedals

Posted
Try replacing, "scene = {} -- ???? ?????? ??? ????????? ???????", with "scene = {} -- сюда кладем все созданные объекты"

 

 

Wouln't do much, as all the stuff you replaced after the -- makes it just a note, adding -- before a line makes it a note/remarks.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...