Repeat OSL statements for a particular number of iterations.
- [Instructor] Continuing our project…of offering a procedural map in open shading language,…let's add a four loop to repeat…this noise pattern multiple times…and add the results together.…The first order of business is to create…a couple of variables in the statements of our code…in order to keep track of the current frequency…and the current amplitude of the noise…at each iteration of the four loop.…We previously created a point variable…which was used to scale the incoming coordinates…according to the user input parameter base wavelength.…
Right after that line, let's create a new variable…which is going to be a float.…And we'll call it currentfreq, or current frequency,…and set it equal to a value of 1.0…and close that line with a semicolon,…add another carriage return…and create another float variable…and call it currentAmp or current amplitude.…And its starting value or initializing value…will be the base amplitude,…which is the user input parameter…that we previously created, here it is.…
Base amplitude, select that,…
AuthorAaron F. Ross
Skill Level Intermediate
3ds Max 2017: Advanced Lightingwith Aaron F. Ross2h 52m Advanced
3ds Max 2017: Advanced Materialswith Aaron F. Ross2h 34m Intermediate
3ds Max 2018 Essential Trainingwith Aaron F. Ross10h 10m Beginner
3ds Max: Rendering with Arnold (2017)with Aaron F. Ross2h 40m Intermediate
New This Week
3ds Max: Tips and Tricks
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.