前提・実現したいこと
ここに質問の内容を詳しく書いてください。
processingで3dモデルを表示させたいのですがエラーが出ます。一応モデルは表示されるのですが、下の画像のようにスカスカになってしまいます。解決方法分かる方いたら教えてください。ダウンロードは https://free3d.com/ja/3d-model/airplane-v1--79106.html ここからしました。
発生している問題・エラーメッセージ
ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from ( 0 AppKit 0x00007fff39e88607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378 1 AppKit 0x00007fff39e859f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479 2 AppKit 0x00007fff39e8542a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45 3 libnativewindow_macosx.jnilib 0x00000001255583fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398 4 ??? 0x00000001144c1a88 0x0 + 4635499144 )
該当のソースコード
processing
1import saito.objloader.*; 2OBJModel model; 3void setup() { 4size(800, 600, P3D); 5model = new OBJModel(this, "11803_Airplane_v1_l1.obj", "absolute", TRIANGLES); 6 model.scale(0.05); 7noStroke(); 8} 9void draw() { 10translate(width/2,height/2,0); 11model.draw(); 12}
あなたの回答
tips
プレビュー