Skip to content

Commit

Permalink
Added a fake shadow to the AI car.
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofra committed Dec 25, 2022
1 parent b5c126d commit 95a3f62
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 29 deletions.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
hg.LoadSceneFromAssets("main.scn", scene, res, hg.GetForwardPipelineInfo())

scene_skybox = hg.Scene()
hg.LoadSceneFromAssets("weather/skybox.scn", scene_skybox,
hg.LoadSceneFromAssets("weather/sky/sky.scn", scene_skybox,
res, hg.GetForwardPipelineInfo())

# Ground
Expand Down
4 changes: 2 additions & 2 deletions app/resources/main.scn
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
],
"rot": [
31.516674041748047,
-142.37115478515625,
-142.3711395263672,
-175.34832763671875
],
"scl": [
Expand Down Expand Up @@ -401,7 +401,7 @@
],
"rot": [
-0.0,
179.99990844726563,
179.99989318847656,
0.0
],
"scl": [
Expand Down
26 changes: 13 additions & 13 deletions app/resources/main.scn.editor
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"subdiv_size": 1.0
},
"navigation_plugin": {
"orbit_distance": 515.584716796875,
"orbit_distance": 707.2493896484375,
"speed": 0.800000011920929,
"turbo": 100.0
},
Expand Down Expand Up @@ -126,18 +126,18 @@
},
"orthographic_size": 1.0,
"perspective": [
0.9998837113380432,
0.006957389414310455,
0.015818752348423004,
26.380542755126953,
0.0,
0.9155020117759705,
-0.4024856388568878,
100.73233032226563,
-0.017286822199821472,
0.4024328291416168,
0.9153830409049988,
-493.3025817871094
0.9999575614929199,
0.0015850444324314594,
0.01217857375741005,
-4.970130920410156,
0.0,
0.991731584072113,
-0.12884515523910522,
16.081405639648438,
-0.012287206016480923,
0.12884660065174103,
0.991679310798645,
-723.9078979492188
],
"perspective_fov": 0.8872777223587036,
"perspective_zrange": {
Expand Down
Binary file modified app/resources/probes/kloppenheim_07_1k.hdr
Binary file not shown.
134 changes: 123 additions & 11 deletions app/resources/vehicles/ai_vehicle/drivable_car.scn
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,18 @@
"disabled": false,
"idx": 13,
"name": "camera_exterior_rear"
},
{
"components": [
14,
4294967295,
8,
4294967295,
4294967295
],
"disabled": false,
"idx": 14,
"name": "plane"
}
],
"objects": [
Expand Down Expand Up @@ -1626,6 +1638,88 @@
}
],
"name": "vehicles/generic_vehicle/wiper_1_56.geo"
},
{
"bones": [],
"material_infos": [
{
"name": "default"
}
],
"materials": [
{
"blend_mode": "alpha",
"depth_test": "less",
"face_culling": "cw",
"flags": [],
"program": "core/shader/pbr.hps",
"textures": [
{
"name": "uBaseOpacityMap",
"path": "vehicles/generic_vehicle/car_shadow.png",
"stage": 0
}
],
"values": [
{
"name": "uBaseOpacityColor",
"type": "vec4",
"value": [
0.16877639293670654,
0.16877470910549164,
0.16877470910549164,
1.0
]
},
{
"name": "uDiffuseColor",
"type": "vec4",
"value": [
0.5882353186607361,
0.5882353186607361,
0.5882353186607361,
1.0
]
},
{
"name": "uOcclusionRoughnessMetalnessColor",
"type": "vec4",
"value": [
0.0,
0.9459999799728394,
0.0,
1.0
]
},
{
"name": "uSelfColor",
"type": "vec4",
"value": [
0.0,
0.0,
0.0,
-1.0
]
},
{
"name": "uSpecularColor",
"type": "vec4",
"value": [
0.0,
0.0,
0.0,
0.03124999813735485
]
}
],
"write_a": true,
"write_b": true,
"write_g": true,
"write_r": true,
"write_z": false
}
],
"name": "primitives/plane.geo"
}
],
"rigid_bodies": [
Expand Down Expand Up @@ -1751,7 +1845,7 @@
"parent": 0,
"pos": [
0.7600023746490479,
-0.05000000074505806,
0.026000000536441803,
-1.102294683456421
],
"rot": [
Expand All @@ -1769,7 +1863,7 @@
"parent": 0,
"pos": [
-0.7600018978118896,
-0.05000000074505806,
0.026000000536441803,
-1.102295160293579
],
"rot": [
Expand Down Expand Up @@ -1840,19 +1934,19 @@
{
"parent": 0,
"pos": [
-5.800734043121338,
4.835295677185059,
-1.0195260047912598
-3.7417659759521484,
2.6347224712371826,
-0.5599530935287476
],
"rot": [
36.664085388183594,
90.63136291503906,
-1.2316495485720225e-06
32.36835479736328,
75.88182067871094,
-1.1696840829245048e-06
],
"scl": [
0.9999639987945557,
0.9999359250068665,
0.9999327659606934
0.9998766183853149,
0.9997926354408264,
0.9997674822807312
]
},
{
Expand Down Expand Up @@ -1890,6 +1984,24 @@
0.9999998807907104,
0.9999998807907104
]
},
{
"parent": 0,
"pos": [
0.0,
-0.2933482229709625,
0.31787922978401184
],
"rot": [
6.167694219994335e-22,
180.0,
0.0
],
"scl": [
2.486107110977173,
1.0,
4.917902946472168
]
}
]
}
5 changes: 3 additions & 2 deletions app/resources/vehicles/ai_vehicle/drivable_car.scn.editor
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
9,
12,
10,
13
13,
14
],
"ref": 0
},
Expand Down Expand Up @@ -51,7 +52,7 @@
"subdiv_size": 1.0
},
"navigation_plugin": {
"orbit_distance": 7.620790481567383,
"orbit_distance": 5.0,
"speed": 0.10000000149011612,
"turbo": 1.0
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95a3f62

Please sign in to comment.