Browse Search Popular Register Upload Rules User list Login:
Search:
3D Render Demo v1.2

Image:
screenshot of the scene

Author: TheBumpkin

Group: Default

Filesize: 161.42 kB

Date added: 2014-03-26

Rating: 7.3

Downloads: 3354

Views: 636

Comments: 11

Ratings: 7

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

TheBumpkin's 3D Rendering Engine Demo

I present to you a bare bones 3D rendering engine scripted completely in Algodoo. It will render a few shapes and put them into a scene. From there, you have control of the lighting, the camera, the point the camera is looking at, the look of the shapes, and rotation of the world.

This is by no means a proper rendering engine. While rendering the house, the best my computer can manage is 1 frame per second. Also, the code doesn't draw everything in the correct order all the time. So needless to say, the engine has problems and there is much room for improvement. For now...

Comment, Rate, and most of all Enjoy!

1.1 Fixed bug with shapes not showing on factory reset Algodoo.
1.1.1 Forgot to take out my console print debugging code, oops.
1.2 Fixed a bug with the left look at arrow and reversed the up/down arrows.
Last edited at 2014/03/26 20:52:10 by TheBumpkin
Please log in to rate this scene
edit
Similar scenes
Title: [LAG]Mandelbrot Set Renderer v1.3
Rating: 6.5
Filesize: 129.39 kB
Downloads: 230
Comments: 14
Ratings: 4
Date added: 2024/04/27 13:39:41
Made with: Algodoo v2.1.0
Rating: rated 6.5
download
Title: Demo... Rally track ... para o torneio.. Beta v1
Rating: 5
Filesize: 0.53 MB
Downloads: 596
Comments: 0
Ratings: 1
Date added: 2009/09/11 01:46:47
Made with: Phun
Rating: rated 5
download
Title: SABR render
Rating: 5.625
Filesize: 31.95 kB
Downloads: 451
Comments: 1
Ratings: 2
Date added: 2010/06/16 14:43:39
Made with: Phun
Rating: rated 5.6
download
Title: Superduty dual leaf spring demo
Rating: 4.8889
Filesize: 70.27 kB
Downloads: 851
Comments: 0
Ratings: 3
Date added: 2009/12/17 22:33:34
Made with: Phun
Rating: rated 4.9
download
Title: stick on skate DEMO
Rating: 5
Filesize: 0.52 MB
Downloads: 410
Comments: 1
Ratings: 1
Date added: 2011/04/28 11:00:37
Made with: Phun
Rating: rated 5
download
Title: Day of Mayhem demo (crushable cars)
Rating: 5
Filesize: 342.13 kB
Downloads: 1329
Comments: 0
Ratings: 1
Date added: 2022/05/08 21:51:12
Made with: Algodoo v2.1.0
Rating: rated 5
download
Now all fixed.
Last edited at 2014/03/27 03:36:48 by s_noonan
Hmm, you are correct. When I did a factory reset on Algodoo it failed to draw the cube. Working on it now...
Found it, fixed it. There was one scene.my variable missing after the reset and one actual bug that my Algodoo was apparently ignoring until the reset. It was an actual bug that should have caused an error no matter what. Wasn't doing it before the reset. Strange.

Thanx for the report.
Nice job! This must have taken many hours over many days to do.

I noticed one glitch.... The left arrow that moves the camera look at position doesn't seem to work.
In my laptop doesn't appear anything, I get only 1 fps.

Edit: Now it works! resetting helped, but stillreally difficult to see with my laptop, because it has a lot of lag.

My "3D phyramid" is nothing in comparison with this scene. G8! :tup:
Last edited at 2014/03/26 16:04:29 by lololoer
I did it just to see if it could be done. But, as I say in the Author's notes, the better question might have been should it be done. It does mostly what I want it to do, but is it useful, no, due to the lag. With a single spinning cube, i can hold 10 fps and a nice smooth rotation. Anything more than one cube and fps drops off quick. I have done everything I can do streamline the code and make it as efficient as possible, there is just a LOT of math to be done for each rendered frame and Algodoo was never intended to do that via the interpreted scripting language. The inability to modify individual array elements also slows it down because I have to constantly rebuild arrays instead of modifying existing ones. The limited ability to do recursion meant I had to use a horribly slow sorting routine. There are extra calls to routines to do things that would normally be built into the language.

Ok, there is one use I can see. If you wanted a stationary 3D object in a scene, you could use this to render it with the desired lighting and view, then copy the resulting polygons and paste them in the other scene. For that purpose, it would work (after you rearrange the ZDepth of the incorrectly placed polygons of course:)).
There are some glitches in 3d engine but the work you did is just amaizing.
I'm very happy - we have another algodoo thyme maniac. That pushing me forward to make something crazy)))) 10.
Nice work!:tup: :tup:
Suggestion: Occasionally, the Algdoo GUI will pop up tool bars when clicking on objects in a scene. Add this code to "upadate" in any one geometry, and that will fix the problem: app.gui.playMode = sim.running

In case you didn't know (but I'm sure you did) update executes code even when sim is not running.

Try this and I think you will like it. I use it in nearly every scene that I make which requires clicking on items in the scene. It also prevents accidental moving of item if the user happens to have the move tool selected. This will force the grab tool.
WHOA!!!!!!:tup::tup::tup::tup:
3D in 2D hehe..