Just ran across your post, someone devised a way to import models from a
text spec on the fly, maybe you can adapt something:
Hi guys. This is a tough one!
I've created a miraculous 3D file importer for Director but I have one
problem with it. It's used like this (you can think this of like a black
box - you don't get the source code, you only see how it works):
Lingo in message window:
-- Creating a new ShockWave3D cast member
set my3DMember = new(#shockwave3D)
my3dMember.name = "w3d3DObject"
set My3DMember = VOiD
-- Generates output in "Input3DText" named cast member
-- So now I have two new cast mebmers: "w3d3DObject" & "Input3DText".
-- And up to this point everything lasts but the rest won't:
-- Fills a variable called "model" with vertices, face values, etc. from
imported 3D model.
set model = VOiD
set model = Make3D("txtInput3DText")
-- Syntax: MakeMesh(CastMember name, Model name, Model vertices,
Model faces, Model colorValues, Model normals, Model textureCoordinates)
MakeMesh("w3d3DObject", model.name, model.vertexList,
model.faceList, , , model.UV)
The result of this is one near perfectly imported model to my
ShockWave3D-member. But this model disappears when I save my project. As
well as everything else in this ShockWave3D-member. When I load my
project I only see a blank ShockWave3D member and filled text member
("Input3DText", if I haven't delled it).
Can anyone assist me on this one. Or is there any description of
ShockWave3D file ormat on the net for download, or can Director
export/save ShockWave3D files?
Btw. I don't want to use this "3D Speedport Xtra", 'cos it s. It
creates built models, that's not what I want. I need perfect control
over every vertice in my 3D world, as any serious 3D maker.
Thanx in advance. Sorry for my grammar as Finnish differs from English a
bit on that... :)