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 ... 108 109 [110] 111 112 ... 116
1636
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:

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

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

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

1640
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);
    }

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

1642
Support / Re: Java 2D Behind JPCT
« on: March 29, 2008, 01:01:33 am »
After looking at it for twenty minutes I finally saw what I needed: FrameBuffer.getGraphics()! Not once had I used that one before. Thanks again, pal.

1643
Support / Re: Java 2D Behind JPCT
« on: March 28, 2008, 11:30:35 pm »
Thanks a lot, buddy. I'll have a look.

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

1645
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 24, 2008, 07:15:18 pm »
Okay, but I still have to update the screen afterwards. So if I call draw() from mouseMoved(MouseEvent), how does that make it a separate thread? Or maybe I do need an independent thread just for draw(), after all.

1646
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 23, 2008, 11:31:16 pm »
Well, the bow turns as you move the mouse. So, other than rotating it in mouseMoved(MouseEvent), how would you do it?

1647
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 23, 2008, 09:05:09 pm »
I don't have a rendering thread. Should I? As it is right now, two different threads call draw(), but as far as I can tell, never at the same time. Is there a problem I don't know?

1648
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 23, 2008, 05:38:59 pm »
Thanks a lot, pal, it worked. Now, I'm occasionally getting an array index out of bounds exception with the visibilty lst (and so every occasional frame doesn't get drawn). At the beginning of the program, I'm using Config.maxPolysVsible *= 4; Does that have anything to do with it? Also, I'm only using the software renderer.

And if anybody can solve the skeletal thing for me I'll be very grateful.

1649
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 22, 2008, 05:25:55 pm »
How would I do that? Matrix transformations = Object3D.getWorldTransformation(); vertex.x*transformations.getXAxis(), then repeat for y and z?

Sorry if it sounds stupid. I did take this math (and even wrote a very simple 3d "engine" of my own), but it's been many years. I appreciate your help, pal.

1650
Support / Re: Bow String and Cyberkilla's Skeletal
« on: March 22, 2008, 01:05:48 am »
Egon, I would love your help on the VertexController thing, which is the more appropriate solution in this case.

But if anyone who knows the answer to my Skeletal API problem reads this, I'd still really like to know for future reference, because this is as far as I have come to succesfully using the API and I have a lot of character stuff I want to do. For the record, this is where I got the 3dsmax 9 exporter: http://www.walkerfamily.name/lexiexport.php

Pages: 1 ... 108 109 [110] 111 112 ... 116