Report as inappropriate.

No_avatar_thumb

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)

3240 views / 13 in the last 7 days

13 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 is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on Thu Dec 11 21:29:09 UTC 2008
No_avatar_thumbmutantleg

2008/12/11

just updated it, you can change it now
No_avatarOpalelement

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?
No_avatarOpalelement

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?
No_avatar_thumbOpalelement

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...
Evil3_thumbNinto

2009/5/3

Thanks! :]
No_avatar_thumbdwarfcooker

2009/6/1

trying to find a point.....
Small_thumbmjrb4

2009/6/2

A point on the terrain?
No_avatarJasonInVegas

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?

See all comments

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

Who likes this?

Photo_on_2011-09-18_at_18 No_avatar_thumb Person_thumb Profilbild_thumb Brain_thumb Face4_thumb No_avatar_thumb No_avatar_thumb Evil3_thumb No_avatar_thumb No_avatar_thumb Avatar-1940_thumb Mesepia200x200_thumb