|
From: <tre...@us...> - 2007-10-15 13:04:49
|
Revision: 492
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=492&view=rev
Author: trevorolio
Date: 2007-10-15 06:04:46 -0700 (Mon, 15 Oct 2007)
Log Message:
-----------
Added a body texture web resource, backed by the media service. This is used in conjunction with body configurations to provide users with skin customization.
Still to come in texture land:
the body editor UI needs some design love to incorporate the texture upload form
body loading takes too long and shows no progress information
a base skin texture with decal textures baked on top
Modified Paths:
--------------
maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java
Modified: maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java
===================================================================
--- maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java 2007-10-15 13:04:39 UTC (rev 491)
+++ maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java 2007-10-15 13:04:46 UTC (rev 492)
@@ -157,7 +157,7 @@
public boolean addUserRenderable() {
try {
bodyData = dataManager.getBodyData(user.getBodyConfiguration().getBodyDataID());
- renderable = new J3DUserRenderable(user, bodyData);
+ renderable = new J3DUserRenderable(user, bodyData, dataManager.getBodyTexture(user.getUsername(), user.getBodyConfiguration().getBodyConfigurationID()));
userGroup.addChild(renderable);
westPanel.morphList.initList();
eastPanel.animationList.initAnimationList();
@@ -376,7 +376,7 @@
}
user.getBodyConfiguration().setBodyDataID(bodyDataDocuments[i].getBodyDataID());
bodyPanel.bodyData = dataManager.getBodyData(bodyDataDocuments[i].getBodyDataID());
- bodyPanel.renderable.initBody(bodyPanel.bodyData);
+ bodyPanel.renderable.initBody(bodyPanel.bodyData, dataManager.getBodyTexture(user.getUsername(), user.getBodyConfiguration().getBodyConfigurationID()));
westPanel.morphList.initList();
eastPanel.animationList.initAnimationList();
}
@@ -535,6 +535,10 @@
}
}
+ public InputStream getBodyTexture(String username, long bodyConfigurationID) {
+ return webClient.getBodyTexture(username, bodyConfigurationID);
+ }
+
}
//TODO make the error panel less ugly
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|