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.


Topics - raft

Pages: 1 ... 3 4 [5] 6 7 8
61
Support / lwjgl 2.4.2 fails on linux
« on: June 23, 2010, 10:17:39 pm »
hi,

hello world GL example in latest release (1.21) doesn't launch. it throws the exception below. it runs ok in previous versions including 1.21 alpha. i guess this is related to LWJGL 2.4.2

Quote
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.threed.jpct.GLHelper.findMode(Unknown Source)
   at com.threed.jpct.GLHelper.findMode(Unknown Source)
   at com.threed.jpct.GLHelper.init(Unknown Source)
   at com.threed.jpct.GLRenderer.init(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at HelloWorldOGL.loop(HelloWorldOGL.java:37)
   at HelloWorldOGL.main(HelloWorldOGL.java:15)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
   at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:234)
   at org.lwjgl.opengl.XRandR$Screen.<init>(XRandR.java:196)
   at org.lwjgl.opengl.XRandR.populate(XRandR.java:87)
   at org.lwjgl.opengl.XRandR.access$100(XRandR.java:52)
   at org.lwjgl.opengl.XRandR$1.run(XRandR.java:110)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.opengl.XRandR.getConfiguration(XRandR.java:108)
   at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:618)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   ... 9 more

62
Support / onSurfaceCreated(..)
« on: March 31, 2010, 09:57:05 pm »
hi,

javadocs state that, when GL surface is lost, all OpenGL resources -such as textures- are also lost. does this mean Object3D's are also lost and need to be loaded/created again ? or is it
enough to reload textures and set them on objects ?

thanks

63
Support / FrameBuffer.dispose()
« on: March 31, 2010, 09:39:56 pm »
does FrameBuffer.dispose() disposes textures somehow ?

i'm playing with orientation change event with G1. on such a case, only Renderer.onSurfaceChanged(..) is called. after old frameBuffer is disposed all my -blitted- textures seem to be gone. i tried adding them to TextureManager but didnt help ???

64
Support / blitting text and images
« on: March 30, 2010, 04:02:41 pm »
here are Android versions of two small and (hopefully) handy classes for blitting text and images. more information can be found on original thread

TexturePack packs several arbitrary sized images into a jPCT texture. it automatically layouts images and adjusts Texture size.

AGLFont creates GL renderable (blittable) fonts out of Android fonts.

Rectangle is used by AGLFont.

Bones Android demo app demonstrates how to use it

and an addition to GLFont by nmare which allows multi-line and multi-color text blits

cheers ;D
r a f t

edit: updated the links and fixed getStringBounds(..) issue
edit2: added link to nmare's addition

65
Feedback / unlimited detail in 3d
« on: March 19, 2010, 04:05:02 pm »

66
Support / rotation by matrix
« on: March 12, 2010, 08:03:57 am »
i have a rotation matrix multiplied by a uniform scale matrix.

* SimpleVector.rotate(matrix) also applies scaling to vector, is this intentional ?
* how can i check rotation part (upper 3x3) of matrix has no scale information ?
* how can i clear scaling from matrix ? assuming i dont know scaling value

thanks

67
Support / OpenGL ES 2.0 support (including shaders)
« on: March 09, 2010, 04:50:17 am »
dont get too excited, only possible via JNI ;D

Quote
OpenGL ES 2.0 support

Applications targeting Android 2.0 (API level 5) or higher can now directly access OpenGL ES 2.0 features. This brings the ability to control graphics rendering through vertex and fragment shader programs, using the GLSL shading language.

A new trivial sample, named "hello-gl2", demonstrates how to render a simple triangle using both shader types.

here is the blog entry. one good thing about new NDK is, it states OpenGL ES 1.1 and 2.0 API's (headers) are stabilized and are guaranteed to be supported in all later releases

unfortunately emulator doesnt support OpenGL ES 2.0  ::)

there is a demo app in NDK, OpenGL ES version of San Angeles Observation. readme says it contains more than 60.000 faces and it runs ~5 fps on emulator, quite impressive. but it does all rendering in native code

68
Support / Matrix serialVersionUID
« on: March 05, 2010, 06:47:10 pm »
i've noticed serialVersionUID of Matrix is changed in desktop version and that is also different from AE version. is this really necessary ? looking inside with javap, it seems data structure is not changed. all three (1.20, 1.21.alpha, AE) has same structure:

Code: [Select]
    float[][] mat;
    float[] mat0;
    float[] mat1;
    float[] mat2;
    float[] mat3;

so i suppose they can share same serialVersionUID, unless of course contents of these arrays hasn't changed ?

69
Support / DeSerializer
« on: March 05, 2010, 06:20:51 am »
how does DeSerializer work exactly ? plain java serialization or other format ? i've found java serialization is god damn slow on this thing :-\

70
Support / NPE at Object3D.animate(..)
« on: March 04, 2010, 10:38:22 pm »
java.lang.NullPointerException
    at com.threed.jpct.Animation.interpolateLinear(Unknown Source) (Animation.java:343 in first release)
    at com.threed.jpct.Animation.doAnimation(Unknown Source)
    at com.threed.jpct.Object3D.animate(Unknown Source)
        ..

my first experession is not that bad. karga boy (810 poly) renders 30+ fps in emulator without animation and background. your demo app run ~10 fps. however debugging kills performace, loading time increases and fps drops down to 8-10. i also get out of memory time to time while restarting the application. log says it cant find memory for bitmap

btw, my friend told eclipse can debug app in phone which sounds good..

71
Support / setting IVertexController
« on: March 03, 2010, 06:39:20 am »
is it expensive to set an IVertexController ?

say i have two IVertexController's to operate on same mesh, does it make sense to set each one again each frame ? if they create an array of vectors and copy mesh vertices into it each time they are set, this is definetely expensive and shouldnt be done

72
Support / class loading
« on: February 04, 2010, 08:35:07 pm »
i've faced something very strange: many of Bones classes has constructors or methods taking Ardor classes as parameters. as they hold no fields to Ardor classes, they are expected to be loaded and run without ardor. for all but one this is the case. that single one even cannot be loaded by classloader because of a thrown ClassNotFoundException for an ardor interface. the unfound interface even is not imported  ???

i've further digged the situation and tried to isolate the problem by commenting out some code.

that class passes some of ardor classes to some static helper methods in another class. static method takes ardor interface as parameter. if i change the method to take implementation class instead of interface as parameter, the problem vanishes.. very odd thing, never faced before  ???

73
Support / Logger level
« on: February 04, 2010, 03:37:02 pm »
is it possible to expose log level of Logger ? so i can print some verbose information in Bones if log level matches..

74
Support / quaternions and matrices
« on: February 03, 2010, 08:29:46 am »
for 2 rotations R1 and R2, let Q1 and Q2 quaternion representations and M1 and M2 matrix representations of these rotations. M1 and M2 are row major matrices like jPCT's

does Q1xQ2 represent the same rotation with M1xM2 ?

75
any idea why this happens ?

Code: [Select]
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at com.threed.jpct.GenericVertexController.updateMesh(Unknown Source)
at com.threed.jpct.Mesh.applyVertexController(Unknown Source)
..

Pages: 1 ... 3 4 [5] 6 7 8