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

Pages: 1 ... 100 101 [102] 103 104 ... 108
1516
Support / Re: Skeletal API
« on: August 18, 2008, 05:56:57 am »
JoaoGabrielm and Cyber, I think you both missed the part where Egon said he had included that very example in the distribution package.

Cyber, Mizuki is being kind enough to model me a character that works great with your API. One problem:the first animation frame is always screwed up (from then on it works great). And a suggestion: could you make it so that we could rotate the joints manually (the very benefit of having a skeleton attached)?

1517
Support / Re: Cyberkilla, In Case You'll Ever Read This
« on: August 07, 2008, 07:58:15 pm »
Thanks a lot, pal. Will report whatever I may find.

1518
Support / Re: Cyberkilla, In Case You'll Ever Read This
« on: August 07, 2008, 07:19:43 pm »
I didn't say it returned null, I said it returned an empty Vector. But read my edit.

1519
Support / Egon, This One's For You
« on: August 07, 2008, 07:02:58 pm »
The following is the code for getChild(String). The only scenario in which it would return null is if your XMLFactory returned an empty Vector. Anything you can tell me about it? Any problems in the past, or will I have to dig deeper and find out where that node comes from?

EDIT: I did dig further, and it all comes down to your XMLFactory.parseXML(String) method. I smell bug. :-) If you wouldn't mind, I could look at it for you.

Code: [Select]
public XMLElement getChild(String name) {
Vector nodes = XMLFactory.getInstance().getMatchingNodes(node.getName()+"/"+name,node);
if(nodes.size() == 0)
return null;

XMLNode newNode = (XMLNode)nodes.get(0);
return new XMLElement(newNode);
}

1520
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! : -(

1521
Support / Re: Egon, What About Your Own Skeletal Extension?
« on: August 05, 2008, 05:11:29 pm »
Egon, thanks a lot (I had not used that account in years).

Mizuki, then could and would you build me a character? : -)

1522
Support / Re: Egon, What About Your Own Skeletal Extension?
« on: August 05, 2008, 12:51:44 am »
Mizuki, could you and would you be willing to post what he wrote to you? Because by everything I've read, OgreXML is exactly what his loader loads.

1523
Support / Re: Egon, What About Your Own Skeletal Extension?
« on: August 04, 2008, 06:17:58 pm »
Mizuki, if you find yourself able to build me a rigged human character that works with this skeletal API, I'd sure love it. Thanks for offering, and we might be able to work something out.

1524
Support / Re: Egon, What About Your Own Skeletal Extension?
« on: August 03, 2008, 07:14:52 pm »
Egon, as always, thank you for the attention. You rock. But I read the file, and it has the following section. So no, not having a "bone hierarchy" isn't the problem. Like I said, Max and Maya can read these files.

Code: [Select]
<bonehierarchy>
<boneparent bone="Bip01_L_Calf" parent="Bip01_L_Thigh"/>
<boneparent bone="Bip01_L_Clavicle" parent="Bip01_Neck"/>
<boneparent bone="Bip01_L_Foot" parent="Bip01_L_Calf"/>
<boneparent bone="Bip01_L_Forearm" parent="Bip01_L_UpperArm"/>
<boneparent bone="Bip01_L_Hand" parent="Bip01_L_Forearm"/>
<boneparent bone="Bip01_L_Thigh" parent="Bip01_Spine"/>
<boneparent bone="Bip01_L_Toe0" parent="Bip01_L_Foot"/>
<boneparent bone="Bip01_L_Toe0Nub" parent="Bip01_L_Toe0"/>
<boneparent bone="Bip01_L_UpperArm" parent="Bip01_L_Clavicle"/>
<boneparent bone="Bip01_Pelvis" parent="Bip01"/>
<boneparent bone="Bip01_R_Calf" parent="Bip01_R_Thigh"/>
<boneparent bone="Bip01_R_Clavicle" parent="Bip01_Neck"/>
<boneparent bone="Bip01_R_Foot" parent="Bip01_R_Calf"/>
<boneparent bone="Bip01_R_Forearm" parent="Bip01_R_UpperArm"/>
<boneparent bone="Bip01_R_Hand" parent="Bip01_R_Forearm"/>
<boneparent bone="Bip01_R_Thigh" parent="Bip01_Spine"/>
<boneparent bone="Bip01_R_Toe0" parent="Bip01_R_Foot"/>
<boneparent bone="Bip01_R_Toe0Nub" parent="Bip01_R_Toe0"/>
<boneparent bone="Bip01_R_UpperArm" parent="Bip01_R_Clavicle"/>
<boneparent bone="Bip01_Spine" parent="Bip01_Pelvis"/>
<boneparent bone="Bip01_Spine1" parent="Bip01_Spine"/>
<boneparent bone="Bip01_Spine2" parent="Bip01_Spine1"/>
<boneparent bone="Bip01_Spine3" parent="Bip01_Spine2"/>
</bonehierarchy>

1525
Support / Re: Egon, What About Your Own Skeletal Extension?
« on: August 03, 2008, 06:52:05 pm »
It doesn't load. Most of the times it reads all the bones and crashes before reading the mesh. This latest attempt is crashing just before reading the "bone hierarchies"(whatever that means). I could write a simple loader, provided he created the addBone(SimpleVector p1, SimpleVector p2) method for which I asked a year go (not that he has to comply, of course!). Or the source code of his loader, but that would probably be tough. Anyway, the command prompt screen of the latest, but not most succesful (although that's really arbitrary at this point) attempt:

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

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

1528
Support / Re: Java 2D Behind JPCT
« on: April 02, 2008, 01:03:13 am »
Just so the both of you know, the code did work. I appreciate both your help. For the record, the reason I wasn't seeing it work is the fact that I had some leftover code from a previous attempt. Thanks again.

1529
Support / Re: Java 2D Behind JPCT
« on: March 29, 2008, 05:55:20 am »
Sure thing. Thanks in advance.

Code: [Select]
    protected void draw() {
bow.rotateX(rotateX);
bow.rotateZ(rotateZ);
rotateX = 0;
rotateZ = 0;
buffer.clear();

scene.setVisibility(true);
arrow.setVisibility(false);
bow.setVisibility(false);

theWorld.renderScene(buffer);
theWorld.draw(buffer);
// buffer.update();

Graphics2D g2 = (Graphics2D) buffer.getGraphics();
java.awt.image.BufferedImage map = thePanther.getCurrentMap();
Polygon current = thePanther.getCurrent();
g2.setPaint(new TexturePaint(map, current.getBounds()));
g2.fill(current);

scene.setVisibility(false);
arrow.setVisibility(true);
bow.setVisibility(true);
theWorld.renderScene(buffer);
theWorld.draw(buffer);

if (adjustLine)
    bowTopAndBottom();
SimpleVector point1 = Interact2D.project3D2D(mainCamera, buffer, uppermost);
SimpleVector point2 = Interact2D.project3D2D(mainCamera, buffer, lowermost);
SimpleVector arrowPoint = Interact2D.project3D2D(mainCamera, buffer, arrowBack);

g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(Color.white);
g2.drawLine((int)point1.x, (int)point1.y, (int)arrowPoint.x, (int)arrowPoint.y);
g2.drawLine((int)arrowPoint.x, (int)arrowPoint.y, (int)point2 .x, (int)point2.y);

buffer.display(g);
    }

1530
Support / Re: Java 2D Behind JPCT
« on: March 29, 2008, 03:49:07 am »
Okay, you did 2D-3D-2D. That seems easy, in retrospect. But what I need is 3D-2D-3D. I tried making the last 3D object invisible, render and draw, draw 2D, then add that object and make everything else invisible, render and draw, then display(). As I expected, it didn't work (I lost the very first object but the 2D was behind the last object). So now what do I do?

Pages: 1 ... 100 101 [102] 103 104 ... 108