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

Report as inappropriate.

Zerg
Zerg presents ...

2009/1/8

Render Engine

This scenario has two render modes: A "quick render" mode, which has no Z-buffering, and a "real render" mode, which includes Z-buffering and potentially shaders, but is quite slow.
The "quick render" mode is based on BuilderBoy's code in his rasterizer. I will be working out Z-buffering sometime in the very distant future :P
The "real render" mode is far from complete. Right now it merely assigns color based on distance from camera.

Controls:
"quick" mode:
-Use the mouse to rotate
"real" mode:
-Use W,S,Q,E to rotate the CAMERA (note: it is possible while in quick render mode to accidentally rotate the camera in such a way that it cannot see the cube.)
-Use Arrow Keys to move the camera on the XY plane
The controls for the "real" mode are quite difficult, so I apologize for that.
Thanks again to BuilderBoy for his point projection code(It would have taken me months to figure out where mine had failed!)

9114 views / 1440 in the last 7 days

7 votes | 0 in the last 7 days

Tags: simulation with-source 3d rasterizer

This scenario is a member of: 3D


open in greenfoot
Your browser is ignoring the <APPLET> tag.
mjrb4mjrb4

2009/1/8

3D seems to be taking the gallery by storm lately ;)
ZergZerg

2009/1/8

:D It has become a competition :P This was actually done save for the point projection code before I had finished my Realm of Battle scenario. Still can't believe I missed such a key part...
mjrb4mjrb4

2009/1/8

Incidentally, is it just me or do the keyboard controls not seem to work?
How do you switch to 'real render' mode? And your welcome for the code! (its cool being the guy who started the 3D mania!) Now i need to work on my face rendering algorithm
ZergZerg

2009/1/9

Real render and Quick render are toggled between by pressing "p" and "r" The keyboard controls are only for real render mode. The preset is quick render. Even when you do go to the real render though, the keyboard controls will be laggy. Unfortunately, there really isn't anything I can do about this. The plan is to position the camera in quick mode and then render for real, with lighting & shading + textures(maybe). I also plan to make an editor with an exporter/importer that could work alongside Blender (I already have an import-export script that uses the data that this simulation works off)
qnanqingqnanqing

2009/1/9

Another 3d thing ! :D
Alright Zerg, your move!
linish22linish22

2009/4/26

It's a little hard to move. You might want to work on that.
dwarfcookerdwarfcooker

2009/6/1

no keyboard control are functioning, needs some work
mjrb4mjrb4

2009/6/2

The keyboard controls do work, but only in "real" mode (see the above comments for details.)

See all comments

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

Who likes this?

SPower thegreencoolerman Advenging flygirl540 Builderboy2005 qnanqing mjrb4