Browse Search Popular Register Upload Rules User list Login:
Search:
Dynamic shadows (computer Intensive)

Image:
screenshot of the scene

Author: homieeee

Group: Default

Filesize: 0.71 MB

Date added: 2014-10-08

Rating: 6.1

Downloads: 1490

Views: 447

Comments: 13

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

It's not anywhere near perfect but i hope you all enjoy:)
Please log in to rate this scene
edit
Similar scenes
Title: Lowrider[First shadows]
Rating: 5
Filesize: 401.73 kB
Downloads: 1230
Comments: 2
Ratings: 1
Date added: 2011/02/13 17:46:14
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: 3D Shadows Follow Light
Rating: 5.8889
Filesize: 130.22 kB
Downloads: 1079
Comments: 10
Ratings: 3
Date added: 2014/03/15 21:20:00
Made with: Algodoo v2.1.0
Rating: rated 5.9
download
Title: AHOX U.D.R.A-01 Computer
Rating: 6.1111
Filesize: 317.33 kB
Downloads: 3817
Comments: 4
Ratings: 3
Date added: 2022/08/08 01:23:55
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Title: Liquidized
Rating: 7.25
Filesize: 506.73 kB
Downloads: 414
Comments: 1
Ratings: 4
Date added: 2008/08/29 06:31:19
Made with: Phun
Rating: rated 7.3
download
Title: Mr.D industries' Phun computer V 2.0
Rating: 5.625
Filesize: 67.44 kB
Downloads: 3022
Comments: 6
Ratings: 2
Date added: 2011/04/24 23:24:53
Made with: Phun
Rating: rated 5.6
download
Title: Computer Virus That Actually Freezes the Phun Computer
Rating: 5.3
Filesize: 16.56 kB
Downloads: 4547
Comments: 20
Ratings: 4
Date added: 2009/07/03 20:44:01
Made with: Phun
Rating: rated 5.3
download
HOLY COOL!! I'd like to create something like this at my shooter-scenes, but my scripting level not so high:)
nice;)
Thanks Alien_RG! I actually designed this to be used in any scene! I'm sure I could have some function parts changed to work with your scenes if you want!

Thanks Fratel!
Wow, you know how to manipulate polygon surfaces, which is something that I would like to learn how to do. Do you know of any good tutorial posts in the Forum that explains how to work with polygon surfaces? Thanks!
Thanks Xray! Not that i found, I figured it out by myself. Its pretty simple actually!
I would post this to forums but i cant remember by password:bonk:

I will just explain how the surfaces work. If you want i can explain my shadow code more.

Scene.addPolygon({
surfaces := [[[0,0],[1,0],[1,1],[0,1],[0,0]]];
});

this function when put into the console will spawn a square(polygon) size 1 meter x 1 meter at pos [.5, .5]

Imagine the surfaces are like a connect the dots games

The first number is an array [0,0] (this is like a pos so use [X, Y])

This is where the first "dot" is made

The next array is [1,0]

This, in a sense, is like saying create a line from the previous array ([0,0]) to this new array ([1,0])

Then again next array is [1,1] so it creates another line to this point, and then to [0,1]

Notice how there are 5 positions in the array of numbers to create a 4 vertex box this is because the last pos will always equal the first so you complete the drawing


Hope this helps! If it doesn't i can try to reword it.
Last edited at 2014/10/08 23:23:43 by homieeee
Yes, that helps a lot, and I am going to experiment with it to see if I can make it work. I tried working with polygons in the past, and realized that I was not able to work with individual vertices. It seems Algodoo (or Thyme?) will not allow you to make more than one change to the poly using polytrans. But maybe there is a better way to do it as you have discovered.

I'll play with it, and if I have problems I'll contact you through this scene comments.

Concerning the forum, you can try to register again using a different Email address. The system does not check the validity of Email addresses, and so (as most users have discovered) you can register with any bogus Email address (you did not hear this from me! lol)
Yeah you can't change a polygons vertices once spawned you'll have to spawn a new one every time you want to change it. I don't think there's any other way to do it!

Good luck:tup:
Okay, I successfully created a polygon "square" as you explained. That was easy. The hard part is taking an existing polygon and reshaping it into something different. How is that done?
Well it depends on what you want to do. For instance if you wanted to create a polygon that has one points move up you first need to create a place for the script to run.

Make a normal square anywhere in the scene and in the poststep function put this

Scene.addPolygon({
surfaces := [[[0, 0], [1, 0], [1, sin(sim.time * 10) + 1], [0, 1], [0, 0]]];
timeToLive := 0.03;
colorHSVA := [0, 1, 0.5, 1]
})

This function will spawn a box with very important parts

If your polygon is always changing you need to add a timeToLive so after a frame the old polygon is deleted and a new one takes its place.

Its a lot like a flip book

One frame it looks like something and then the next frame there's a new page with a sightly different picture

Also notice the sin function in the surfaces array

[1, sin(sim.time * 10) + 1] this makes a point that is always changing.

One frame it might be [1,.5] and then the next its [1, .6]

----

Another example script i have is a box that has one point follow the Y position of your mouse

Scene.addPolygon({
surfaces := [[[0, 0], [1, 0], [1, app.mousepos(1)], [0, 1], [0, 0]]];
timeToLive := 0.03;
colorHSVA := [0, 1, 0.5, 1]
})
This is VERY helpful, and you have given me a lot to "play" with._o_
THANKS VERY MUCH!
In the near future, you may see one of my scenes that uses your script to make and modify polygons. :)
No problem Xray!:) Good luck:tup:
That's awesome! But I believe walls could be independed and copy-past-able)
Also, there is a problem then light source pass gate wigh speed - shadow jumps on wall. Great scene!
Thank you so much kilinich!! The walls actually are 100% independent and copy and paste able! I plan on releasing a more user friendly version soon.
I will work on removing some bugs and hopefully improve rendering soon!