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

Pages: 1 ... 13 14 [15] 16
211
Support / Why not add a math class?
« on: September 06, 2008, 05:33:30 am »
And include methods like static float calculateAngle(SimpleVector origin, SimpleVector p1, SimpleVector p2)? Until then, if somebody would tell me the code for that I'd be grateful! : -)

212
Support / Character Moves Towards Mouse Click
« on: August 26, 2008, 09:17:15 pm »
I'm trying to make an RPG with 2D backgrounds and a 3D hero. When the player clicks on the screen, the hero has to move that way. The following's what I did (for translation, rotation is something else). Is it wrong, because it's not working?
Code: [Select]
SimpleVector heroCenter = Interact2D.project3D2D(theCamera, buffer, hero.getTransformedCenter());
SimpleVector destination = Interact2D.reproject2D3D(theCamera, buffer, mousePoint.x-(int)heroCenter.x, mousePoint.y-(int)heroCenter.y, hero.getTransformedCenter().z);
destination.z = destination.y;
destination.y = 0;
hero.translate(destination);

213
Support / What does Animation.getSequenceCount() return?
« on: August 20, 2008, 08:26:49 pm »
Does it return the number of subsequences in the animation, or does it return the number of frames? Because my MD2 file is supposed to have nearly (or exactly) 260 frames and 4 subsequences, and getSequenceCount() returns 16.0. How do I access the number of frames, and then how do I switch between subsequences? For that matter, how do I access the individual frame names?

214
Support / Any Way to Speed Up an Animation?
« on: August 18, 2008, 09:44:19 am »
There's not much in the Animation class itself, but is there some way of changing the timing of animations I'm missing?

215
Support / Cyberkilla, In Case You'll Ever Read This
« on: August 07, 2008, 06:13:01 pm »
I found out the location where most of the NullPointerException problems are happening: the method getChild(String) addressed as   
Code: [Select]
XMLElement geometryElement = submesh.getChild("geometry");on private static OGREVertexBuffer loadGeometry(XMLElement) is returning null! Don't know how to fix it yet, but if you don't come back soon I may have to do it myself! : -(

216
Support / Egon, What About Your Own Skeletal Extension?
« on: August 03, 2008, 04:52:50 pm »
I understand why you didn't have one at first. And maybe don't even include as the main API. But couldn't you build your own skeletal extension, or else study Cyberkilla's and write a loader? Because his OgreXML loader is both limiting and broken. I could send you my models as proff, if you'd be willing to test them. You'll find they load on Max and Maya, but don't on Cyberkilla's API. And a skeletal structure is such a pivotal thing for most games.

217
Support / Cyberkilla: About Your Skeletal API Again
« on: July 23, 2008, 09:37:41 pm »
Would you be kind enough to get a rigged model from me and send me an OgreXML file that works with your loader? PLEASE? I've tried everything, man. I got a Max 9 exporter, and it doesn't work with complex skeletons. I got a Maya Ogre binary exporter, then used the Ogre tools to get the XML and that didn't work. And I tried optimizing the meshes with OgreCommandLineTools. I used 5 different human models with similarly complex bone structures. All of them crash. PLEASE either convert one for me or send me a human model fully rigged that works with your loader.

By the way, just to clear things up: the exporters all work fine. What always crashes is your loader. And almost always it happens just after all the bones are read and as it's reading the very first mesh.

Or might I suggest a loadOgreXML(Object3D, InputStream, float)? That would help a lot in its own right.

218
Support / Java 2D Behind JPCT
« on: March 28, 2008, 11:12:44 pm »
Is that possible using the software engine? If so, how, because the 2D graphics always seem to come out on top?

219
Support / Bow String and Cyberkilla's Skeletal
« on: March 21, 2008, 08:59:39 pm »
I'm making a bow and arrow minigame for which I "modelled" a cylinder with a bone structure on 3dsmax 9 and exported to OgreXML for reading into Cyberkilla's Skeletal API. The cylinder is meant to represent the distorting string of the bow. I tried drawing a 2-D string on the bow, but try as I might I can't get the VertexController to be up-to-date on the bow's coordinates. If I could, that would be an obvious solution. Anyway, in the absence of the 2D string I'm using the boned cylinder. Problem is when I load the string into JPCT it looks completely distorted. If anyone can tell me why I'd appreciate it.

And if someone would kinder stil and make me the scene for exporting I'd be that much the more grateful!

220
Support / Cyberkilla's Skeletal
« on: June 02, 2007, 07:23:57 pm »
Has nobody here used it? I posted a question about the creation of bones to no response. If anyone has the answer, please help me out. Thanks in advance.

221
Support / Skeletal API
« on: May 30, 2007, 09:51:04 pm »
Can anyone post a sample of a small program that uses Cyberkilla's Skeletal API? Specifically adding the bone with assigned joints. I imagine the process would involve creating a bone with two SimpleVertex instances, but I see nothing that remotely resembles such a method in the documentation. I realize this is not Egon's thing, but I would appreciate the help a whole lot. Thanks in advance.

222
Support / GenericVertexController.getUpdatedMesh()
« on: February 05, 2007, 05:48:41 am »
Egon, if I can make a small request: how about a GenericVertexController.getUpdatedMesh(), which would return the destination mesh with all current modifications, even if it would be slow? Sometimes I want to write my own collision-detection code, and that would be priceless. Thanks in advance.

223
Support / 3d Line
« on: December 13, 2006, 07:35:16 pm »
How do I draw a line between two 3d coordinates?

224
Support / SimpleVector[] model.getStack().peekAt(int)
« on: December 13, 2006, 01:18:18 am »
How can I have access to a model's polygons? I'm porting a bone structure I wrote several years ago to JPCT and I need access to any given polygon. My implementation used a stack.peekAt(int) method. Is there a similar method in jpct? Also, is there any readily built bone classes to distart 3d characters? Thanks in advance.

225
Support / Collision Detection
« on: October 18, 2006, 01:06:57 am »
I've implemented CollisionListener and, of course overridden void collision() and boolean requiresPolygonIDs(). I have called Object3D.addCollisionListener(listener) on both objects, and have made the code of the collision() method to be System.exit(0); to test if anything happens. But when the collision is supposed to happen, it doesn't, and the program goes on running. Am I missing something? Thanks in advance.

Pages: 1 ... 13 14 [15] 16