1
00:00:05,780 --> 00:00:06,660
Hey what's up everyone.

2
00:00:06,660 --> 00:00:13,770
Mark Price here at Dover slopes dot com and now it's time to actually get some 3D models in our project

3
00:00:13,770 --> 00:00:16,200
set up our assets as well to add that to the asset.

4
00:00:16,200 --> 00:00:22,250
So first things first is I would like to get rid of the ship and the texture here.

5
00:00:22,350 --> 00:00:24,280
OK we don't need either of those.

6
00:00:24,330 --> 00:00:29,000
Someone or right click these and click delete and move the trash.

7
00:00:29,380 --> 00:00:34,960
And then what I'm going to do is inside of this I'm going to create an new folder we're just going to

8
00:00:34,960 --> 00:00:35,850
call this folder.

9
00:00:35,890 --> 00:00:36,940
Click it here press enter.

10
00:00:36,940 --> 00:00:41,900
We're going to call this textures and then at the top level all important 3-D objects.

11
00:00:41,920 --> 00:00:44,630
OK so we've got some 3D objects here.

12
00:00:44,800 --> 00:00:46,310
You can see these assets.

13
00:00:46,330 --> 00:00:49,740
So we've got a pipe for half pipe the pyramid object and the quarter pipe.

14
00:00:49,890 --> 00:00:51,850
And then these are two assets here.

15
00:00:51,850 --> 00:00:53,800
So let's go to the pipe asset.

16
00:00:54,130 --> 00:00:54,670
OK.

17
00:00:54,820 --> 00:01:03,670
And notice it's piped DHP so it doesn't really work with any any type of 3 files except DHP and I know

18
00:01:03,670 --> 00:01:06,950
this because I tried and I looked it up and it had problems.

19
00:01:07,120 --> 00:01:13,330
And so I actually purchased these assets that we'll be using from Turbo Squidoo you can buy them there.

20
00:01:13,330 --> 00:01:20,110
You cannot redistribute these you cannot sell these or publicly publicly or commercially sell these.

21
00:01:20,350 --> 00:01:22,940
AN APP OF ANY KIND that you're making money on.

22
00:01:23,050 --> 00:01:27,550
This is for educational purposes only so if you want to buy these assets you must purchase a license

23
00:01:27,640 --> 00:01:32,010
at Turbo's squid dot com but you can use them here for your free app in this project.

24
00:01:32,090 --> 00:01:36,350
And they actually didn't come in this format here OK.

25
00:01:36,370 --> 00:01:40,000
They came in multiple formats like oh they are SBX.

26
00:01:40,000 --> 00:01:43,510
And what actually had to do was I had to download blender.

27
00:01:43,830 --> 00:01:44,230
OK.

28
00:01:44,260 --> 00:01:45,580
Go to Blender dot com.

29
00:01:45,580 --> 00:01:50,160
And I went and imported these in the blender and exported them in da format.

30
00:01:50,170 --> 00:01:54,010
So my point is you're going to be doing things like that.

31
00:01:54,100 --> 00:01:56,270
And let me just show you one example.

32
00:01:56,530 --> 00:02:01,090
So in case you run into the same problem which I did which you probably will or you can know how to

33
00:02:01,090 --> 00:02:01,600
do it.

34
00:02:01,780 --> 00:02:04,920
So make sure you download blender on your computer.

35
00:02:04,990 --> 00:02:05,810
OK.

36
00:02:06,190 --> 00:02:06,850
It's FREE.

37
00:02:06,850 --> 00:02:07,620
Blender is free.

38
00:02:07,630 --> 00:02:09,390
It's Blendr dot org.

39
00:02:09,700 --> 00:02:10,300
OK.

40
00:02:10,540 --> 00:02:13,650
And just show you here.

41
00:02:13,890 --> 00:02:19,540
So escape ramp model so I got all these objects here and they came with some Blendr files All right

42
00:02:19,570 --> 00:02:20,440
excuse me.

43
00:02:20,530 --> 00:02:23,830
This one came with blunder files other ones that I had here.

44
00:02:23,920 --> 00:02:29,030
I actually had to I had to import these RBJ files into blunder and export them.

45
00:02:29,040 --> 00:02:33,270
So you may have to mess around and figure things out.

46
00:02:33,340 --> 00:02:37,810
You may have to import them into your favorite 3D program in Blender's free.

47
00:02:37,840 --> 00:02:40,550
And so anyway that came with this blunder files.

48
00:02:40,600 --> 00:02:46,180
And so what I had to do was double click to open it and blender which I had downloaded and of course

49
00:02:46,210 --> 00:02:53,440
there's you know 3D ramp and I would go to a file export and the top one here Kolata da da that's what

50
00:02:53,860 --> 00:02:55,720
that's what Apple works with in Scene case.

51
00:02:55,720 --> 00:02:59,510
So you can of course export import many formats here.

52
00:02:59,710 --> 00:03:00,950
So OK.

53
00:03:01,060 --> 00:03:02,930
So a lot to take in I know.

54
00:03:03,010 --> 00:03:04,640
But you may run and those problems get blender.

55
00:03:04,690 --> 00:03:05,590
It's FREE.

56
00:03:05,590 --> 00:03:08,380
Watch a future Horizonte we have a course on it.

57
00:03:08,560 --> 00:03:09,700
You can get familiar with it here.

58
00:03:09,700 --> 00:03:15,850
So anyway enough talking here let's go and drag the pipe in and it's three textures.

59
00:03:15,850 --> 00:03:21,400
We've got a aspic a spec bump and pipe we're not going to use the spec or the bump.

60
00:03:21,460 --> 00:03:23,990
I don't think we're gonna use the bump but we'll drag it in anyway.

61
00:03:25,880 --> 00:03:27,590
OK so those are over there.

62
00:03:28,190 --> 00:03:30,710
And let's go ahead and grab the pyramid.

63
00:03:30,980 --> 00:03:37,020
So I'm just going to draw the DA e-file over here we go.

64
00:03:37,710 --> 00:03:40,160
And the textures.

65
00:03:40,470 --> 00:03:44,330
And we could have made a for a folder for each of these that has the texture and the object.

66
00:03:44,340 --> 00:03:45,030
It doesn't matter.

67
00:03:45,030 --> 00:03:46,440
It's not a huge app.

68
00:03:46,740 --> 00:03:48,350
So I'm not worried about it.

69
00:03:48,450 --> 00:03:55,570
Pyramid and in the quarter pipe drag it here and the textures we will drive over here.

70
00:03:56,700 --> 00:03:58,050
Very cool.

71
00:03:58,320 --> 00:04:00,720
So there's our 3-D assets.

72
00:04:00,720 --> 00:04:02,460
Let's go to the images here.

73
00:04:02,460 --> 00:04:08,950
And what I'm going to do is select the images or excuse me the assets folder there we go.

74
00:04:09,060 --> 00:04:11,190
And we're just going to command a.

75
00:04:11,490 --> 00:04:14,890
And drag them all over here like so.

76
00:04:15,690 --> 00:04:17,320
No big deal.

77
00:04:17,490 --> 00:04:20,310
So let's go look at some of the stuff here.

78
00:04:20,310 --> 00:04:22,470
So pipe that DA.

79
00:04:22,500 --> 00:04:23,780
So there it is.

80
00:04:24,120 --> 00:04:25,570
If you're freaking out because it's gray.

81
00:04:25,620 --> 00:04:27,520
We're going to fix that here.

82
00:04:27,600 --> 00:04:31,590
So something to understand is idea if I will work the same as the seen file.

83
00:04:31,680 --> 00:04:38,580
And to my knowledge because I haven't found anything to specify yet there's no advantage or disadvantage

84
00:04:38,610 --> 00:04:41,660
of using a sealed file versus a DA file.

85
00:04:41,900 --> 00:04:45,630
But however if you do want to use a sound file.

86
00:04:45,710 --> 00:04:53,580
OK well you can do is you can click this asset here and you can go to editor convert to scene kit file

87
00:04:53,580 --> 00:04:59,210
format and what it will do is it will convert the DA e-file to a scene kit format again.

88
00:04:59,460 --> 00:05:03,350
I can't find any type of information out there that says there's an advantage to doing that.

89
00:05:03,480 --> 00:05:09,300
But if you look at Apple's example projects they all use the scene kit format so you feel free to do

90
00:05:09,300 --> 00:05:09,470
that.

91
00:05:09,480 --> 00:05:15,240
If you would like we're going to leave them at Dot da files here because it works just fine.

92
00:05:15,240 --> 00:05:18,660
So you can click the drag move things around.

93
00:05:18,780 --> 00:05:21,400
You're obviously noticing that it's gray So let's go ahead and fix that.

94
00:05:21,510 --> 00:05:23,670
And what you're going to want to do is select your object here.

95
00:05:23,700 --> 00:05:28,200
It'll be orange like so you're going to see some icons over here in the top right hand side.

96
00:05:28,500 --> 00:05:33,810
And the first things that we're going to do is with this cube looking icon here the note inspector we're

97
00:05:33,810 --> 00:05:38,630
going to give it a new name and identity and we're going to call this the pipe for the half pipe.

98
00:05:38,790 --> 00:05:39,940
OK.

99
00:05:39,960 --> 00:05:46,500
And the scales point zero one 1 which is fine and that's the default scale and seen here.

100
00:05:46,620 --> 00:05:48,640
And then what I'm going to do.

101
00:05:48,690 --> 00:05:50,990
You can also in the geometry we're not going to do that.

102
00:05:51,000 --> 00:05:53,050
What I'm gonna do is go over here to the materials.

103
00:05:53,220 --> 00:05:58,150
OK let's just call this pipe and notice how it's just gray right.

104
00:05:58,350 --> 00:06:00,600
Well the diffuse the texture is going to go.

105
00:06:00,600 --> 00:06:05,520
So what we're going to do is we're going to change to diffuse from the current color and we're going

106
00:06:05,520 --> 00:06:12,760
to change this over to the skate underscore pipe that J peg and as you can see there's now designs on

107
00:06:12,760 --> 00:06:16,800
it and if you look at it like it's a black What's wrong with it it's black right here and here it's

108
00:06:16,810 --> 00:06:18,880
because of the lighting here in this scene.

109
00:06:18,880 --> 00:06:24,690
So with the lighting model what I'm going to do is I'm just going to change this to constant so you

110
00:06:24,690 --> 00:06:26,520
can see everything OK.

111
00:06:26,550 --> 00:06:29,010
No lighting it's just all bright which is cool.

112
00:06:29,040 --> 00:06:31,240
So it's nice a little tagging there.

113
00:06:31,320 --> 00:06:41,370
And then what we'll do is on the Where is it here and it multiply occlusion reflective Oh I see

114
00:06:44,440 --> 00:06:51,800
if we use our Phong lighting then we can use the specular matte.

115
00:06:52,040 --> 00:06:52,690
OK.

116
00:06:53,020 --> 00:06:58,930
So if you want to use the lighting that's default here with the scene you can change it back to Phong

117
00:06:58,930 --> 00:07:02,380
and then you can implement the specular map and the specular map what it does is it gives highlights

118
00:07:02,380 --> 00:07:08,650
and things like that onto your 3D model to give the illusion of depth and brightness and things like

119
00:07:08,650 --> 00:07:09,720
that.

120
00:07:09,850 --> 00:07:11,470
But we're going to do the constant.

121
00:07:11,470 --> 00:07:16,900
So it's Allbright so we can see here which of course specular lighting wouldn't work when it's all 100

122
00:07:16,900 --> 00:07:19,600
percent lit but it's fine for now.

123
00:07:19,600 --> 00:07:21,010
You can adjust as you desire.

124
00:07:21,010 --> 00:07:23,130
So we're going to fix this for all of them.

125
00:07:23,260 --> 00:07:31,420
So we're going to go into the pyramid select it and let's click the identity node thing here and let's

126
00:07:31,420 --> 00:07:32,880
change this to a pyramid.

127
00:07:32,890 --> 00:07:35,780
The reason why we have to name these is because we're going to reference these names in code.

128
00:07:35,780 --> 00:07:41,790
So you do have to change the names in 0 and it's common mistake also to go to geometry and change that

129
00:07:41,820 --> 00:07:46,530
but then forget to change the identity here the identities the name of the note itself which is very

130
00:07:46,530 --> 00:07:47,460
important to change.

131
00:07:47,580 --> 00:07:55,080
OK that material Let's call this pyramid and we'll change it to constant lighting and from diffuse we're

132
00:07:55,080 --> 00:07:57,520
going to change it to the pyramid.

133
00:07:58,640 --> 00:08:04,670
Quarter skate pite pipe rectangle is that what well that's what it's called.

134
00:08:04,720 --> 00:08:07,740
The rectangle doesn't look like a rectangle to me.

135
00:08:08,140 --> 00:08:09,910
Actually it does looks more like a pyramid.

136
00:08:09,910 --> 00:08:15,690
OK so there's a rectangle or a pair mitten which looks good and save that here.

137
00:08:15,700 --> 00:08:22,530
Let's go to the quarter pipe and what I'm going to do is give it a name.

138
00:08:22,560 --> 00:08:27,650
We're just going to call this quarter and go back to the material.

139
00:08:27,690 --> 00:08:31,980
Just give that a name we don't have to but it looks really ugly without giving it a name.

140
00:08:32,030 --> 00:08:38,910
And what I want to do is change the refuse to quarter j peg and we're going to go from Phong to constant.

141
00:08:39,240 --> 00:08:42,450
And notice here how there is.

142
00:08:43,350 --> 00:08:45,890
There's it's like gray.

143
00:08:45,900 --> 00:08:47,590
It's the material is not showing on it.

144
00:08:47,850 --> 00:08:53,430
And that's because it's a separate piece of the model and it's a different texture that goes on here.

145
00:08:53,820 --> 00:08:55,740
And we're not going to deal with that right now.

146
00:08:55,740 --> 00:08:57,330
So what I'm going to do and I don't like it anyway.

147
00:08:57,330 --> 00:08:59,050
I'm actually going to delete so.

148
00:08:59,100 --> 00:09:03,110
So you can select the whole ramp or you can select just this guy here.

149
00:09:03,120 --> 00:09:05,380
I'm going to select just the outside here and delete it.

150
00:09:06,190 --> 00:09:07,730
And I like it better without it anyway.

151
00:09:07,870 --> 00:09:12,430
So there's a quarter pipe which I think is pretty cool.

152
00:09:12,430 --> 00:09:17,350
By the way this may seem really easy to you but it took me like a good three hours to figure out how

153
00:09:17,350 --> 00:09:20,560
to import and export proper file types get the sizing in there.

154
00:09:20,590 --> 00:09:26,860
So this is really good and important information to know and things to do here so I'm glad you get to

155
00:09:26,860 --> 00:09:31,870
see it here because it was very frustrating and cool.

156
00:09:31,870 --> 00:09:33,130
This looks really good.

157
00:09:33,130 --> 00:09:37,240
So I think our models are set up correctly they're imported correctly.

158
00:09:37,240 --> 00:09:42,070
And what we can do to see if it's actually working OK.

159
00:09:42,250 --> 00:09:44,810
We can go back to our rent place or AVC.

160
00:09:45,250 --> 00:09:46,090
All right.

161
00:09:46,090 --> 00:09:53,230
And what we can do here is we can change this instead of ship it does seem we can just pick one of these

162
00:09:53,230 --> 00:10:03,200
here like let's say pipe that DHP and then run the project and see what happens.

163
00:10:04,890 --> 00:10:10,350
And when you run the app you should see a big massive object with graffiti on it in front of you like

164
00:10:10,350 --> 00:10:15,210
so and that means it's working now of course it's not properly positioned to the ground or anything

165
00:10:15,210 --> 00:10:22,160
like that it's just floating in outer space and what I think is really funny is how some of the tutorials

166
00:10:22,160 --> 00:10:25,940
out there on a market this is their tutorial.

167
00:10:26,030 --> 00:10:29,650
They run the app and they show the object in 3-D space and that's Nuyorican.

168
00:10:29,660 --> 00:10:34,820
But anyway we're going to do a lot more than that but make sure it's up and running make sure there's

169
00:10:34,820 --> 00:10:35,510
no crashes.

170
00:10:35,510 --> 00:10:41,030
And you should see an object at this point you can basically put any type of 3D object in here so you

171
00:10:41,030 --> 00:10:45,890
want to go by your favorite 3-D assets whether it's a game character you know you want little minions

172
00:10:45,890 --> 00:10:52,070
running around in the real world you can do that mixture you convert them to a dot da e-file.

173
00:10:52,070 --> 00:10:57,920
And then you can import them here just for fun to see how they look and you have you have the tools

174
00:10:57,920 --> 00:11:02,150
needed to do that now so that's it for this video now Mark Price at death slopes dot com.

175
00:11:02,150 --> 00:11:03,030
Moving on and forward.

