Author Topic: obj loader obj format or serialized object process help  (Read 3183 times)

Offline ghidra

  • byte
  • *
  • Posts: 5
    • View Profile
obj loader obj format or serialized object process help
« on: February 14, 2011, 01:06:46 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: obj loader obj format or serialized object process help
« Reply #1 on: February 14, 2011, 07:37:09 am »
What's the log output for the crash?

Offline ghidra

  • byte
  • *
  • Posts: 5
    • View Profile
Re: obj loader obj format or serialized object process help
« Reply #2 on: February 14, 2011, 11:45:59 pm »
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.

Code: [Select]
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


« Last Edit: February 15, 2011, 05:03:15 am by ghidra »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: obj loader obj format or serialized object process help
« Reply #3 on: February 15, 2011, 07:52:17 am »
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.