tSX API 5 - how to change only texture names of polyhedron faces ?

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

tSX API 5 - how to change only texture names of polyhedron faces ? // TS6 and Older

1  |  

Post by Libor // Sep 2, 2008, 3:11am

Libor
Total Posts: 11
Hi all tSX developers,


I have been solving changes of texture names of all faces of the polyhedron. I have to use some shader function, because all faces with changed textures have to keep original shader properties. Did anybody already solved the same problem? I have been using tsxPolyhPaintFace() function, but it works only in Direct 3D Solid Render Display mode. I tried some tsxSHINFO function, but original settings of Caligari phong shader was changed to a default setting.


I have to solve this problem for my customer and than I can continue on the development of my tSX plugins for trueSpace7.6. These plugins are originally developed for trueSpace4, but they works very well in trueSpace7.6 model view. You can find more information on my web page www.pcdesign.cz/truespace7.htm


Thank you for your help in advance.


Libor Stolc

Prague, Czech Republic

Post by remnar // Sep 18, 2008, 12:59pm

remnar
Total Posts: 105
First, here's the link to get the 6.6 SDK
http://www.caligari.com/download/zip/sdk_tS66.zip

I'm not sure what the problem is. I am guessing you want to revert the face shader to a default shader, if there is a change in a texture file name that was painted on the face?

Edit: If you're having problems with your material not showing up when it supposed to, try using the functions
tsxMaterialFixColor, tsxMaterialFixTexture, tsxMaterialFixTransparency depending on the type of material.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2020. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn