[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebGL / Collada demo
- To: Erik Möller <firstname.lastname@example.org>
- Subject: Re: [Public WebGL] WebGL / Collada demo
- From: Vangelis Kokkevis <email@example.com>
- Date: Thu, 10 Mar 2011 09:31:22 -0800
- Cc: firstname.lastname@example.org, "email@example.com" <firstname.lastname@example.org>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1299778352; bh=ALzi4b2p9URqD2JKvrCmCvTD8wk=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=KKdfPCtNr/jEeySU98Wl2RPBKkrFSVCzncYRnLgo+FXdbLn1ZjUdKtsMabGMM4wwy VACrL+mr077qVrvQvVg0w==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RG9FC9L2vwVdvixLXjBLNRmXQyzuxQP9IX/ileuy7K4=; b=aq+OaCSC0ApFbd/9J5qcnq4a7RDZCrp6bl2MLbCt0PGYfkPNx+yftMB0FKIuWXG76i F3+frH4RLBkV0YB3DUyA==
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OB7r97H1xjx1ES5UpsFIX5KpQCS61aPFP4NoyGI3qkS47QQjHLHBuf1eqeOW5ZqKI3 IveNOZhgHkW7RumtRYPw==
- In-reply-to: <email@example.com>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <firstname.lastname@example.org>
- Sender: email@example.com
On Thu, Mar 10, 2011 at 9:18 AM, Erik Möller <firstname.lastname@example.org>
Sorry about the cross posting, but the collada list seems to be very low traffic and I figured there would be people on the WebGL list sitting on relevant info.
I'm working on a WebGL / Collada demo and article that will be published on dev.opera.com this spring. It's working pretty well, but there are a few outstanding issues I need to address.
One of the models used is a fairly complex rigged, skinned and normal-mapped character. I'm exporting the model using Maya and the latest FBX plug-in (2011.3.1). Now, is there something I've missed or is there no support in Collada for normal maps? If so what are the plans for adding it in?
We've had much better luck with the OpenCollada (http://opencollada.org/
) Maya exporter. That's the one we use for Google Body. Admittedly we primarily use it to export mesh and material info (normal maps are definitely exported) so I haven't looked at joint hierarchies and animations. I'm also sure that it will be way easier to report and fix bugs on these open source exporters than it is for the built-in one.
I've also been trying to find a decent Collada viewer to verify that the exported data is actually correct, but haven't been very successful. The ones I've downloaded and tried has only worked for very simple scenes. The best one I've tried to date is the default "Preview"-application shipping with OS X but it too fails on my character model. Any tips on good viewers to try that can deal with joints and multiple skins?
I'm seeing a pretty strange result when exporting the skeleton. A few of the joints are oriented all wrong. Since one of them was very obvious (off by 180 degrees) I managed to work out that by changing the sign of the angle on rotations labeled with "post-rotation" and also changing the rotation order for "post-rotations" it would be correct and lo and behold all the other joints popped into the right place.
Now, since I haven't found a viewer that can show this model I haven't been able to identify if it's a mistake in my code or simply wrong data getting exported so again, pointers on decent functional Collada viewers are greatly appreciated or if you by chance have some great insight in how these "post-rotations" are calculated and used and would like to share it with me that's even better.
I dumped the dae containing just the skeleton here in case someone wants to check if their neat viewer can get it right. http://people.opera.com/~emoller/anim_walk_GDC.dae
Another issue I've come across is that when Maya specifies BEZIER for animation data you get passed two control points and two tangents as opposed to four control points like the spec says. "HERMITE is equivalent to BEZIER, but instead of providing the control points C0 and C1, tangents T0 and T1 are provided." I've never gotten HERMITE back from Maya so I'm not sure if the two types are flipped around or if it's always exporting two control points and two tangents.
You are currently subscribed to email@example.com.
To unsubscribe, send an email to firstname.lastname@example.org with
the following command in the body of your email: