This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2015/12/21

3d Iso Demo

A demo of 3d shapes in space whose rotations are controlled by user.

I started by making a 3d Point class that uses double values for location coordinates. Then, I made a Surface class which uses the points for the shape of its 2d surface parts. Then, I made a Body class which builds the 3d objects out of its surfaces.

I cannot explain why the initial cube has its left and right controls reversed. Actually, it just does not make any sense, since all points are controlled with the same code.

Source will be uploaded once I finish documentation.

7214 views / 16 in the last 7 days

13 votes | 0 in the last 7 days

Tags: demo with-source danpost threed

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2016/3/13

@trimil, I guess you really cannot say I learnt this. I just did what I thought had to be done to get it to work. The Point class and the Surface classes for use in 3D space are the main contributors in getting it to work. A surface is described by its surrounding points and a body is described by it surfaces. So, I tried to keep this in order and have the body control the location of its surfaces (or rather, the points that describe its surfaces) by using its location and rotation around the three axes in space.
DoggygamingDoggygaming

2016/3/14

@danpost nice job buddy :)
danpostdanpost

2016/3/14

gracias, @Doggygaming
DoggygamingDoggygaming

2016/3/14

@danpost XD :P de nada
DoggygamingDoggygaming

2016/3/14

@danpost Dan if you dont mind (which you probably do) can u take a peek to my games plz :3
DoggygamingDoggygaming

2016/3/14

@danpost and dude how do you even make this stuff i do stuff less than half good than u :S
danpostdanpost

2016/3/15

@Doggygaming, I looked at your uploaded scenarios and I did not see any major problems with them. You seem to have much of the basics down pretty good. You must realize that I have many years of practice behind me.
DoggygamingDoggygaming

2016/3/15

@danpost Yeah :P
A new version of this scenario was uploaded on 2018-01-18 00:27:25 UTC
danpostdanpost

2018/1/18

Now works in HTML5.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

henryufo85 AussieDauz data17 wabuilderman Jhays SPower Doggygaming trimil TheJohny TomazVDSN Vellyxenya winnerpig Game/maniac