POV-Ray : Newsgroups : povray.general : Example of .obj import please : Example of .obj import please Server Time
19 Oct 2021 04:49:38 EDT (-0400)
  Example of .obj import please  
From: The Traveler
Date: 30 Sep 2021 17:05:00
Message: <web.61562502751880cedd31149be3dfee7c@news.povray.org>
Howdy folks,
Would some kind soul please post a short, simple code example for importing an
...obj file into 3.7.1? I'm consistently getting this error: Parse Error: No
triangles in triangle mesh. I don't understand why as the .obj file is properly
formed and is imported without problems by a number of 3D modeling programs. I'm
using the "boilerplate" code example from the wiki with the parameters changed
for my testing:

#declare MyTexture = texture { ... }
#declare MyMaterial = material { ... }

mesh {
  obj "MyMesh.obj"
  texture_list {
    "Foo" texture { MyTexture }
    "Bar" material { MyMaterial }
    prefix "Tx"
    suffix "_"
  }
  inside_vector y
}


Thanks in advance.


Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.