View Full Version : Object Embedded LScript
MacGregg
12-10-2007, 03:16 AM
Is there some way to embed an LScript into an object that can define or re-define the shape of the object based on some algorithm. As an example a dice that you could define each of the faces on the die AND its orientation, which side is up. Or how about a domino, defining the spots based on some random number. Mostly I want just add some modifications to a base object, but if it is possible to do more that would be great. Would it be possible to do this as a Shader?
adamredwoods
12-11-2007, 01:11 PM
I am not exactly sure of your needs, but it is possible to do some things you suggest. Not easy, but possible.
Lightwave is not a game engine, so therefore needs some elbow work, or ways to 'cheat' the effect you want.
Random dice faces would need premade faces, then images can be applied to the faces of a cube through a randomizer. Maybe even possible through nodes without an Lscript.
But if you're going after regular dice or dominoes, it's easier just making them by hand instead of an Lscript way.
Titus
12-11-2007, 02:15 PM
Maybe as a volumetric script.
MacGregg
12-13-2007, 05:35 AM
Can a Volumetric LScriipt be embedded into the object? I understand the difficulties in programming, but for something so symmetrical I thought it would not be too hard as long as I could attach it to the independent objects. Then it would be "know" the info about that particular object and could be used as input to the LScript to define the various sides.
Sure wish LW was Object Oriented or Class structured.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.