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 / 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

62
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 ???

63
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

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

65
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

66
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

67
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 ?

68
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 :-\

69
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..

70
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

71
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  ???

72
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..

73
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 ?

74
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)
..

75
Bones / Bones - Skeletal and Pose animations for jPCT
« on: January 06, 2010, 11:45:01 pm »
Bones is a animation API for jPCT. It supports skeletal and pose animations. It's aimed to be small library with no additional dependencies where possible.

Bones can be found at its home page. The download pack contains the source code, necessary libraries, Eclipse project files and a few demo applications. It's definitely free software with a "Do whatever with it" license.

Note: As the API evolved, following information is not exactly correct anymore. Please refer to Bone's home page for up to date information.



Bones initially loads skinning information via Ardor3D's Collada loader. Out of this information, a series of SkinnedObject3D's are constructed. They have mesh data, textures coordinates and skinning information. It's enough to set their textures and call build() to prepare them to be added into a jPCT world.

After this initial loading, they can be saved in a compact form. Saved objects can be later reloaded with loader, with no dependencies to Ardor3D

At the moment, the project is at "Proof of Concept" state. Skinning and mesh deformation works, but skeleton poses can only be created programmatically. Hence it's not really useful for games at the moment. This is so since, Ardor3D's loader only support this much at the moment. As they progress, Bones will progress..

Cheers ;D
r a f t

Edit: Updated the link with some code cleanup and documentation.
Edit2: Updated title and description to reflect changes in the API

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