Howto? Create/transform objects by bitmap RGB values

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.

Howto? Create/transform objects by bitmap RGB values // The Garage

1  |  

Post by Leif // Dec 30, 2008, 12:20pm

Leif
Total Posts: 276
pic
How to access a bitmap's RGB values and use RGB data to build or modify scene data?


Id like to get (or build) a script to arrange objects in array based on bitmap RGB data. Where to start :) ?


The bitmap's RGB data, as it is read, modifies scale, translate and rotate, and also color (and other shader parameters) of the objects in the array.


If a series of bitmaps, a movie, then the script animates the object's translate (or scale/rotate/color and so on) frame by frame.

Post by ProfessorKhaos // Dec 30, 2008, 2:35pm

ProfessorKhaos
Total Posts: 622
pic
This shouldn't be too hard actually. Really the toughest part would be building your array of object names and that might not be bad if you had them systematically named.

Post by Délé // Dec 30, 2008, 3:00pm

Délé
Total Posts: 1374
pic
The script objects library has some bitmap and color scripts. A good source to learn how to work with colors in script.


I also wrote some array tools some time back. You can examine the code there to see how to create arrays. I've been meaning to update them so they work a bit better, but the basic principle is still the same.

http://forums1.caligari.com/truespace/showthread.php?t=3835

Post by Leif // Dec 30, 2008, 5:35pm

Leif
Total Posts: 276
pic
Thank you for your pointers.


And Délé, I'll download that array script! Earlier this day I did see trueBlue referring to it in his Link Editor Navigator thread.
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