The Third & The Seventh from Alex Roman on Vimeo.
Compositing Breakdown (T&S) from Alex Roman on Vimeo.
ARCHITECTURAL VISUALISER | TEXTURE ARTIST & 3D MODELLER for
BLACK MESA - A HL2 MODIFICATION | SOFTIMAGE , OCTANE RENDER, SHIVA 3D, REAPER.FM & SKETCHUP USER | HALFLIFE2 & ARMA2 MODDER | CMIVFX AFFILIATE | ANDROID / MOBILE DEVELOPER
The Third & The Seventh from Alex Roman on Vimeo.
Compositing Breakdown (T&S) from Alex Roman on Vimeo.
'Objdir = the directory you want the exported Obj to go to (change if you wish)
Objdir = "C:\3d\Stanhull\"
'StanhullDir = the directory you have put stanhull.exe in (change if you wish)
StanhullDir = "C:\3d\Stanhull\"
'NOTE: file is always created in the Softimage\version xx\Application\bin dir and always called hull.obj
fileOutLoc = Application.InstallationPath( siFactoryPath ) & "\Application\bin\hull.obj"
set list = GetValue( "SelectionList" )
if list.count = 0 then
MsgBox "Please select at least one polymesh object first!!"
else
for each item in list
logmessage item.name
name = item.name
if item.type = "polymsh" then
'select objects one by one and export
SelectObj name, , True
getObjname = Objdir & "convert.obj"
ObjExport getObjname, , , , , , , , , , 0, False, , , False
'set up s.ystem command to run Stanhull.exe
cmd = StanhullDir & "StanHull " & getObjname & " -t"
cmdResult = s.ystem( cmd )
set inObj = ObjImport( fileOutLoc, 1, 0, True, True, False, True )
'select new object and set up geometry approximation as needed for .phy SMDs
SelectObj inObj, , True
MakeLocal inObj & ".geomapprox", siDefaultPropagation
SetValue inObj & ".geomapprox.gapproxmoad", False
CreateProjection , siTxtCubic, siTxtDefaultCubic, , "Texture_Projection"
FreezeModeling
end if
next
end if
dim name4. Lastly, I apply cubic UVs to all of the physics box objects by selecting them and running this script (below). Once frozen, they are ready for exporting as SMD files for compiling.
set list = GetValue( "SelectionList" )
if list.count = 0 then
MsgBox "Please select at least one polymesh object first!!"
else
'start rendermap make routine - depending on scene size and object complexity this could take a while... :)
for each item in list
logmessage item.name
name = item.name
if item.type = "polymsh" then
SelectObj name, , True
MakeLocal ".geomapprox", siDefaultPropagation
SetValue ".geomapprox.gapproxmoad", False
end if
next
end if
dim namefreeze ALL. (You may need to add an image to the material).
set list = GetValue( "SelectionList" )
if list.count = 0 then
MsgBox "Please select at least one polymesh object first!!"
else
'start rendermap make routine - depending on scene size and object complexity this could take a while... :)
for each item in list
logmessage item.name
name = item.name
if item.type = "polymsh" then
SelectObj name, , True
CreateProjection , siTxtCubic, siTxtDefaultCubic, , "Texture_Projection"
end if
next
end if
Archtools for Softimage demostration from Jason Wells on Vimeo.