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

Report as inappropriate.

mutantleg
mutantleg presents ...

2008/11/19

Terrain

Recent updates:
- some optimization (it now uses an array for heightmap, not much speed improvementh though)
- now you can use different sized images easily (by popular demand)

With all this 3D craze seem to be goin around
i didnt wanted to left behind, so here you go

I started on working this z-buffering thing,
but its very buggy (guess to make it work flawless
i would have to write my own polygon drawing code somehow
too bad i have no idea how to do that)

Move with
Q E - in Z
A D - in X
W S - in Y

Rotate
Arrow keys
X C (roll)

Space - reset

1 paint with dots
2 use lines instead
3 polygons (default)
new: 4 - 5 zbuffer (WIP)
experimental: 6-7 zbuffer with points using alpha (very slow)

10351 views / 18 in the last 7 days

21 votes | 0 in the last 7 days

Tags: demo with-source codepoint-08-general 3d terrain

This scenario is a member of: 3D


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

2008/12/11

just updated it, you can change it now
OpalelementOpalelement

2008/12/11

Thanks for such a quick and helpful response:) Great job making it to begin with:) One more question though, can you tell me which part of the code actually adds the altitude so it has hills and valleys instead of being a flat image?
OpalelementOpalelement

2008/12/11

Thanks for such a quick and helpful response:) Great job making it to begin with:) One more question though, can you tell me which part of the code actually adds the altitude so it has hills and valleys instead of being a flat image?
OpalelementOpalelement

2008/12/11

Nevermind, I figured out that it was done by using another image:)
I know there is an easy, simple, and fast way to do your z-Buffering, because i have program on my calculator that allows you to graph in 3D, and it has zBuffering in it. if my calculator can do it, there has got to be a way... I wish i knew what it was...
NintoNinto

2009/5/3

Thanks! :]
dwarfcookerdwarfcooker

2009/6/1

trying to find a point.....
mjrb4mjrb4

2009/6/2

A point on the terrain?
JasonInVegasJasonInVegas

2011/2/9

The shadow on the base (z=0) plane can/should change in response to rotation. This gives good user feedback and avoids the bizarre terrain moves, but shadow doesn't feeling. What do you think?
RidicolasRidicolas

2016/12/1

how did you make the terrain? blender?

See all comments

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

Who likes this?

fozzletink Pokeaidan Entity1037 SPower JetLennit Game/maniac Moritz drhorriblejr bourne noamgol Advenging Dreikäsehoch creator22 Yoinkinator pingun flygirl540 Ninto Opalelement TheHas Builderboy2005