This file contains 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
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains 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
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
This file contains 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
macroScript ExportSpline category:"ghiboz" | |
( | |
for o in selection do | |
( | |
nS = numSplines o | |
print ("num total splines:" +nS as string ) | |
nK = numKnots o | |
print ("num total knots:" + nK as string ) | |
This file contains 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
// node iterator | |
// 1.x | |
Ogre::Node::ChildNodeIterator node_it = node->getChildIterator(); | |
// 2.x | |
Ogre::Node::NodeVecIterator node_it = node->getChildIterator(); | |
// create child | |
// 1.x | |
mEarNode = scene->getRootSceneNode()->createChildSceneNode(Ogre::Vector3(0,0,0), Ogre::Quaternion::IDENTITY); | |
Ogre::SceneNode * nodeSign = node->createChildSceneNode(sName); |
This file contains 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
macroScript GhibozTools category:"ghiboz" | |
( | |
rollout GhibozTools "ghiboz tools" | |
( | |
group "Materials 255 :" | |
( | |
--spinner _SRad "radius" range:[0,30,10] scale:0.0001 | |
--button _About "About Button" | |
button _Btn255 "Color Selected Objects" | |
toolTip:"Set ambient, diffuse and specular to 255 255 255" |
This file contains 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
macroScript WeldSmooth category:"ghiboz" | |
( | |
for o in selection do | |
( | |
if( isKindOf o GeometryClass ) then -- weld only in geometry objects | |
( | |
if classof o.baseObject == Editable_Mesh then | |
( | |
print o.name | |
meshOp.weldVertsByThreshold o.mesh o.mesh.verts 0.001 |
This file contains 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
macroScript TestMaterial category:"ghiboz" | |
( | |
materialID = 1 | |
print '-------------------' | |
for materialID=1 to meditmaterials.count do | |
( | |
if (classof meditMaterials[materialID] == Standardmaterial) then | |
( | |
if (meditMaterials[materialID] != undefined) then | |
( |
This file contains 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
void Render::initShiny() | |
{ | |
/// material factory setup | |
sh::OgrePlatform* platform = new sh::OgrePlatform("General", sBasePath + "data/common"); | |
platform->setCacheFolder(PATHMANAGER::GetCacheDir()); | |
mFactory = new sh::Factory(platform); | |
sh::Factory& fct = sh::Factory::getInstance(); | |
fct.setReadSourceCache (true); |
This file contains 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
material grsDS | |
{ | |
lod_values 0.1 2 | |
diffuse 1 1 1 1 | |
specular 0 0 0 0 1 | |
ambient 1 1 1 | |
emissive 0 0 0 | |
scene_blend default |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder