PDA

View Full Version : Opening PC Scenes



Paul Goodrich
06-17-2003, 12:31 PM
Hi all,
I just sprung for the Relivity plug in by Prem and found that the scenes he supplies with the plug in as Demos don't open correctly. I talked to him about this and he said that it's due to a PC -Mac transation problem, due to the plug in. Now I've opened, used and sent scenes back and forth with my PC using friends and not had a problem (However these did not have commercial plug ins on them). Prem said that there was a utility program that fixed this issue (opened the scene file, I guess in a text editer, and replaced the bad syntax with the correct text). Does anyone know about this? Or know where I could look for it? Or is there something simple I could do in Simple text to fix this? Thanks
Paul Goodrich

mlinde
06-17-2003, 01:34 PM
Paul, you probably need to open the scene file, find the instances of the plug-in where referenced, and change the directory delimiter. On windows PCs the delimiter is a \ (backslash), while on the Mac it is : (colon).

An example would be to change this:
BloodCells\motions\erythrocyte.mot
to this:
BloodCells:motions:erythrocyte.mot

Make sure you DON'T change those paths that use the forward slash (/), which is usually the object file locations. The forward slash is the universal delimiter, which works for both Mac & PC, with specific instructions (but not all of them).

I'd use BBEdit lite, if you have it, or something more robust than simpletext

Paul Goodrich
06-17-2003, 03:05 PM
Well, I see back slashes \ for the objects. but am confused on where the colons : need to go. This is the scene file in simple text-

LWSC
1

FirstFrame 1
LastFrame 60
FrameStep 1
PreviewFirstFrame 1
PreviewLastFrame 420
PreviewFrameStep 1
FramesPerSecond 30.000000

LoadObject OBJECTS\relativity\bfly_bod.lwo
ShowObject 8 7
ObjectMotion (unnamed)
9
1
0 0 0 0 0 0 1 1 1
0 0 0 0 0
EndBehavior 1
ParentObject 4
Plugin ItemMotionHandler 1 Relativity
X=IF(#h > 0.001)*0.05*FRAC(frac2,3)*#h
Y=-0.006*sin(13*DIST(bfly_parent,t)+#i)+(IF(#h > 0.001)*0.05*FRAC(frac1,3)*#h)
Z=
H=
P=
B=
XS=
YS=
ZS=
A=
BV=
C=
D=
E=
F=
G=
HV=SPEED(bfly_parent,t)
I=IF(#h > 0.001)*4*_pi*t
J=
K=
L=
M=
N=
O=
PV=
Q=
R=
Mode=0
Disabled=0
UseDegrees=0
COMMENT1=
COMMENT2=
COMMENT3=
COMMENT4=
COMMENT5=
COMMENT6=
EndofData
EndPlugin
ShadowOptions 7

LoadObject OBJECTS\relativity\bfly_lwing.lwo
ShowObject 8 7
ObjectMotion (unnamed)
9
1
-0.002745368 0 0.001882273 0 0 0 1 1 1
0 0 0 0 0
EndBehavior 1
PivotPoint -0.002745368 0 0.001882273
ParentObject 1
Plugin ItemMotionHandler 1 Relativity
X=
Y=
Z=
H=
P=
B=BLEND(-45*sin(13*DIST(bfly_parent,t)+4*_pi*t),0,-90,1,X(wing_fold,t))
XS=
YS=
ZS=
A=
BV=
C=
D=
E=
F=
G=
HV=
I=
J=
K=
L=
M=
N=
O=
PV=
Q=
R=
Mode=0
Disabled=0
UseDegrees=1
COMMENT1=
COMMENT2=
COMMENT3=
COMMENT4=
COMMENT5=
COMMENT6=
EndofData
EndPlugin
ShadowOptions 7

LoadObject OBJECTS\relativity\bfly_rwing.lwo
ShowObject 8 7
ObjectMotion (unnamed)
9
1
0.002864032 0 0.002115967 0 0 0 1 1 1
0 0 0 0 0
EndBehavior 1
LockedChannels 24
PivotPoint 0.002864032 0 0.002115967
ParentObject 1
Plugin ItemMotionHandler 1 Relativity
X=
Y=
Z=
H=
P=
B=BLEND(45*sin(13*DIST(bfly_parent,t)+4*_pi*t),0,9 0,1,X(wing_fold,t))
XS=
YS=
ZS=
A=
BV=
C=
D=
E=
F=
G=
HV=
I=
J=
K=
L=
M=
N=
O=
PV=
Q=
R=
Mode=0
Disabled=0
UseDegrees=1
COMMENT1=
COMMENT2=
COMMENT3=
COMMENT4=
COMMENT5=
COMMENT6=
EndofData
EndPlugin
ShadowOptions 7

AddNullObject bfly_parent
ShowObject 8 7
ObjectMotion (unnamed)
9
2
0 0 0 0 0 0 2 2 2
0 0 0 0 0
0 0 20.52499 0 0 0 2 2 2
300 0 1 0 0
EndBehavior 1
LockedChannels 3
ShadowOptions 7

AddNullObject frac1
ShowObject 8 7
ObjectMotion (unnamed)
9
1
0 0 0 0 0 0 4 4 4
0 0 0 0 0
EndBehavior 1
ShadowOptions 7

AddNullObject frac2
ShowObject 8 7
ObjectMotion (unnamed)
9
1
0 0 0 0 0 0 3 3 3
0 0 0 0 0
EndBehavior 1
ShadowOptions 7

AddNullObject wing_fold
ShowObject 8 7
ObjectMotion (unnamed)
9
3
0 0 0 0 0 0 1 1 1
0 0 0 0 0
0 0 0 0 0 0 1 1 1
400 1 0 0 0
1 0 0 0 0 0 1 1 1
410 0 0 0 0
EndBehavior 1
ShadowOptions 7

AmbientColor 255 255 255
AmbIntensity 0.250000

AddLight
LightName Light
ShowLight 1 7
LightMotion (unnamed)
9
1
-2 2 -2 45 35 0 1 1 1
0 0 0 0 0
EndBehavior 1
LightColor 255 255 255
LgtIntensity 1.000000
LightType 0
ShadowType 1

ShowCamera 1 7
CameraMotion (unnamed)
9
2
0.3049357 1.235 0.01640085 -83.9 80.09999 0 1 1 1
0 0 0 0 0
0.7654588 0.7050003 20.55878 -87.80003 43.40001 0 1 1 1
300 0 1 0 0
EndBehavior 1
ZoomFactor 3.200000
Resolution 1
PixelAspectRatio 2
SegmentMemory 2200000
Antialiasing 0
AdaptiveSampling 1
AdaptiveThreshold 16
FilmSize 2
FieldRendering 0
MotionBlur 0
DepthOfField 0

SolidBackdrop 1
BackdropColor 0 0 0
ZenithColor 0 40 80
SkyColor 120 180 240
GroundColor 50 40 30
NadirColor 100 80 60
FogType 0
DitherIntensity 1
AnimatedDither 0

RenderMode 2
RayTraceEffects 0
DataOverlayLabel
FullSceneParamEval 0

ViewMode 5
ViewAimpoint 0.015089 0.007537 19.638084
ViewDirection 0.057595 -0.233874 0.000000
ViewZoomFactor 113.235092
GridNumber 80
GridSize 1.000000
ShowMotionPath 1
ShowBGImage 0
ShowFogRadius 0
ShowRedraw 0
ShowSafeAreas 0
ShowFieldChart 0

I changed the object \ to / and it loaded the objects OK, but not the plug in, hmm. Any ideas? Thanks.
Paul Goodrich

mlinde
06-17-2003, 03:38 PM
I'm looking at your scene file, and it's fine. What happens when you load it? The other possibility I just thought of was the line-breaks. You might want to try and open the scene in BBEdit Lite and resave it with macintosh line breaks (under save options dialog). That may help.

Beamtracer
06-17-2003, 10:04 PM
Hi Michael. Just while you're on the topic of scene files and forward/back slashes...

You know software code issues pretty well. Don't you think it would be possible for Newtek to design a new scene file format that is platform agnostic?

Many people work with Mac and Windows and share files between them. Also, considering network rendering issues, with Mac, Windows and Linux machines connected to each other. Wouldn't a platform agnostic scene file be a worthwhile thing?

Paul Goodrich
06-17-2003, 10:44 PM
Michael,
Thanks, I can't seem to find anything simple wrong with it either. When I try to open it, I get:
Clearing scene
loading settings
loading "OBJECTS/Relativity/bfly_bod.lwo"

Then it can't find the object and asks if I want to select an other. I point it to the objet and select it.
Then The scene opens, incomplete with an error box saying-
Error
"bfly_bod.lwo
error, unknown object-frac2"

Now I think the frac2 is a null, but nothing other than the bfly_bod object is in the scene and none of the plug ins, hmmm. Any ideas?

Paul Goodrich

Zarathustra
06-18-2003, 08:38 AM
Sorry - off topic.

mlinde: Hypothetically, if you're trying a SN render with Mac and PC, would you use the forward slash for the PC cmdline?

mlinde
06-18-2003, 11:33 AM
Covering a lot of ground here!

First the original issue:
Try loading the scene, removing the object from the scene, saving the scene, and adding it back in. Or, try loading that object into a new scene and see what happens. It could also be an issue with load order, although I don't know why it would just happen on the mac. Just for fun, you could try moving all the null load commands before the object loads. If you need more detail, post the scene file and I'll do it for you and you can see what I mean.

Second: platform agnostic formats:
The forward slash that is used by object and image files in an LWS is platform agnostic. However, a large number of features and plug-ins in LW do not utilize this structure. It's been around since 6.-something when NewTek re-wrote the applications from the ground up.

Third: screamernet: No. Screamernet is NOT in any way platform agnostic. I tried a large number of combinations and command lines to find a work-around, the only thing I can suggest is platform-specific command lines for each node.

Paul Goodrich
06-20-2003, 05:10 PM
Michael,
That's it!!! I downloaded BBEdit and did what you said and YEAH !!! The scenes now open up fine. Thanks again.
Paul Goodrich