obj loader obj format or serialized object process help

Started by ghidra, February 14, 2011, 01:06:46 AM

Previous topic - Next topic

ghidra

I was trying to import an obj, but it keeps crashing the app on load. Perhaps my obj creator is adding some superfluous data in there that I can strip out. Is there an obj file somewhere that is know to work?

or

Is there any progress on instructions to the process of using JPCT to serialize an obj?

Probably I would still have to write out a proper reading obj file for the serializing to work.

Thanks.

EgonOlsen


ghidra

I will look into getting that for you.. when I am in front of it again.

EDIT:
So in the process of getting the logs, I found some mistakes, and managed to get the OBJ to load. But not to actually render. Now I am certain it is because my model isn't triangulated or something along those lines, user error.

But the logs did throw some errors.


02-14 22:56:39.925: INFO/jPCT-AE(874): Memory usage after compacting: 2080 KB used out of 2819 KB
02-14 22:56:39.976: INFO/jPCT-AE(874): Loading Texture...
02-14 22:56:40.046: INFO/jPCT-AE(874): Loading file from InputStream
02-14 22:56:40.066: INFO/jPCT-AE(874): Text file from InputStream loaded...4179 bytes
02-14 22:56:40.086: INFO/jPCT-AE(874): Processing object from OBJ-file: cooridinate
02-14 22:56:40.086: INFO/jPCT-AE(874): Processing object from OBJ-file: cooridinate
02-14 22:56:40.176: INFO/jPCT-AE(874): Object 'cooridinate_jPCT1' created using 36 polygons and 20 vertices.
02-14 22:56:40.276: ERROR/GLLogger(874): couldn't load <libhgl.so> library (Cannot find library)
02-14 22:56:40.496: DEBUG/SurfaceFlinger(577): pid 874 requesting gpu surface (current owner = -1)
02-14 22:56:40.506: ERROR/MemoryHeapBase(577): error opening /dev/pmem_gpu0: No such file or directory
02-14 22:56:40.506: ERROR/MemoryHeapBase(577): error opening /dev/pmem_gpu1: No such file or directory
02-14 22:56:40.506: ERROR/MemoryHeapBase(577): error opening /dev/hw3d: No such file or directory
02-14 22:56:40.526: DEBUG/SurfaceFlinger(577): pid 874 requesting gpu surface (current owner = -1)
02-14 22:56:40.526: ERROR/MemoryHeapBase(577): error opening /dev/pmem_gpu0: No such file or directory
02-14 22:56:40.536: ERROR/MemoryHeapBase(577): error opening /dev/pmem_gpu1: No such file or directory
02-14 22:56:40.536: ERROR/MemoryHeapBase(577): error opening /dev/hw3d: No such file or directory



EgonOlsen

It might as well be out of sight or you forgot to set some light. If you haven't already, clear the buffer with another color than black. That usually helps to find "missing" objects better.