V 2.1.0

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

V 2.1.0

Postby Wild Bill » Fri Nov 01, 2013 10:53 pm

I have been away from algodoo awhile and was trying to run a scene I made with v 2.0.2 on v 2.1.0 but the scene involves spawning objects that worked in v 2.0.2 but nothing spawns at all when the scene is run on v 2.1.0. Is there anyway to fix this? Also there are artifacts that appear when you zoom out but disappear when you zoom in, is there a fix for that? That didnt happen in v 2.0.2 either.

Are scenes made in v 2.0.2 just not compatible in v 2.1.0?
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: V 2.1.0

Postby Wild Bill » Sat Nov 02, 2013 12:43 am

It seems to be sim.time related, The scene will spawn for a few seconds then stop, the spawned objects use sim.time to disappear in a few seconds after spawning which they do but after that time all spawning stops. Is the a dif command to use than sim.time for v 2.1.0?
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: V 2.1.0

Postby electronicboy » Sat Nov 02, 2013 1:19 am

I've never had any issues with loading scenes from 2.0.2 in algodoo 2.1.0.
Any chance of you uploading a copy of the scene, check the console for error messages too, as not much has changed to thyme other than a few more extra commands.

Also, 2.1 has the graphical system rewrote to improve performance, however some drivers don't support openGL 2.1+ properly and scrimp on features as opposed to implementing the openGL standards properly.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: V 2.1.0

Postby Wild Bill » Sat Nov 02, 2013 4:38 am

After the spawning stops (exhaust smoke) the console says bad body not in scene , tell me if it works for you....

Rating: rated 6.6
Filesize: 2.8 MB
Comments: 16
Ratings: 5
download
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: V 2.1.0

Postby electronicboy » Sat Nov 02, 2013 2:18 pm

Spoiler: show
(e)=>{
Scene.addCircle({
collideWater := true;
color := [0.5828172, 0.92423695, 0.55326444, 0.0];
onCollide := (e)=>{};
attraction := 0.0;
controllerAcc := sim.time;
onHitByLaser := (e)=>{};
heteroCollide := true;
immortal := false;
opaqueBorders := true;
refractiveIndex := 1.5;
killer := false;
friction := 0.0;
materialName := "";
restitution := 0.0;
drawBorder := false;
controllerInvertX := false;
controllerInvertY := false;
edgeBlur := 0.0;
drawCake := false;
controllerReverseXY := false;
resistivity := 1;
airFrictionMult := 100.0;
showVelocity := false;
density := 1;
textureClamped := [false, false];
reflectiveness := 1.0;
showMomentum := false;
textureMatrix := [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0];
texture := "";
inertiaMultiplier := 10;
showForceArrows := false;
collideSet := 512;
colorHSVA := [115.22022, 0.40138248, 0.92423695, 0.0];
materialVelocity := 0.0;
attractionType := 1;
protractor := false;
zDepth := 461.0;
layer := 0;
pos := e.pos;
angle := -1.2830757;
body := 817968;
vel := [-0.0041507869, -7.5580316];
angvel := 0.0027163557;
radius := 0.58834314;
timeToLive := 2;
geomID := 981797;
});
Scene.addPolygon({
surfaces := [[[2.1016493, 1.284897], [1.934413, 1.5775148], [1.7672071, 1.7447206], [1.5163832, 1.8283387], [1.2237806, 1.7447206], [1.0565443, 1.5775148], [1.0162306, 1.3354646], [0.93096441, 1.6192781], [0.68015057, 1.6471508], [0.42933682, 1.6750236], [0.17852303, 1.7028962], [-0.11411002, 1.5774843], [-0.28113273, 1.3266908], [-0.59467036, 1.3266908], [-0.90820795, 1.3266908], [-1.0754137, 1.0758668], [-1.0754137, 0.8250581], [-1.2844286, 0.7414552], [-1.5770311, 0.7414552], [-1.8278551, 0.69964612], [-1.8278551, 0.44882214], [-1.9532824, 0.15620434], [-1.7442675, -0.011016727], [-1.9950914, -0.05281055], [-2.1622972, -0.22003162], [-2.1622972, -0.49175251], [-2.1622972, -0.76347339], [-2.0786791, -1.0142821], [-1.8278551, -1.1396941], [-1.6188402, -1.0979003], [-1.5770311, -1.3069152], [-1.4934435, -1.6413268], [-1.2008104, -1.7667388], [-0.94998652, -1.8085479], [-0.69916254, -1.7667388], [-0.57376581, -1.5577239], [-0.57376581, -1.3069152], [-0.36475089, -1.474121], [-0.072117835, -1.599533], [0.17867562, -1.599533], [0.38769051, -1.7667388], [0.63851446, -1.8503569], [0.76392645, -1.7249449], [0.88933843, -1.599533], [0.88933837, -1.3208463], [0.88933837, -1.0421599], [0.88933843, -0.76347339], [1.1540987, -0.76347339], [1.4188591, -0.76347339], [1.6836195, -0.76347339], [1.8090162, -0.51264942], [1.8090161, -0.26183051], [1.8090162, -0.01101163], [1.8090162, 0.23980725], [1.7253981, 0.5324403], [1.934413, 0.78325665], [2.1434278, 1.034073]]];
collideWater := true;
color := {
[0.54, 0.54, 0.54, 0.56 - ((sim.time - controllerAcc) / 3)]
};
onCollide := (e)=>{};
attraction := 0.0;
controllerAcc := sim.time;
onHitByLaser := (e)=>{};
heteroCollide := false;
immortal := false;
opaqueBorders := true;
refractiveIndex := 1.5;
killer := false;
friction := 0.5;
materialName := "";
restitution := 0.5;
drawBorder := false;
controllerInvertX := false;
controllerInvertY := false;
edgeBlur := 0.0;
controllerReverseXY := false;
resistivity := ∞;
airFrictionMult := 1000;
showVelocity := false;
density := 2.5;
textureClamped := [false, false];
reflectiveness := 1.0;
forceVertexDrawing := false;
showMomentum := false;
textureMatrix := [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0];
texture := "";
inertiaMultiplier := 1.0;
showForceArrows := false;
collideSet := 0;
colorHSVA := [77.600876, 0.0, 0.54, 0.53333783];
materialVelocity := 0.0;
attractionType := 2;
entityID := 12171;
zDepth := 388.0;
layer := 0;
geomID := 981796;
pos := e.pos;
angle := 120;
body := 817968;
vel := [-0.0041507934, -7.5580316];
angvel := 0.0027163557;
timeToLive := 1.5;
polyTrans := [0.62808412, 0.0, 0.0, 0.62808412]
});
Scene.addFixjoint({
geom0 := 981797;
geom0pos := [2.2686265e-006, -7.010683e-006];
geom1 := 981796;
geom1pos := [-0.035435002, -0.02438614];
colorHSVA := [207.79428, 0.51456279, 0.92646945, 0.0];
color := [0.44974273, 0.70563149, 0.92646945, 0.0];
opaqueBorders := true;
entityID := 12169;
zDepth := 463.0;
layer := 0;
size := 0.17304683
})
}


I've updated the script to the above, and it seams to be working properly now.

Using the same geometry, body and entity IDs as other objects is not much of a good idea, but the only way to work round that is to create a script which adjusts a variable and sets the IDs based off this variable, e.g. incriment by 6, and use the 6 variables between the last and the current one to set these IDs.

This is why smoke particles appear stuck together, which may possibly actually be helping increase the visual effects of the smoke on this scene!

I think that the reason why you started to see objects not spawning is because using density = 0 doesn't remove an object from algodoo. As far as algodoo is concerned, it is still an object, however not a valid object. The physics subsystem still has to deal with this object, which I believe the amount of invalid entitys of the same ID eventually throws the system off, creating these error messages.

In algodoo 2.1, a variable called "timeToLive" was created, which allows you to set the sim time that an object should remain on the screen for, without having to abuse the density bug.


Also, I think the visual issue you have with algodoo and the sun is created due the the sun being a polygon which is misformed (e.g. the outer edge of the original box still exists as part of the circle, causing this effect. My advice would be to create a circle with the texture, and abuse the TextureMatrix variable and the texture tool to adjust the image. There is a post somewhere on this forum with the infomation of the texturematrix array which may be handy.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: V 2.1.0

Postby Wild Bill » Sat Nov 02, 2013 7:08 pm

Thanks! I am on my way to making repairs to the scene. Did the scene run at a reasonable speed to you or did it run slow?
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: V 2.1.0

Postby electronicboy » Sat Nov 02, 2013 8:47 pm

Seamed to run at a reasonable speed for the FPS I had, but that's my GPU drivers, ubuntu goofed up with 13.10...
[update]
Fixed the settings, the current scene runs perfectly on my box, and I'm using pretty much low end components, so you're scene will probably run fine for everyone!
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: V 2.1.0

Postby Wild Bill » Sat Nov 02, 2013 9:36 pm

Thank you, you have been very helpful.
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests

cron