Adding sunglasses to a biped character
I have an interesting problem. I have characters that were created in Max with a motion caption walk and an idle cycle applied to the biped. I would like to enable them to take off and put on sunglasses, or a hat, etc. This turns out to be harder than I thought!
If I make the sunglasses a child of the head group of the biped it's close, but not quite right. The glasses follow the idle cycle and the walk, but there is a rubbery disconnect between the mesh and the sunglasses. As the character begins walking forward or backward the sunglasses move inside the head for a second or so, and then catch up. When the character stops walking there is a similar lag, almost as if the sunglasses are connected with very stretchy rubber to the head. When the character turns his head, the sunglasses get slightly out of alignment for a second.
My original thought was to just make the sunglasses a child of the head, but I'm starting to think that's not going to work well enough. Any ideas on some other approach? What's the standard way of doing something like this?
thanks,
Robert
Hi Robert,
Set bonesPlayer.blendTime = 20 for all the models with bones and motions.
The default value is 500ms (there is an interpolation at the beginning and the end of each motion).
cheers
Similar Messages
-
Dreamweaver adding blank characters for each character.
Working on DW 5.5 in Windows 7. I open a .php file on the local server then Save As a different name with the intention of editing the text. Before I even make any edits I find that the file has doubled in size, though it doesn't appear any different to me in DW. Our web host tells me that when he looks at the file after I've uploaded it (without making any edits other than changing the file name) he sees blank characters in between every single character in the code. This doesn't occur for every file. It appears that this only occurs with files that call browser selector and truncate scripts. I am able to successfully rename and edit files that don't call those types of scripts. Anybody ever seen this or have any suggestions for further troubleshooting?
I suspect one of the scripts is the problem since I only experience this problem with certain files. I don't have a coding expert at my disposal at the moment, which is why I'm posting to this forum. I wanted to see if anybody else has ever seen this particular problem. My web host sent me a screen shot of what he sees from his end of things. The screen shot shows the spaces between characters clearly. I tried to upload the image to this forum but the system isn't letting me upload it. Gives me a vague message and suggest I check the file size (it's only 74kb, so I don't think the file size is the issue). So...I'm probably going to move to the next step, which is to have someone else in the firm test to see if they experience the same problem.
-
Adding 1 to a letter/character
Hi everyone,
I have a program where I need to find the next available wage type to use per category.
Some wage types, however, are alphanumeric (E.G '0SBC')
In the above example, the next available to use could be 'OSBD'
My question is, how do you add on to alphanumeric characters.
A more simpler example, if I have A, how do i add 1 and get 'B' as a result
Thank you
DanielTry this Daniel -
parameters: num1(4) type c default 'B'.
data: total(4) type c.
data: w_len type i.
data: w_num(3) type n,
w_num1(4) type n,
w_off type i,
w_len1 type i,
w_off1 type i.
w_len = strlen( num1 ).
w_len = w_len - 1.
if num1 CO '0123456789'.
num1 = num1 + 1.
stop.
endif.
do w_len times.
w_len1 = w_len - w_off + 1.
if num1+w_off(1) CO '012345678'.
w_off = w_off + 1.
if num1+w_off CO '012345678'.
w_off = w_off - 1.
w_num = num1+w_off.
w_num = w_num + 1.
w_off1 = 3 - w_len1.
num1w_off = w_numw_off1(w_len1).
stop.
endif.
endif.
add 1 to w_off.
enddo.
if num1+w_len CO '012345678'.
num1w_len = num1w_len + 1.
stop.
endif.
if num1+w_len ne 'Z'
and num1+w_len CN '0123456789'..
search sy-abcde for num1+w_len.
add 1 to sy-fdpos.
num1w_len = sy-abcdesy-fdpos(1).
endif.
end-of-selection.
write: / num1. -
Adding multiple FOI themes with MapViewer with jdbc_query
Hi,
I'd like to add two themes to a map with the Javascript Mapviewer.
When I use mapview.addThemeBasedFOI(theme); only the theme that finished loading first will display. Is it possible to add multiple themes or am I doing something wrong?
The second thing I tried was using a jdbc_query theme. My javascript looks like this:
var baseURL = "http://" + document.location.host + "/mapviewer";
// Create an MVMapView instance to display the map
var mapview = new MVMapView(document.getElementById("map"), baseURL);
// Add a base map layer as background.
mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
// Add a theme-based FOI layer
var theme = '<themes><theme name="JDBC_THEME2" >' +
'<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
'render_style="C.RB13_6" datasource="mvdemo">' +
'<![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,' +
'\'unit=mile arc_tolerance=0.005\') location ' +
' from customers A where sales<=100]]>' +
'</jdbc_query></theme><theme name="JDBC_THEME" >' +
'<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
'render_style="C.RED" datasource="mvdemo">' +
'select sdo_geom.sdo_buffer(A.location,1,0.005,' +
'\'unit=mile arc_tolerance=0.005\') location ' +
' from customers A where sales>100' +
'</jdbc_query></theme></themes>' ;
console.log(theme);
buffertheme = new MVThemeBasedFOI('buffertheme', theme);
mapview.addThemeBasedFOI(buffertheme);
// Set the initial map center and zoom level
mapview.setCenter(MVSdoGeometry.createPoint(-122.45, 37.7706, 8307));
mapview.setZoomLevel(4);
// Add a navigation panel on the right side of the map
mapview.addNavigationPanel('east');
// Add a scale bar
mapview.addScaleBar();
// Display the map.
mapview.display();I used the examples from page 222 and 225 from the Mapviewer manual (mapviewer_10131_ug.pdf) and it uses the MVDEMO schema.
The xml for the themes:
<themes>
<theme name="JDBC_THEME2">
<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RB13_6" datasource="mvdemo">
<![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A where sales<=100]]></jdbc_query>
</theme>
<theme name="JDBC_THEME">
<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RED" datasource="mvdemo">
select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A
where sales>100
</jdbc_query>
</theme>
</themes>In this example I want to display 2 different colors, one for sales>100 and one for sales<=100. Again, only the first color is displaying. I searched for some examples and found <map_request> xml files where multiple themes are allowed, is it also allowed with the Javascript Mapviewer?
Thanks for you help!
JeroenHi
Are you trying to concatenating or adding it ? i mean you said adding year measure1measure2
year is character type so i guess that you want to display like 2011 45000 isnt it
then use concatenation or try to change the measure value to dimension to keep side by side
Hope this helps u -
JNDI InvalidNameException due to '+' character in DN
Hello,
I am trying to add a sub-entry in my LDAP server using the following code:
samlPId = "J7Tbik5v+UFenexZ136hS/MUPa4=";
myAttrs.put("samlPId",samlPId);
myAttrs.put("samlIdProvider",samlIdProvider);
try {
InitialDirContext ct = new InitialDirContext(props);
ct.createSubcontext("ldap://localhost:389/samlPId="+samlPId+","+"cn="+userName+","+"o=My Org,c=gb", myAttrs);
System.out.println("** Entry added **");
}catch(NamingException exception){
System.out.println("**** Error ****");
exception.printStackTrace();
......This causes the following error:
javax.naming.InvalidNameException: Invalid name: samlPId=J7Tbik5v+UFenexZ136hS/MUPa4=,cn=User1,o=University of Kent,c=gb; remaining name '"samlPId=J7Tbik5v+UFenexZ136hS/MUPa4=,cn=User1,o=University of Kent,c=gb"'
at javax.naming.ldap.Rfc2253Parser.doParse(Rfc2253Parser.java:86)
at javax.naming.ldap.Rfc2253Parser.parseDn(Rfc2253Parser.java:45)
at javax.naming.ldap.LdapName.parse(LdapName.java:772)
at javax.naming.ldap.LdapName.<init>(LdapName.java:108)
at com.sun.jndi.ldap.LdapCtx.addRdnAttributes(LdapCtx.java:899)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:780)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at com.sun.jndi.toolkit.url.GenericURLDirContext.createSubcontext(GenericURLDirContext.java:210)
at com.sun.jndi.url.ldap.ldapURLContext.createSubcontext(ldapURLContext.java:385)
at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:178)
at ldap.LDAPResolver.addSAMLInLDAP(LDAPResolver.java:268)If I remove the '+' character from the samlPId, it works just fine. Then I manually added the samlPId value with '+' character and it was successfully added too. So I am sure there is no problem at the LDAP side.
So is it the issue with the JNDI itself? Does it cause this exception if there is a '+' inside any DN? or does '+' character bear any special meaning in JNDI?
Any help will be highly appreciated. Thanks in advance.Thank you very much for your reply. I also tried it previously and the result was just same. For your convenience, the code follows:
samlPId = "J7Tbik5v+UFenexZ136hS/MUPa4=";
myAttrs.put("samlPId",samlPId);
myAttrs.put("samlIdProvider",samlIdProvider);
String dn = "ldap://localhost:389/samlPId="+samlPId+","+"cn="+userName+","+"o=My Org,c=gb";
Name n = new CompositeName().add(dn);
try {
InitialDirContext ct = new InitialDirContext(props);
ct.createSubcontext(n, myAttrs);
System.out.println("** Entry added **");
}catch(NamingException exception){
System.out.println("**** Error ****");
exception.printStackTrace();
......I even tried to escape the + character with the same exception.
Regards,
Ripul -
Hello. I have a movie where biped character that walks along
a flat plane. I am using the Havok behaviors for Character
Controller, Collision Detection, Track Model, and Havok Physics (no
HKE). My problem is that my biped's feet are floating quite aways
above the ground. It pays attention to gravity and follows the
terrain, but his feet are always the same distance above the ground
instead of being on it. I am using a sphere proxy for my character
and tried moving the character up (and down), in 3ds Max and then
re-exporting the W3D file - but it's still exactly the same. What
can I do to fix this?another solution i use is to copy the code from the car drive
tutorial on the havok dev site and use the havok function from here
to drive you havok ball(charater) around. then in lingo on exit
frame move the biped to the correct position with alittle adjusment
for the ground. I was never able to use the character controller
for anything. Making your own is the best way. I can post some code
if you need it.
good luck Chocjulio -
Passing MS Reporting Services parameters to Oracle
We're using Reporting Services 2005 to create reports using data from Oracle 8i.
SQL:
SELECT RN, DTTM from Table
WHERE DTTM between :Date1 and :Date 2
AND KEYMAP = :KMAP
The query works in design view with the dates but not when the KEYMAP is added. Error: "ORA-12704 character set mismatch" occurs although the character sets are the same in SQL Server and Oracle. KEYMAP in SQL Server defaults to String and KEYMAP in Oracle is Varchar2.
Any ideas?We have no control over the Oracle data and data definition. We can only access it to generate reports.If you do not have access to a development instance of the database to develop and test against, then the only other thing that you can see for pointers is the error description from Oracle (since I do not have MS Reporting Services to test with and you do not have Oracle database to experiment on, this may be something to try):
ORA-12704 character set mismatch
Cause: One of the following:
The string operands (other than an NLSPARAMS argument) to an operator or built-in function do not have the same character set.
An NLSPARAMS operand is not in the database character set.
String data with character set other than the database character set is passed to a built-in function not expecting it.
The second argument to CHR() or CSCONVERT() is not CHAR_CS or NCHAR_CS.
A string expression in the VALUES clause of an INSERT statement, or the SET clause of an UPDATE statement, does not have the same character set as the column into which the value would be inserted.
A value provided in a DEFAULT clause when creating a table does not have the same character set as declared for the column.
An argument to a PL/SQL function does not conform to the character set requirements of the corresponding parameter.
Action: Strings declared with NCHAR or NCHAR VARYING do not interoperate with strings declared with CHAR or VARCHAR2. Use TRANSLATE() function to explicitly convert one to the other. -
Corruption in cshelp.txt file on save
When I add a topic ID to the cshelp.txt file using the
Context Sensitive Text-Only Topics editor and click Save, I get an
error message about an invalid file. When I open the file in
notepad it looks like this:
. t o p i c H I D C _ B U T T O N _ C H A N G E _ S E T T I N
G S _ S E C U R I T Y _ P R O P S _ P R O P P A G E
T e s t t e x t
The editor has added a space between each character (and
removed one after topic). I think it is related to Unicode
enhancements in RH7, but it means I cannot create a help file (CHM)
that has working CS help.
Has anyone got a workaround for this?
ThanksI started this thread and have since developed a workaround
(similar to jc@salient) which I have detailed in a two-page Word
document. The document also explains several RoboHelp defects
related to this problem (hint to any Adobe people who monitor this
forum).
This interface doesn't seem to allow attachments; so, if
anyone needs a copy, email me at [email protected] and
ask for it. Please put Robohelp on the subject line.
If anyone adds refinements later, please share.
Regards -
Help needed with Illustrator texture swatches imported into Flash
Hey, so I basically scanned a texture into illustrator and added it into the swatches. After drawing a character in illustrator I used the colour of the swatch I had added to colour in my character and by using the tilde button I could move the texture to see which speicifc part of the texture I wanted for certain parts.
Once I completed my character I imported him into Flash. Here is where the problem lies in, when I attempt to use the bone tool to animate him, as soon as I move a certain limb, the specific texture I had applied for that certain area causes the texture to move and make the area that I had coloured in using the swatches look different to what I initially imported into Flash.
This has been a huge problem I have been facing and haven't been able to find an answer anywhere, I would really appreciate if I could get some help with this. Thank you very much!
P.S. If i explained my situation poorly, just ask for an image and I will gladly post a few so everything's clearer and makes more sense.Bump
-
How can I type Korean characters with Firefox 4?
I upgraded to Firefox 4 and now I have difficulty typing Korean characters. When I switch my keyboard to Korean and start typing, the characters go to a bar on the bottom of the browser. It is not even a bar for inserting text. There is no insert button and it only allows me to type one syllable block.
I found a temporary, but still frustrating, fix by going View -> Character Encoding -> Customize List and adding one of the Korean character encodings. When I ran out of encodings, it worked simply to click OK, and I would able to type in Korean. But now I can only type in Korean for a few syllables or on one tab before the system reverts to disallowing me to type Korean characters.
Is there something I can do to permanently fix this, or should I resign myself to waiting for an update or downgrading to Firefox 3? I like Firefox 4 with the exception of this Korean character issue.That is up to Delicious or whoever created their Firefox extension to fix, not something for Mozilla to fix.
See this article which explains how to fix compatibility in the Delicious extension to get it to work in Firefox 4.0.x versions. <br />
http://domino.symetrikdesign.com/2011/03/25/getting-the-delicious-bookmarks-add-on-to-work-with-firefox-4-0/comment-page-1/#comment-5807 -
Calculating line length in Java
Hi all;
I've been using LineBreakMeasurer & AttributedString to measure line lengths. However, I now need to take into account:
Small Caps
Scaling (making each character thinner/wider).
Spacing (adding/subtracting space after each character).
Hyphenation, where line breaks can occur at specific places within words.
Is there a way to do this using Java? The two fundamental things I need to get is:
How long is a passed in string.
For a passed in string and length, how many characters of the string fits in that length.
I can do this using LineBreakMeasurer & AttributedString and calling it character by character. But is there a better way?
thanks - daveHi, Have you had a look at the FontMetrics class? That might be an option.
-
Leading zeros deleted while downloading to excel sheet
Hi ,
i am downloading data to excel sheet from internal table, iam using gui_download but its deletin leading zeros can any one tell me as to how i go about this
for ex i ahve a mterial no : 00123
i see 123 i want it to be 00123
Thanks
kajolHi,
try to explain to excel, that this field is character field (I think that it will be done by adding single quote as first character of string).
Pointing to my previous answer try:
Constants: c_single_quote(1) type c value ''''. " I _hope_ it works
loop at itab.
concatenate c_single_quote itab-matnr to texttab-c_matnr.
endloop. -
Transparency - 8bit w/ alpha vs. 32bit
Hi, we are designing a pretty graphics heavy site right now. It's a very rough, organic design, and uses transparency quite a bit (mostly solid color boxes letting the background texture show through a bit).
So we know we'll have to do some serious optimization to make sure this site isn't a complete slug. We plan on using sprites as much as possible. But we need to figure out how to approach all the transparency.
- Can anyone verify from experience the file-size savings you would get if saving relatively simple graphics (mostly solid tones, large color blocks, type, etc.) with transparency as 8bit w/ alpha transparency vs. full 32bit??
We are not really concerned about the IE6 compatibility aspect of it, just the file-size savings part.
The main reason for the question is that the design is done in Illustrator CS4 and we would love to just export the slices from there. Illustrator does support full 32bit PNGs (calls it PNG-24 of course). But we do have a copy of Fireworks CS4 that we don't use too much. Just want to make sure it will be worth all the effort of properly bringing all the elements in from Illustrator and making sure nothing gets messed up in the migration.
THANKS!Thanks. We did end up using Fireworks to create a large sprite of all the Home page background elements (some will be used elsewhere). We were able to get a roughly 1800px square file with the equivalent of what would have been 34 individual grahpics saved as one 100kb image sprite! Considering all elements had partial opacity, and a lot had soft glows and/or drop-shadows, that's a HUGE savings!
UNFORTUNATELY, Fireworks CS4 slowed to an absolute crawl on my ol' G5 Dual 2Ghz Mac Pro (with 6GB RAM). Even just selecting and element would cause a few seconds of spinning beachball. So I had to 'borrow' my bosses newer MacBook Pros to get anything done (not ideal!). And even with that, I had to install a demo of Fireworks CS5 for it to really work without a lot of delays.
And the Illustrator CS4 file DID NOT come in very nicely either. I pretty much had to rebuild most of it from scratch. According to the Adobe documentation, most everything I was doing 'should' have come in fine (I wasn't really doing anything that was listed as not compatible). Nice in theory...
It's too bad Fireworks seems to be Adobes ugly stepchild that doesn't get much attention. If they fixed performance and import issues, added a useful color/swatches implementation (from Illustrator/InDesign), and added at least simple paragraph/character styles (again - Illustrator/InDesign), we would definitely love to use this for website comps and graphics creation instead of Illustrator. But for now, unless we absolutely need Fireworks' 8-bit PNGs w/ alpha-transparency, we'll stick with Illustrator. It's too bad, I'm originally a Macromedia guy and was using Fireworks back in v.2/3. -
I receive an error message when trying to link my iMessage account to my Apple ID. My phone syncs fine, just my Macbook doesn't work. Same issue with Facetime.
HI,
In effect this is a DNS block.
You can do it.
You need to be in an Admin Mac User Account that has non blank password.
Go to the Applications/Utilities folder and open Terminal.
You should see your shortname (the one under the Little House icon) followed by the $ symbol
Copy and paste the bold text below into Terminal after the $ symbol.
sudo pico /etc/hosts
This will load the file "hosts" into and editor that works in Terminal.
Use the arrow keys to get to the line with Verisign in it.
Now type the # symbol and it will be added in front of the character that is highlighted.
The # symbol is either Shift +3 or ALT+ 3 depending on your keyboard layout
Now use CTRL and O keys together.
This Saves the changes.
Quit Terminal.
10:02 PM Wednesday; May 1, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously -
Yet Another modelsUnderRay Problem!
Hi,
I've seen a few posts about using the modelsUnderRay for
collision detection but none of them have seem to help me. I've got
a complex scene and adding collision detection to my character.
However for some reason director crashes when I render the movie. I
made sure the ray is not detecting the character which it has been
added to. Heres the code I using...
collisionList =
pScene.modelsUnderRay(pCharBoundingBox.worldPosition +
vector(1,1,1) , pCharacter.transform.yAxis,#detailed )
As you can see the starting position of the ray is not the
character position. And the collisionList is empty when its not
detecting any objects, but director still crashes
I have followed this tutorial to help get me here:
http://www.fbe.unsw.edu.au/learning/director/3D/environment/collision2.asp
Has anyone has any similar problems using modelsUnderRay
before? Is there a better way for doing collision detection other
than the method the tutorial shows you for more complex scenes?
Thanks in advance for any suggestionsDon't think you have answered my question.
USB2 Enhanced Controller has 5 driver files listed
usbehci.sys
usbhus.sys
usbport.sys
hccoin.dll
usbui.dll
4xUSB Controllers each have 4 driver files listed
usbhub.sys
usbport.sys
usbuhci.sys
usbui.dll
5xUSB Root Hub each have two driver files listed
usbd.sys
usbhub.sys
That is what I am trying to confirm - is all this correct or have I some driver files there that are perhaps not current and/or not required?
Maybe you are looking for
-
Fixed layout Epubs versus PDF!
I have this niggling thought that I can't seem to shake off, so I'll air it out here: What is the difference between a fixed-layout ePub and a PDF? I mean, what is the intrinsic difference? Isn't a PDF precisely a fixed-layout ePub, only better? A PD
-
I am trying to password protect my router but when I go into wireless> security mode and click on WPA or any of the other choices it goes back to disabled. Can anyone help?
-
I'm downloading using RealPlayer But the video playback is jerky. The audio playback is OK. Please can anyone suggest a solution. PS Would upgrading to RealPlayer Plus help?
-
Activating Importing Contacts into new Skype ID
Hi, I just set up a new Skype ID as the old one didn't really reflect my business anymore. So I backed up my contacts and then imported them into my new Skype which seemed to work but now all my contacts show as not accepted. I have tried selecting t
-
Validity Sensor failure.
i purchased a HP Pavilion dv8-1200 CTO Entertainment Notebook PC. at first everything worked fine. the machine is beautiful. however after using the laptop for a while i started to have issues with the fingerprint reader. i have scoured the internet