Skip to content

Commit

Permalink
Added some other things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jashaszun committed Oct 1, 2018
1 parent 1bcc71a commit 2d0deca
Show file tree
Hide file tree
Showing 35 changed files with 644 additions and 1 deletion.
Binary file added old_2017_2018/CADs/Gearbox v3.zip
Binary file not shown.
33 changes: 33 additions & 0 deletions old_2017_2018/CADs/Gearbox/00 3 point faded.p2s
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
shadow
transparent 0 0
environment
showroom
north nonvisible nonreflective "Materials\plastic\high gloss\default plastic.p2m"
without_mapping
south nonvisible nonreflective "Materials\plastic\high gloss\default plastic.p2m"
without_mapping
east nonvisible nonreflective "Materials\plastic\high gloss\default plastic.p2m"
without_mapping
west nonvisible nonreflective "Materials\plastic\high gloss\default plastic.p2m"
without_mapping
ceiling nonvisible nonreflective "Materials\plastic\high gloss\default plastic.p2m"
without_mapping
floor visible reflective "Materials\miscellaneous\studio materials\reflective shadow floor.p2m"
without_mapping
end_textures
offset 0.0
end_positions
model xz_plane
background
image "\images\textures\background\softbox.png"
none
background_multiplier 1.000000
background_environment
image "\images\textures\background\3 point beige.hdr"
spherical_env
environment_multipliers 0.2 0.2
sw_scene_rotating_envmap 1
pv_background_image_brightness 0.9
pv_rendering_brightness 0.800000
pv_scene_reflectivity 1.000000
end
Binary file added old_2017_2018/CADs/Gearbox/3 point beige.hdr
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions old_2017_2018/CADs/Gearbox/clear thick glass.p2m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
shader "top_name" "top_mtl"
(
"num_cols" 1 ,
"illum" "model_17.p2a"
)

material "iii" "swt_main_phen"
(
"col1" 0.94 0.96 0.97 ,
"pattern_scale" 0 ,
"specular_factor" 1 ,
"specular_color" 1 1 1 ,
"exponent" 18.664 ,
"mtl_ior" 1.52 ,
"transparency" 0.3 ,
"sw_shader" clearthickglass
)
end material
22 changes: 22 additions & 0 deletions old_2017_2018/CADs/Gearbox/dark grey low gloss plastic.p2m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"swP2M" on ,
"num_cols" 1 ,
"col1" 0.296875 0.296875 0.296875 ,
"diffuse_factor" 0.7 ,
"specular_factor" 0.05 ,
"specular_color" 1 1 1 ,
"roughness" 0.7 ,
"reflectivity" 0.05 ,
"mtl_ior" 1 ,
"transparency" 0 ,
"blurryReflections" on ,
"doubleSided" on ,
"refractionRoughness" 0 ,
"luminousIntensity" 0 ,
"bumpTexture" "" ,
"bumpStrength" 0.001 ,
"displacementDistance" 0.001 ,
"SurfaceFinishShaderType" 0 ,
"bumpIsNormalMap" on ,
"initTextureWidth" 1 ,
"initTextureHeight" 1 ,
"sw_shader" darkgreylowglossplastic
24 changes: 24 additions & 0 deletions old_2017_2018/CADs/Gearbox/polished beech 2d.p2m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
color texture "color_texname" "Images\textures\organic\wood\beech\polished beech.jpg"

"swP2M" on ,
"num_cols" 0 ,
"col1" 1 1 1 ,
"diffuse_factor" 1 ,
"specular_factor" 1 ,
"specular_color" 1 1 1 ,
"roughness" 0.5 ,
"reflectivity" 0.05 ,
"mtl_ior" 1 ,
"transparency" 0 ,
"blurryReflections" off ,
"doubleSided" on ,
"refractionRoughness" 0 ,
"luminousIntensity" 0 ,
"bumpTexture" "" ,
"bumpStrength" 0.001 ,
"displacementDistance" 0.001 ,
"SurfaceFinishShaderType" 0 ,
"bumpIsNormalMap" on ,
"initTextureWidth" 0.1524 ,
"initTextureHeight" 0.1524 ,
"sw_shader" polishedbeech
Binary file added old_2017_2018/CADs/Gearbox/polished beech.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions old_2017_2018/CADs/Gearbox/reflective shadow floor.p2m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
shader "top_name" "top_mtl"
(
"num_cols" 1 ,
"illum" "model_16.p2a"
)

material "iii" "swt_main_phen"
(
"reflectivity" 0.8 ,
"sw_shader" TransparentFloor
)

end material
Binary file added old_2017_2018/CADs/Gearbox/softbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions old_2017_2018/CADs/Gearbox/white high gloss plastic.p2m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
shader "top_name" "top_mtl"
(
"num_cols" 1 ,
"illum" "model_3.p2a"
)

material "iii" "swt_main_phen"
(
"col1" 1 1 1 ,
"ambient_factor" 0.5 ,
"diffuse_factor" 0.8 ,
"specular_factor" 0.8 ,
"specular_color" 1 1 1 ,
"exponent" 75 ,
"reflectivity" 0.2 ,
"transparency" 0 ,
"sw_shader" whitehighglossplastic
)
end material
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ public partial class TelemetryForm : Form
{
List<Tuple<Double, Double>> altitudeData;
List<Tuple<Double, Double, Double, Double>> accelData;
System.IO.FileStream accelFile;
System.IO.StreamWriter accelFileWriter;

SerialPort port;
SerialPort port;
public TelemetryForm(SerialPort port)
{
InitializeComponent();
this.port = port;
startTime = DateTime.Now.ToFileTimeUtc();
altitudeData = new List<Tuple<Double, Double>>();
accelData = new List<Tuple<double, double, double, double>>();
accelFile = System.IO.File.OpenWrite("accel.csv");
accelFileWriter = new System.IO.StreamWriter(accelFile);
}

LineAnnotation maxLine;
Expand Down Expand Up @@ -90,6 +94,8 @@ void addAcceleration(double time, double x, double y, double z)
lastTimeInAccelChart = time;
}
accelData.Add(new Tuple<double, double, double, double>(time, x, y, z));
accelFileWriter.WriteLine(string.Join(", ", new string[] { time.ToString(), x.ToString(), y.ToString(), z.ToString() }));
accelFileWriter.Flush();
}

string fullBuffer = "";
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 2d0deca

Please sign in to comment.