Jump to content

[Virtual Reality] Replace the default Hangar plane with the mirage!


Recommended Posts

Posted

So I made this quick little mod that replaces the default plane you see while using VR in the main menu with the mirage.

 

You can either replace the [DCS World Dir]\Scripts\DemoScenes\sceneVR.lua with the following code:

 

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

scene = {} -- ñþäà êëàäåì âñå ñîçäàííûå îáúåêòû

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

scene.m			= sceneAPI:addModel("m-2000c", 0, 1.7, 0);
scene.m:setArgument(0, 1); --front gear
scene.m:setArgument(1, 0.2); --front gear shocks
scene.m:setArgument(3, 1); --right gear
scene.m:setArgument(4, 0.2); --right gear shocks
scene.m:setArgument(5, 1); --left gear
scene.m:setArgument(6, 0.2); --left gear shocks
scene.m:setArgument(15, -0.2); --right aileron
scene.m:setArgument(16, -0.2); --left aileron
scene.m:setArgument(38, 0.9); --Canopy
scene.m:setArgument(50, 0.5); --Pilot



local cam_level = 1.4

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

	
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.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

 

Or use this JSGME mod.

  • 2 weeks later...
Posted

Thanks Sabreman,

 

Any idea if we can use any arguments to arm the aircraft?

Intel i9-9900KF @5.2GHz

MSI Z390 Gaming Pro Carbon

32GB G.Skill Trident Z DDR3200 RAM

MSI RTX 2080 Ti Gaming X Trio

40" Panasonic TH-40DX600U @ 4K

Pimax Vision 8K Plus / Oculus Rift CV1 / HTC Vive

Gametrix JetSeat with SimShaker

Windows 10 64 Bit Home Edition

 

[sIGPIC][/sIGPIC]

Posted (edited)

Ignore that, add them in the same as you would call the aircraft model and position them to the pylons.

 

The only thing I have to figure out now is how to rotate them...

 

 

(WIP)

scene.m = sceneAPI:addModel("mk-82a", -0.622000, 1.061,  -3.132000);

 

Screen_160730_170620_zpskcdlnzgd.jpg

Edited by Highwayman-Ed

Intel i9-9900KF @5.2GHz

MSI Z390 Gaming Pro Carbon

32GB G.Skill Trident Z DDR3200 RAM

MSI RTX 2080 Ti Gaming X Trio

40" Panasonic TH-40DX600U @ 4K

Pimax Vision 8K Plus / Oculus Rift CV1 / HTC Vive

Gametrix JetSeat with SimShaker

Windows 10 64 Bit Home Edition

 

[sIGPIC][/sIGPIC]

Posted

Also see here,

 

http://forums.eagle.ru/showthread.php?t=170379

 

Check out the F18!:)

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

  • Recently Browsing   0 members

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