[vtkusers] vtk ObjLoader with Java Wrapping error

Bill Lorensen bill.lorensen at gmail.com
Fri May 8 11:34:45 EDT 2015


To follow up. If I replace "//" with "/" on the "f" lines, the file
renders. So I think the problem is that the original file with the
"//" expects to have normals, but none are defined. The code should
report an error. I'll work on a patch.

Bill

On Fri, May 8, 2015 at 10:53 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> The file does not seem to be a valid obj file. The format is described here;
> http://en.wikipedia.org/wiki/Wavefront_.obj_file
>
> First, it has "vt" texture coordinates that are 3D. I believe that VTK
> only reads 2D texture.
> Second, the "f" face lines are of the form:
>
> f 1//1  2//2  3//3
>
> I believe that the number after the // is a normal id. The file has no
> "vn" normal lines.
>
> If I change the "vt" to "vn" the file renders, but looks strange.
>
>
> On Thu, May 7, 2015 at 9:51 PM, James Potota <tr_jun-jiang.ee at vitrox.com> wrote:
>> Yeah sure. Here is the link :
>> https://dl.dropboxusercontent.com/u/7356347/gull20mb.obj
>> <https://dl.dropboxusercontent.com/u/7356347/gull20mb.obj>
>>
>> I would like to make a correction that it has nothing to do with filesize.
>> So I uploaded a 20mb obj.
>> Thanks.
>>
>>
>>
>> --
>> View this message in context: http://vtk.1045678.n5.nabble.com/vtk-ObjLoader-with-Java-Wrapping-error-tp5731799p5731818.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list