truespace open debug view

    if(!DebugViewFound("Project/Windows Manager Space"))
        CmdPrompt.DebugView('Windows Manager Space', 0);
}

function NodeSubObject(root, index)
{
    return root + "/" + Node.SubObject(root, index);
}

function DebugViewFound()
{
    var WMS = "Project/Windows Manager Space";
    var numwindows = Node.SubObjectCount(WMS);

    for(var winIndex=0; winIndex < numwindows; winIndex++)
    {
        var currentWindow = NodeSubObject(WMS, winIndex);
        if(Node.SubObjectCount(currentWindow) < 1)
            continue;

        var shortname = Node.ShortName(NodeSubObject(currentWindow, 0));
        if( shortname == "LogOutput")
            return true;
    }
    return false;
}

button notes

 

general notes for scripting buttons

var tbbutt = Node.Create(‘Windows Manager Package/Toolbar Button Item’, mytoolbar);
Node.Value(tbbutt, “ControlID2D”) = “{2BBC850E-6EEF-4364-9265-A4A606AE464B}”;//must be this guid
Node.Value(tbbutt, “ControlID3D”) = “{2BBC850E-6EEF-4364-9265-A4A606AE464B}”;
//Node.Value(tbbutt ,”Package”) = “{E0C3ABBA-AA1C-4A09-8089-9ED4A8AC63B9}”;//needed for menu button
Node.Value(tbbutt, “Menu”) = false;
Node.Value(tbbutt, “Name”) = theframeSN;
//Node.Value(tbbutt ,”Preview2D”) = 303;//needed for image button
//Node.Value(tbbutt ,”Preview3D”) = 303;
var tbbutt2 = Node.Rename(tbbutt, theframeSN + “Button”);

truespace links(copied from wiki)

Truespace Links

* United 3d Artists website and forum
* truespace faq and download links

To install dribble:

  • download and install 3Delight
  • download dribble source code and unrar the file
  • inside find a zip archive – .\dribble_source_092509\dribble\install\dribble1.04wip080808.zip
  • unzip to find the setup program inside – dribble1.04wip080808_setup.exe
  • download dribble shaders for 3Delight 9.0 and copy to the \Program Files3Delight\shaders\ folder

truespace bugs(copied from wiki)

truespace 6.6

  • The truespace installers will work up to version 6.6 for windows7 64bit, but the service packs will not install. This may be true for win7 32bit as well. Workaround is to copy the folder directories from a machine that already has SP1 and or SP2 installed onto the unpatch truespace folders on the win7 machine. This is true for truespace and the conversion pak installers for the service packs.

truespace 7.6

  • The Soft Select custom profile image control has a bug in that it only sees the alpha channel not the color. So it needs a 32 bit image to work.
  • The Photoshop(psd), Tagged Image Format(tif) and Paint Shop Pro(psp) image formats do not load.
  • If you save an object from a material instanced scene and load it into a fresh scene it looks the same but the material has been corrupted and cannot be edited.
    • Workaround is to change material settings to No Instancing and uncheck Edit Material Directly then pick the object material and reapply it back onto the object to save the material definition within the object.

truespace7.61

  • trueSpace 7.61 Save Workspace Animation to file – going to Model Space and using the Render Scene To File, selecting the Workspace option produces an stationary animation. Problem also shows as no motion in model space when scrubbing the workspace time line.
  • Activate wireframe, transparent, or wireframe + transparent display mode, remove all lights and add a spotlight. The result is that all meshes in the scene disappear unless they fall within the spotlight cone. **Workaround is to add an ambient light with black color.
  • Render Engine selection does not work in the Panel view, PhotoRender. In fact none of the render settings from the PhotoRender panel works.
    • Workaround is to use TS6 Files – Preferences panel to select the render engine and right click the corresponding buttons to change items like background color.
  • The workspace Spotlight shines in 2 directions.
    • Workaround is to turn off hardware shadow filter in the hardware settings dialog.
  • The Displacement Mapper panel image control is the same color as the panel background. Making it invisible. The image control is located to the right of the words “Height map”, so control click in that general area to load an image.
  • The Soft Select custom profile image control is the same color as the background and so invisible. It also has a bug in that it only sees the alpha channel not the color.
  • The Photoshop(psd), Tagged Image Format(tif) and Paint Shop Pro(psp) image formats do not load.
  • If you expand a Matrix or OwnerMatrix input and decide to remove the ExpandInMatrix node, you must disconnect it first or the item will not move in 3d space until the input is reset.
  • “Zoom to Fit All” for colors in the FCurve editor will cause a crash.
  • The windows xp animated screen character that appears when you do a search in Explorer(Windows Explorer not Internet Explorer) stops the truespace button tooltips from displaying. Select “Change Preferences” then choose “Without an animated screen character” to fix it.
  • Loading a context does not load completely.
    • Close truespace and open it and the context load will be complete.
  • If you save an object from a material instanced scene and load it into a fresh scene it looks the same but the material has been corrupted and cannot be edited.
    • Workaround is to change material settings to No Instancing and uncheck Edit Material Directly then pick the object material and reapply it back onto the object to save the material definition within the object.
  • The material picker for workspace does not work when switching to the camera view.
    • Workaround is to make some change to the scene after the switch to camera view. Point Edit something, move or scale something, add a new primitive.

truespace renderers(copied from wiki)

Dribble

To install dribble:

  • download and install 3Delight
  • download dribble source code and unrar the file
  • inside find a zip archive – .\dribble_source_092509\dribble\install\dribble1.04wip080808.zip
  • unzip to find the setup program inside – dribble1.04wip080808_setup.exe
  • download dribble shaders for 3Delight 9.0 and copy to the \Program Files\3Delight\shaders\ folder

Note that as of 3Delight ver 9.0.84(maybe earlier) that the license server is no longer required unless you need to run on more than 2 cores.
How to Recompile the Shaders:

3Delight must already be installed to run the shader compiler.

After unRaring the file find the shaders folder

\dribble_source_092509\dribble\shaders
new way:

select the sl files in explorer(max of 15 files at one time), right click and choose “Compile with 3Delight”
old way:

open a command window to this location – windows 7 shift-right click on the folder gives an option to open the command window to that location

type the following command:

shaderdl *.sl
The result will be that all the old *.sdl files will be replaced with new ones specific to the version of 3Delight you are running. Copy the new sdl files to the 3Delight shaders folder. C:\Program Files (x86)\3Delight\shaders

Indigo

Yafaray

Virtualight

The virtualight download includes some vs and bitmap files that are missing from the last trueSpace release(7.61)

truespace misc sdk notes from the wiki

RsApp.Help()

creates some xml documentation files RsCmdDoc.xml and RsNodeDoc.xml
RsImport.ExportCollada(‘filename’,’list of nodes’) – will export a collada file via script
Widgets.Rotate == rotate about origin (0,0,0) then offset back to original position
WindowsManager.MoveWindow name item enhanced about possibility to work with working area size or the whole window size.

   * Example:
         o WindowsManager.MoveWindow(idWindow, -1, -1, Width, Height, WorkAreaSize, -1, -1);

trueSpace Python Notes(copied from wiki)

The python samples don’t work for trueSpace7.61 unless you copy the contents of the PythonScripts folder into the tS folder. The other option is to add 2 lines to the top of your python script:

import sys

sys.path.append(‘PythonScripts’)

This tells python to look inside the PythonScripts folder for modules to load.

Bug: GetMaterial(matidx), the object get material function always returns None.
Tutorials on the Wayback Machine, look at the early years:

http://web.archive.org/web/20040415000000*/http://www.3dfuel.com

trueSpace General SDK Notes(copied from wiki)

To change the version of a plugin from v.1638401 in the plugin manager change the RpExamplesPlugin.h from
#define EXAMPLE_PACKAGE_VERSION1 1 // cmdprompt package version

#define EXAMPLE_PACKAGE_VERSION EXAMPLE_PACKAGE_VERSION1

to

#define EXAMPLE_PACKAGE_VERSION1 1 // cmdprompt package version

//#define EXAMPLE_PACKAGE_VERSION EXAMPLE_PACKAGE_VERSION1

#define EXAMPLE_PACKAGE_06192010 3 //my june 19 2010 version

#define EXAMPLE_PACKAGE_VERSION EXAMPLE_PACKAGE_06192010

will change the version to v.1635403
//from kernel.h

   //enum RtPixelFormat
   //{   
   BFMT_UNKNOWN    = 0;
   BFMT_A8R8G8B8    = 1;
   BFMT_A16B16G16R16    = 2;
   BFMT_A32fB32fG32fR32f    = 3;
   BFMT_R8    = 4;
   BFMT_R16    = 5;
   BFMT_R32f    = 6;
   BFMT_FORCE_DWORD    = -1;
  // } ;