Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ghidra

Pages: [1]
1
Support / Re: obj loader obj format or serialized object process help
« 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



2
Support / 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.

3
Support / Re: drawWireframe
« on: February 07, 2011, 04:44:46 pm »
ah. I apologize for my ignorance. And I thank you for your quick response and help.

So, is the primary option for shaded color on geometry only with an image? And, besides that, is there a way to, say, dial in specular. Or does it all run in kind of a general context?

Again, thanks for your patience. I am going through as much documentation to soak up as much of this as I can.

4
Support / Re: drawWireframe
« on: February 07, 2011, 03:25:20 pm »
I don't necessarily need them. I'll just need to research the shaders, and just make myself something simple. I was hoping to build a project with lo-fi style graphics. But I don't mean to make you implement wireframe, I'm sure there are other things I might use a favour for in the future ;)

5
Support / drawWireframe
« on: February 07, 2011, 03:03:32 am »
Hi.

I am new to jPCT. So far I it's been easy to get something basic running. Before I get too deep in, I was looking into rendering a wireframe so I don't have to deal with textures at the moment. I found the method in the docs, but I'm not sure I am applying it right.

Code: [Select]
framebuffer.clear(back);
world.renderScene(framebuffer);
world.draw(framebuffer);
world.drawWireframe(framebuffer, wirecolor );
framebuffer.display();

wire color set to white 255,255,255 and nothing draws. Even without the the first draw call, the wireframe doesn't draw.

Like I said, I'm new and just getting to digging around. I haven't even gotten into shaders yet, maybe a basic phong or lambert with a color might be good too instead of wireframe. Just looking for some basic drawing to get things figured out. Also, about wireframe, sense I have seen it, is there a type of hidden line removal available?

I'm looking forward to learning more about this library and being around in the community.

Pages: [1]