My avatar "floats" above the plane

View previous topic View next topic Go down

My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 12:35 pm

as much as I love the SIO2 engine, the 1.4 version is giving me headaches. (more likely my own incompetence with blender).

my current issue involves creating a scene where a car is driving over a terrain (a sculpted, textured plane) and it seems to just float/hover above the terrain just enough to be noticeable. This problem only occurred when I switched to 1.4 and didn't happen in 1.35. Any hints as to what is causing this?

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 4:51 pm

You can try to change the collision margin by tweaking it in the user properties of the object and set a different value.

<float> <mr> <value>

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 5:14 pm

do you mean in blender->physics panel->advanced settings ? If so, I tried that, I set the margin of my car and the ground to be .0001 and 0 respectively and still my car is "floating" atop the ground. This is so weird, never was a problem in 1.3.5 Crying or Very sad

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 5:20 pm

The margin property from the Physic Panel is NOT accessible from python (unfortunately). So you need to add it as a user property... The same way you add user properties to tutorial16 for the softbody... since they are also not available from python. You can also refer to the fileformat_specification.pdf for more information about the property tags that can be set.

Cheers,

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 5:22 pm

sio2interactive wrote:You can try to change the collision margin by tweaking it in the user properties of the object and set a different value.

<float> <mr> <value>


ok, now I know what you mean. I clicked the "Add Property" and added "mr" with float values .01 to my plane and car...didn't work, then I set them both to 1 and that didn't work either.

any other ideas? scratch

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 5:25 pm

What type of bounds you are using for the car... forget about the plane... the plane is not the problem since its a static triangle mesh right?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 5:27 pm

sio2interactive wrote:What type of bounds you are using for the car... forget about the plane... the plane is not the problem since its a static triangle mesh right?

I have no bounds on my car and yes, I did convert the plane to a static triangle mesh.

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 5:29 pm

No bound type, no physic... Im sure you have one Wink what is your car? cube, cylinder, convexhull what?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 5:42 pm

sio2interactive wrote:No bound type, no physic... Im sure you have one Wink what is your car? cube, cylinder, convexhull what?

[img][/img]

I guess it's a rectangle...

this is what it looks like when running:

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 5:48 pm

Ok well you have no bounds set for the car (or use cube by default)... that's why its floating... check tutorial061 and 062 (+video tutorial) for more info on how to set the proper bound type etc...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 6:00 pm

sio2interactive wrote:Ok well you have no bounds set for the car (or use cube by default)... that's why its floating... check tutorial061 and 062 (+video tutorial) for more info on how to set the proper bound type etc...

Just tried to add a bounds for the car. I tried triangle mesh, convex hull, box and still the same thing. Whats bizarre is that if I use this exact blend file and export it (using the 1.3.5 exporter) and run it on sio2 1.3.5 then it will not float. confused

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  sio2interactive on Mon Aug 31, 2009 6:03 pm

The behavior of this panel have changed since 1.3.5, check tutorial061 & 2 to check how to set the right properties.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Mon Aug 31, 2009 6:09 pm

well, this might be the cause of it, but I just don't know how to fix it.





eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  IanLinart on Thu Sep 03, 2009 7:44 am

eviljack wrote:well, this might be the cause of it, but I just don't know how to fix it.





what are we suposed to see from those screeshot?

I add the same problem with my character he was just a little above the object he was standing on.. so I changed the bound type for both of them where the ground is set to triangle mesh and my character to box.. (box should be fine for your car, and triangle mesh for your ground too) and everything is beautifull now
avatar
IanLinart

Posts : 26
Join date : 2009-08-12
Age : 29
Location : Montréal

View user profile http://iapps.linart.qc.ca

Back to top Go down

Re: My avatar "floats" above the plane

Post  eviljack on Thu Sep 03, 2009 5:35 pm

I think it's because I can doing a "center new" on the plane which is actually now a mountain range and the center is a few feet off the ground so the car think's its on the ground when it's not.

eviljack

Posts : 9
Join date : 2009-06-22

View user profile

Back to top Go down

Re: My avatar "floats" above the plane

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum