Hi,
I’m new to Cheetah3D. I purchased it after searching the web for a way to render animations from an existing set of sequential OBJ files, and stumbling on this old thread:
https://www.cheetah3d.com/forum/index.php?threads/2110/
With a little bit of studying the script, and experimenting (are there no docs on scripting???) I was able to modify the Polygonobj script from that thread to work with my data set’s file naming convention, etc., and within a few hours of downloading Cheetah3D, I was already rendering out images based on the sequential OBJ files. Already worth the purchase price! Thanks.
However I am running into a few problems:
1) Some of the OBJ files were causing JavaScript errors in buildObject(obj) due to one or more faces in the OBJ referencing an index beyond the end of the uv_list. I added code to substitute the last entry in the uv_list instead in those cases, and that hack stopped the javascript errors.
2) On some OBJs (not necessarily the same ones from the above category), buildObject(obj) seems to cause a 100% Cheetah3D crash:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 de.wengenmayer.MWM 0x00000001089b85f7 MWMValenceTable::buildValenceTable(MWMPolyCore*) + 487
1 de.wengenmayer.MWM 0x00000001088799c2 buildNormal(MWMPolyCore*, int, float) + 498
2 de.wengenmayer.MWM 0x0000000108860ee7 -[MWMnGon buildObject] + 87
3 de.wengenmayer.MWM 0x00000001088a0a3b -[MWMScriptPoly buildObject] + 91
4 de.wengenmayer.MWM 0x00000001087e5b76 -[MWMObject buildPartial] + 550
5 de.wengenmayer.MWM 0x00000001087e5a24 -[MWMObject buildPartial] + 212
6 de.wengenmayer.MWM 0x00000001088db2ee -[MWMScene buildScene:] + 350
7 de.wengenmayer.MWM 0x00000001088e0bd0 -[MWMScene setAnimPosition::::] + 272
8 de.wengenmayer.Cheetah3D 0x000000010876acde 0x1086d1000 + 629982
9 com.apple.Foundation 0x00007fff4c78c302 __NSThreadPerformPerform + 328
10 com.apple.CoreFoundation 0x00007fff4a492adb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
11 com.apple.CoreFoundation 0x00007fff4a492a81 __CFRunLoopDoSource0 + 108
12 com.apple.CoreFoundation 0x00007fff4a47698b __CFRunLoopDoSources0 + 195
13 com.apple.CoreFoundation 0x00007fff4a475f53 __CFRunLoopRun + 1196
14 com.apple.CoreFoundation 0x00007fff4a475855 CFRunLoopRunSpecific + 459
15 com.apple.HIToolbox 0x00007fff496c61ab RunCurrentEventLoopInMode + 292
16 com.apple.HIToolbox 0x00007fff496c5ee5 ReceiveNextEventCommon + 603
17 com.apple.HIToolbox 0x00007fff496c5c76 _BlockUntilNextEventMatchingListInModeWithFilter + 64
18 com.apple.AppKit 0x00007fff47a5e77d _DPSNextEvent + 1135
19 com.apple.AppKit 0x00007fff47a5d46b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
20 com.apple.AppKit 0x00007fff47a57588 -[NSApplication run] + 699
21 com.apple.AppKit 0x00007fff47a46ac8 NSApplicationMain + 777
22 libdyld.dylib 0x00007fff7648b3d5 start + 1
I haven’t identified what is “wrong” with those specific files that crash Cheetah3D here. But I haven’t had similar issues with those files in other programs, and it seems I can even “import” those files successfully using the Cheetah3D import featue.
Any idea what that crash is, and how to avoid it? I’m hoping there is something I can do in my script to detect and prevent it, since those crashes are making it very cumbersome to render out long sequences.
I can provide an example OBJ, and my modified script if somebody is willing to take a look.
Thanks.
Andy Yanowitz
I’m new to Cheetah3D. I purchased it after searching the web for a way to render animations from an existing set of sequential OBJ files, and stumbling on this old thread:
https://www.cheetah3d.com/forum/index.php?threads/2110/
With a little bit of studying the script, and experimenting (are there no docs on scripting???) I was able to modify the Polygonobj script from that thread to work with my data set’s file naming convention, etc., and within a few hours of downloading Cheetah3D, I was already rendering out images based on the sequential OBJ files. Already worth the purchase price! Thanks.
However I am running into a few problems:
1) Some of the OBJ files were causing JavaScript errors in buildObject(obj) due to one or more faces in the OBJ referencing an index beyond the end of the uv_list. I added code to substitute the last entry in the uv_list instead in those cases, and that hack stopped the javascript errors.
2) On some OBJs (not necessarily the same ones from the above category), buildObject(obj) seems to cause a 100% Cheetah3D crash:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 de.wengenmayer.MWM 0x00000001089b85f7 MWMValenceTable::buildValenceTable(MWMPolyCore*) + 487
1 de.wengenmayer.MWM 0x00000001088799c2 buildNormal(MWMPolyCore*, int, float) + 498
2 de.wengenmayer.MWM 0x0000000108860ee7 -[MWMnGon buildObject] + 87
3 de.wengenmayer.MWM 0x00000001088a0a3b -[MWMScriptPoly buildObject] + 91
4 de.wengenmayer.MWM 0x00000001087e5b76 -[MWMObject buildPartial] + 550
5 de.wengenmayer.MWM 0x00000001087e5a24 -[MWMObject buildPartial] + 212
6 de.wengenmayer.MWM 0x00000001088db2ee -[MWMScene buildScene:] + 350
7 de.wengenmayer.MWM 0x00000001088e0bd0 -[MWMScene setAnimPosition::::] + 272
8 de.wengenmayer.Cheetah3D 0x000000010876acde 0x1086d1000 + 629982
9 com.apple.Foundation 0x00007fff4c78c302 __NSThreadPerformPerform + 328
10 com.apple.CoreFoundation 0x00007fff4a492adb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
11 com.apple.CoreFoundation 0x00007fff4a492a81 __CFRunLoopDoSource0 + 108
12 com.apple.CoreFoundation 0x00007fff4a47698b __CFRunLoopDoSources0 + 195
13 com.apple.CoreFoundation 0x00007fff4a475f53 __CFRunLoopRun + 1196
14 com.apple.CoreFoundation 0x00007fff4a475855 CFRunLoopRunSpecific + 459
15 com.apple.HIToolbox 0x00007fff496c61ab RunCurrentEventLoopInMode + 292
16 com.apple.HIToolbox 0x00007fff496c5ee5 ReceiveNextEventCommon + 603
17 com.apple.HIToolbox 0x00007fff496c5c76 _BlockUntilNextEventMatchingListInModeWithFilter + 64
18 com.apple.AppKit 0x00007fff47a5e77d _DPSNextEvent + 1135
19 com.apple.AppKit 0x00007fff47a5d46b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
20 com.apple.AppKit 0x00007fff47a57588 -[NSApplication run] + 699
21 com.apple.AppKit 0x00007fff47a46ac8 NSApplicationMain + 777
22 libdyld.dylib 0x00007fff7648b3d5 start + 1
I haven’t identified what is “wrong” with those specific files that crash Cheetah3D here. But I haven’t had similar issues with those files in other programs, and it seems I can even “import” those files successfully using the Cheetah3D import featue.
Any idea what that crash is, and how to avoid it? I’m hoping there is something I can do in my script to detect and prevent it, since those crashes are making it very cumbersome to render out long sequences.
I can provide an example OBJ, and my modified script if somebody is willing to take a look.
Thanks.
Andy Yanowitz