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

Comments for Terrain

Return to Terrain

pollepolle

2008/11/19

More 3D stuff. Cool!
delmardelmar

2008/11/19

Very nice! This would work well with objects (rather than terrain) as well.
ZergZerg

2008/11/20

Whoa! Cool! At first I thought that this was actually rendering polygons. I have already done some tests with that, and Java is too slow to do the math properly :( You have a nice way of getting around that. Yeah, z-sorting is difficult. That is in the end what keeps my version of 3d from being realtime. I will release it sometime tomorrow, with any luck.
A new version of this scenario was uploaded on Thu Nov 20 09:03:21 UTC 2008
mutantlegmutantleg

2008/11/20

I actually found an example on how to do it (http://www.zanir.szm.sk/java.html), so its somehow possible, but the source is kind of low on comments (aka theres none)
mutantlegmutantleg

2008/11/20

I actually found an example on how to do it (http://www.zanir.szm.sk/java.html), so its somehow possible, but the source is kind of low on comments (aka theres none)
ZergZerg

2008/11/20

ah.. so it isn't entirely your code. Still cool. BTW, are you going to do any work with lighting for this?
mutantlegmutantleg

2008/11/20

Huh? Its my code (you can tell because of its full of bugs), i was talking about i have no idea on how that guy pulled it off Doubt it, its slow enough as it is anyway
ZergZerg

2008/11/20

ah... not slow on my end, but then I have a decent computer. Actually, if you can calculate the normal of a face, then lighting is fast and easy.
Builderboy2005Builderboy2005

2008/11/20

I actually had to write a z-buffer for the enemy display in my 3D game, but i'm sure it would be too slow to work for such a large number of polygons. But this is awesome, ite real 3D, as opposed to raycasted imitation of 3d ;)
RHINO_Mk.IIRHINO_Mk.II

2008/11/20

Not bad... but I can see a few bugs that you can work on: 1) The shadow doesnt change... you need something better than the background image for a shadow xD 2) There are some issues with transparency when looking on from the side... I have seen this issue elsewhere (in poorly made games) Not that any of this is bad, but it can be made better. ; )
ZergZerg

2008/11/21

Actually, this is not true 3D either... True 3D allows more than one topological shape. For instance, a tube is topologically different from a plane. This is closer to a 3D graphing system.
OpalelementOpalelement

2008/12/11

Is there any way to change the image size? No matter what values I change it doesn't seem to work. I tried adding two to all 64s and 63s as well as changing the 32s to 33s in case they were supposed to be half, but it still won't work. It says this: java.lang.IndexOutOfBoundsException: Y is out of bounds. It was: 64 and it should have been smaller than: 64 I can make it smaller and it will cut the image, but bigger won't work.
A new version of this scenario was uploaded on Thu Dec 11 21:29:09 UTC 2008
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?