STRANGE BEHAVIOR Need help
|
|
Layla Honi
Registered User
Join date: 1 Nov 2007
Posts: 171
|
11-25-2008 19:54
I have built two vehicles previously. A monocycle (one wheeled motorcycle) and a trike. Both these vehicles work well with the scripts I have used. They both have a seat very low to the gound. The pose has the feet slightly lower than the seat.
....So I decided to build a two wheeled chopper style bike. The seat is not as low as the previous two and I have made various poses as well as used the same pose from the mono and trike.......
The problems with the new bike are: 1. If the AVi sit position is low the bike tilts raising the back wheel off the ground. The seat is not as low as the mono and trike. I checked the AVi bounding boxes and the foot boxes are not lower then the wheels. I have no other prims lower than the wheels. I cannot figure out why the bike is tilting when the AVi sit position is lowered, while the mono and trike work pefectly fine with a far lower seat position.
2. The bike rezzes about 3 meters in the air. I first built the bike on the floor of my skybox. It rezzed fine on the ground. I need room so I rezzed a platform about waist level in the skybox to work on the bike and edit the scripts. The first time I rezzed it on the ground after that, it rezzes in the sky. I have disable all scripts, took it in and re rezzed it and it still rezzes in the sky. I even rebuilt the bike using all new prims and it still rezzes in the sky.
I hope someone can help. IM me or drop a note inworld if you need to.
|
|
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
|
11-25-2008 23:05
I'll bet your two problems are one in the same. It sounds like you've got a cut or dimpled prim somewhere, and its bounding box is what's causing the trouble. When you cut or dimple a prim, it only APPEARS to get smaller. It's bounding box remains full size. Replace whatever cut/dimpled prims you've got with ones whose actual sizes are the same as their visual apearance, and both problems will probably go away.
If that's not it, then I'd say something's a little screwy in one of your scripts. Simply turning a script off doesn't necessarily undo all of its effects, so you know. Certain functions will persist until countered by another script.
|
|
Katryna Jie
Registered User
Join date: 24 Jun 2007
Posts: 187
|
11-25-2008 23:37
From: Chosen Few Certain functions will persist until countered by another script. or reset~
|
|
DancesWithRobots Soyer
Registered User
Join date: 7 Apr 2006
Posts: 701
|
11-26-2008 03:44
I had an issue with a car that I made that had the front wheels up off the ground anytime someone sat in it. It wasn't until I removed the animation I was using and saw that my AV's feet were well below the lowest point of the vehicle, (its tires) and pushing it up.
_____________________
"Two lives I have. One life I live. One life I dream. In dreams I remember the better in me."
|
|
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
|
11-26-2008 03:58
The positioning of the root prim is important too. For a bike I had made I had to make the root prim that was not part of the design and hide it inside another prim to get the bike to align and position exactly how I wanted it to be when rezzed.
|
|
Marianne McCann
Feted Inner Child
Join date: 23 Feb 2006
Posts: 7,145
|
11-26-2008 04:48
While I think Chosen has got a big chunk of the trouble, you might also be fighting with the avatar's bounding as well. I know I had to fight that a lot with my soap box racer. It may require a new sit animation that is "set" lower -- but check the prims first.
_____________________
  "There's nothing objectionable nor illegal in having a child-like avatar in itself and we must assume innocence until proof of the contrary." - Lewis PR Linden "If you find children offensive, you're gonna have trouble in this world  " - Prospero Linden
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
11-26-2008 05:12
From: Marianne McCann While I think Chosen has got a big chunk of the trouble, you might also be fighting with the avatar's bounding as well. I know I had to fight that a lot with my soap box racer. It may require a new sit animation that is "set" lower -- but check the prims first. I second this. In fact, I'm guessing that both the dimpled prim *and* the avatar/agent offset are causing two different problems. I'm guessing that the thing rezzing above where it should is due to Chosen's explanation: there's some void hunk of carved-up prim that's making it rez higher. But I'll also bet that if you sit on it up there (or just manually turn it to physical), it will settle down some ways toward the ground--in which case that's separate from the "wheel tilting off the ground" problem. And that problem, I think, is the agent position. I'm puzzled by this: "I checked the AVi bounding boxes and the foot boxes are not lower then the wheels." What are "foot boxes"? As far as the physics engine is concerned, the posed *avatar's* position makes no difference at all, only the *agent's*, and (AFAIK) the agent has a single simple bounding box. You can see if this is the problem by comparing llGetBoundingBox() with and without the agent sitting on the vehicle. I'll bet the agent is below where the avatar appears, enough to tilt that wheel off the ground.
|
|
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
|
11-26-2008 06:20
The animation could be the problem. If the 'hips' are moved in the BVH, the end result is that that the avie itself can be above it's physical bounding box. (The avie moves, the agent postion doesn't.)
If you drop the animation you use in a single prim sitball, is the avie positioned a lot higher than the prim? In this case the animation could be the issue. (Or more to the point, the fact this shift has probably been compensated in the llSitTarget, moving the agent a lot lower...).
|
|
Layla Honi
Registered User
Join date: 1 Nov 2007
Posts: 171
|
11-26-2008 10:56
Thank you for all your replies  Chosen: The bike has torus wheels that are path cut on the inside to make an angled rim and tire in one prim. It is a Hubless design. The front wheel has a 1/2 sphere (might be dimpled, have to check on that) with the flat side facing upward and forward about 45°. When I checked the boxes of the bike, I didn't see any below the wheels. When the bike is selected I don't see any hilited parts below the wheels. I'll try a clean bike and scrub it and see what happens. I imagine it will rez right. Katryna: Reset doesn't work. Dekkar: The root prim is located almost below my Avi's butt as the transimion of the bike. I tried moving it around and it doesn't seem to help. I don't have any more prims to make an invis root. Qie: I guess the foot bounding box must be from my boots, they are orange. I see a big yellow box around most everything. There are some other large boxes that are low but I see them onl others on bikes. I'll have to go and check the box of my AV only and the bike only. Damanios: The hips on the pose are tilted forward a bit since it's a chopper design the AV has to lean forward to reach the handle bars. The legs are up. I tried to copy the pose I used on the mono and trike since it was not full perm. I also made two others with varying hip and leg positions which didn't seem to help. I'll try a pose without tilting the hips..but they do need at least 1° to keep from default anim from overriding. I'll go back to the drawing board and check everything mentioned and hopefully find the answer.
|
|
Layla Honi
Registered User
Join date: 1 Nov 2007
Posts: 171
|
11-26-2008 20:36
Looks like you were right.
We found the problem with rezzing in the air after doing a lot of testing. The gas tank is a torus. Here is the specs: Size = .884 x 6.155 x 2.5. Path cut=.500 Hole size Y=.25 Taper X=1, Y=1 Radius=1 Rotation X=180.05 Everthing else is default.
So...apparently the size before modification when rezzed on the ground has the other end up about as high as the bike rezzes. The bounding box is of course the size of the prim. Here's what I don't under stand. After modifiying the prim to the above shape, the bounding box is not as it is with the orginal size, but only around the smaller modifidied prim. The axis arrows center is not below the prim. ...so why does it act like it's a full torus? Sadly the tank is also the backbone and heart of the bike design. I have to learn to make a sculpted tank now.
I think we also found the problem with the sit position tilting the bike..it does seem to be the pose, but not the pose it's self. I tried the pose I was first using, playing it in inventory to see how it was with out a prim. The sit low to the ground with the feet almost on the ground which means the hip height was lowered making the pose. The poses I made have a default hip height. I will redo my poses, lowering the hip height and test it.
|