بانک اسکریپتهای تری دی مکس | Script Bank

pclord

کاربر متخصص
Quick Clay Render
Submitted by Liam.Davis on Fri, 2009-11-13 15:12.

Version: 1.1
Date Updated: 11/13/2009

aaayt.jpg


One click will render your scene as a 'clay' style image, leaving the scene, materials and all your render settings exactly as they are. Code has been updated to create the floor plane at the lowest vertex in the scene, and to make it easier to customise (different renderers, alter the material colour, environment background and light type).
Additional Info:

When modelling, I often find myself using quick 'clay' renders to get an idea of what my models look like when lit, as it really brings out the edging and detail. But this involved saving my scene, creating a ground plane, positioning it, assigning a clay material to everything, creating the light, rendering it, then reloading the scene because I'd lost all my materials. So I figured I'd give creating a script a go.

It's not perfect, as it's the first proper script I've made, but it does the job. It will find the lowest vertex in the scene, create the ground plane beneath that, sort out the lights and materials, set the renderer to the DSR, do the render, then cleans up after itself (deletes the created nodes, restores all materials, puts the renderer back to whatever you were using).

Only downside - The actual render speed of using skylights isnt great, but that can't be helped, I just love how they look :)

And yes, this has just been written in the past hour because I got fed up of going through the process I described above. Any suggestions on how to improve it are welcome, but go easy on me, I haven't done this before!

Figure I may as well just post the code, it isn't that long:


macroScript ClayRender category: "LiamDavis"
(
-- Variables to change basic settings
rendererToUse = Default_Scanline_Renderer()
clayColour = [255,255,255]
renderBackground = [255,255,255]

clay = standardMaterial diffuse:clayColour shaderType:1
sun = Skylight castShadows: true enabled: true

in coordsys world
min_v = 99999999999
mat_array = #()
m = 1

-- define the clay material

-- Finds the lowest vertex in the scene
for obj in objects do
(
if superclassof obj == geometryClass then
(
-- Take a snapshot of the current objects mesh
checkMesh = snapshotAsMesh obj
-- Find out how many verticies it has for the coming 'for' loop and test each verticies z position to find the lowest
num_verts = checkMesh.numverts
for v=1 to num_verts do
(
vert = getVert checkMesh v
if min_v > vert.z then
(
min_v = vert.z
)
)
delete checkMesh
)
)

-- Create the floorplane at the lowest point
floorplane = plane lengthsegs:1 widthsegs:1 length:10000 width:10000 pos:[0,0,min_v]

-- Store objects current material in an array then assign the Clay material
for obj in objects do
(
append mat_array obj.material
obj.material = clay
)

-- makes sure it renders using the DSR, but leaves it as whatever the user had it as
backgroundSetBackTo = backgroundColor
backgroundColor = renderBackground
rendererSetBackTo = renderers.current
renderers.current = rendererToUse
max quick render -- render the current viewport
renderers.current = rendererSetBackTo
backgroundColor = backgroundSetBackTo

-- delete the added nodes or repeated use would multiply them
delete floorplane
delete sun

-- restore original materials to scene objects
for obj in objects do
(
obj.material = mat_array[m]
m = m+1
)
)
 

pclord

کاربر متخصص
در مورد کاراییشون که برای هر کدوم عکس گذاشتم و معلومه چیکار میکنه.برای استفاده از این اسکریپت ها از منوی MAXScript با گزینه Run script میتونید اسکریپت رو اجرا کنید. اگه با مکس اسکریپت آشنایی ندارین استفاده از بعضی از این اسکریپت ها سخت خواهد بود.
 

crazymax

Member
تشکر

خیلی خیـــــــلـــــی ممنون دوست عزیز از اسکریپتهای خوبی که گذاشتی :cool:
 

navidcom1

New Member
snowflow 1.5 - make snow with the click of a button
last updated on tue, 2010-02-02 03:51. Originally submitted by 48design on 2010-01-25 10:35.

Author name: 48design
version: 1.5
date updated: 02/01/2010
snow_bench.jpg


snowflow is a 3d studio max script/plugin that creates realistic snow with ease! You just pick an object and snowflow does the snow for you! Let the snow fall on your 3d objects and scenes with the click of a button.
Changes:
- procedural snow material (standard,vray) [v1.5]
additional info:

Features:
Self-explaining user interface with integrated help
one-click-solution in most standard situations
multiple snow methods for different needs
advanced settings to get the best out of snowflow
different reality levels to control object interference
preset system for a faster workflow
full control over the calculated mesh
system unit check and conversion to achieve full snow details
autotune options for better performance
caching system to prevent unnecessary recalculations
"snowplug" to stick objects into snow surfaces
procedural snow material (standard,vray) [v1.5]

snowflow_interface.png


examples:
locomotive.jpg


version requirement: 3ds max 2009, 3ds max 2010

homepage url: http://www.zwischendrin.com

download url:
http://www.zwischendrin.com/en/detail/107

http://www.scriptspot.com/files/snowflow_teapots_testscene_3dsmax2010_vray.max

دوست عزیزم من نتوانستم از این استفاده کنم
لطفاً این برنامه را دراختیارم بزارین و چون خیلی لازم دارم .
ممنونم.
 

www_3d_boy3

Well-Known Member
اين اسكريپه رو بايد بخري گويا چون منم نتونستم ازش استفاده كنم
 

amn_mvy

New Member
khob

alan ke ghavanino khundam yani shoma baz ham mitunid copy paste konid???? bazam be hamuun bi rahatun edame midid??? nasihat bud ke vaghte khodetuno talaf nakonid
 

pclord

کاربر متخصص
alan ke ghavanino khundam yani shoma baz ham mitunid copy paste konid???? bazam be hamuun bi rahatun edame midid??? nasihat bud ke vaghte khodetuno talaf nakonid

حتما قوانین رو خوب نخوندی، اینجا انجمن فارسی هست و باید فارسی تایپ کنید.

در مورد اسکریپت ها احتیاجی به توضیح نیست برای هر کدوم عکس گذاشتم و میشه فهمید کارش چیه. در ضمن بهتره پست اول رو بخونی، منبع رو نوشتم. در مورد copy و paste شما اگه ناراحتی استفاده نکن.
 

pclord

کاربر متخصص
SnowFlow 1.5 - make snow with the click of a button
Last updated on Tue, 2010-02-02 03:51. Originally submitted by 48design on 2010-01-25 10:35.

Author Name: 48design
Version: 1.5
Date Updated: 02/01/2010
snow_bench.jpg


SnowFlow is a 3D Studio Max script/plugin that creates realistic snow with ease! You just pick an object and SnowFlow does the snow for you! Let the snow fall on your 3D objects and scenes with the click of a button.
changes:
- procedural snow material (Standard,VRay) [v1.5]
Additional Info:

features:
self-explaining user interface with integrated help
one-click-solution in most standard situations
multiple snow methods for different needs
advanced settings to get the best out of SnowFlow
different reality levels to control object interference
preset system for a faster workflow
full control over the calculated mesh
system unit check and conversion to achieve full snow details
autoTune options for better performance
caching system to prevent unnecessary recalculations
"SnowPlug" to stick objects into snow surfaces
procedural snow material (Standard,VRay) [v1.5]

snowflow_interface.png


examples:
locomotive.jpg


Version Requirement: 3ds Max 2009, 3ds Max 2010

Homepage URL: http://www.zwischendrin.com

Download URL:
http://www.zwischendrin.com/en/detail/107

http://www.scriptspot.com/files/SnowFlow_teapots_testscene_3DSMax2010_VRay.max

اینم لینک دانلود نسخه جدیدتر 1.8:

http://mostafa3d.dl.rapidbaz.com/cBdR/SnowFlow1.8_by_T-mick.rar

یا

http://www.enterupload.com/dtigvnwzncd8/_SnowFlow1.8_by_T-mick.rar_.html
 
آخرین ویرایش:

www_3d_boy3

Well-Known Member
gtroofstuff2.jpg

مکس 2011 فقط
خیلی پلاگین خوبیه
GHOST Town با یه سرچ ساده پیدا می کنید لینکهاشو ...
ولی من نحو نصبشو می خوام
 

metallic2

New Member

compac

Member

pclord

کاربر متخصص
Tutorial + Plugin Snowflow 1.8 for 3ds Max by Asmodeus

این یکی آموزش هم همراهش هست. نحوه نصب هم باید داشته باشه.


دانلود:

کد:
http://www.fileserve.com/file/YFrCcAF

موفق باشید.
 

جدیدترین ارسال ها

بالا