This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SIGGRAPH 2013 | http://s2013.siggraph.org/attendees/attendees | ||||
|---|---|---|---|---|---|
| Courses | http://s2013.siggraph.org/attendees/courses | ||||
| 2013/07/21 | 9:00 | 12:15 | Introduction to Computer Graphics | http://s2013.siggraph.org/attendees/courses/events/introduction-computer-graphics | |
| 2013/07/21 | 9:00 | 12:15 | Mobile Game Creation for Everyone | http://s2013.siggraph.org/attendees/courses/events/mobile-game-creation-everyone | |
| 2013/07/21 | 14:00 | 17:00 | An Introduction to OpenGL Programming | http://s2013.siggraph.org/attendees/courses/events/introduction-opengl-programming | |
| 2013/07/21 | 14:00 | 17:00 | Recent Advances in Light-Transport Simulation: Theory & Practice | http://s2013.siggraph.org/attendees/courses/events/recent-advances-light-transport-simulation-theory-practice | |
| 2013/07/21 | 14:00 | 17:00 | The Digital Production Pipeline | http://s2013.siggraph.org/attendees/courses/events/digital-production-pipeline | |
| 2013/07/21 | 14:00 | 17:00 | Turbulent Fluids | http://s2013.siggraph.org/attendees/courses/events/turbulent-fluids |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc float _r(float $v){ | |
| float $dec=10000.0; | |
| return( int($dec*$v+0.5)/$dec ); | |
| } | |
| proc _showRealflowNodeInfo() | |
| { | |
| string $dir = getenv("TEMP"); | |
| string $fn = `file -q -sn`; | |
| $fn = $dir+"/"+basenameEx($fn)+"_rfnote.txt"; | |
| int $fd=fopen($fn, "w"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc _collectFiles_forRealflowBIN() | |
| { | |
| string $sn = `file -q -sn`; | |
| string $sd = dirname($sn); | |
| string $tmp = getenv("TEMP"); | |
| string $fn = $tmp+"/"+basenameEx($sn)+"_rfbat.txt"; | |
| int $fd=fopen($fn, "w"); | |
| int $nRF = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc _changeAbsPathToRelPath_forRealflowBIN() | |
| { | |
| string $sn = `file -q -sn`; | |
| string $sd = dirname($sn); | |
| string $buf[]={}; | |
| if(catchQuiet( $buf=`ls -type "RealflowMesh"` )) return; | |
| if(catchQuiet( $buf=`ls -type "RealflowEmitter"` )) return; | |
| clear $buf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc string[] _GUI(string $func) | |
| { | |
| if(`window -exists ($func+"Win")`) deleteUI ($func+"Win"); | |
| window -title $func ($func+"Win"); | |
| paneLayout -w 200 -cn "left3" | |
| -paneSize 1 50 15 | |
| -paneSize 2 50 100 | |
| -paneSize 3 50 85; | |
| columnLayout -w 100 -h 50 -adj 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc string[] _GUI(string $func) | |
| { | |
| if(`window -exists ($func+"Win")`) deleteUI ($func+"Win"); | |
| window -title $func ($func+"Win"); | |
| paneLayout -cn "horizontal2" -paneSize 1 100 15 -paneSize 2 100 85; | |
| columnLayout -h 50 -adj 1; | |
| rowColumnLayout -h 50 -nc 2 -cw 1 60 -cw 2 160 -cat 1 "right" 0; | |
| text -l "Node Name"; string $txt=`textField -text "*" ($func+"Tfld")`; | |
| text -l "Node Type"; string $txt2=`textField -text "*" ($func+"Tfld2")`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc _switchCams() | |
| { | |
| string $p=`getPanel -withFocus`; | |
| if(!`modelPanel -ex $p`) return; | |
| string $cams[]={}; | |
| string $cur=`modelPanel -q -cam $p`; | |
| if(nodeType($cur)!="camera"){ | |
| $cams=`listRelatives -pa -s $cur`; | |
| $cur=$cams[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RGB -> HSV | |
| vec3 rgb2hsv(vec3 v){ | |
| const float e=1e-20; | |
| vec4 c=vec4(v,0); | |
| c=mix(vec4(c.rbg,-1),c,step(c.b,c.g)); | |
| c=mix(vec4(c.grb,-1.0/3.0-c.a),c,step(c.g,c.r)); | |
| float cr=c.r-min(c.g,c.b); | |
| return vec3(abs(c.a+(c.g-c.b)/(6*cr+e)),cr/(c.r+e),c.r); | |
| } | |
| // HSV -> RGB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script type="text/JavaScript"> | |
| function _sort(_f) | |
| { | |
| var fn = []; | |
| for(var e=new Enumerator(_f); !e.atEnd(); e.moveNext()) | |
| fn.push({'name':e.item().Name, 'obj':e.item()}); | |
| fn = fn.sort(function(a, b) {return((a.name>b.name)?1:-1);}); | |
| var ret = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function _notepad(str) | |
| { | |
| var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
| var wsh = new ActiveXObject("WScript.Shell"); | |
| var dir = wsh.ExpandEnvironmentStrings("%temp%"); | |
| var sn = ActiveProject.ActiveScene.Parameters("Name").Value; | |
| var fn = dir + "\\" + sn + ".txt"; | |
| var f = fso.CreateTextFile(fn, true, false); |