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

Report as inappropriate.

SPower
SPower presents ...

2013/11/15

3D engine preview

This is a very early sneak peak of a 3D engine in greenfoot. Is is essentially a 'port' of an OpenGL engine for greenfoot, so it is slower and looks less awsome (I just can't implement the features that make it look more awsome).

It is far from finished, I just wanted to show what I was working on.

The controls are:
- wasdqe to move the object
- arrow keys to move the light source
- click to change from normal drawing mode to wireframe, and vice versa

For you real graphics-nerds, these are some of the (current) features:
- Full depth buffer support
- Blinn-phong shading for diffuse and specular reflection
- Gouraud and flat shading (gouraud shown)
- Wireframe mode
- Deferred rendering
- Backface culling
- Clipping
- .obj file loader: both for meshes and materials

Some things I'm going to work on:
- Physics
- Audio player (not using the default greenfoot library, but something more complex like the trail library)
- Shadows? (I'm really not sure. It depends on many frames per second I have to spare)

I hope you like it, and please tell me what I could improve upon!

4314 views / 1050 in the last 7 days

9 votes | 0 in the last 7 days

Tags: demo 3d engine sneak preview peak

This scenario is a member of: 3D


There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

Cool, if you could somehow make this run smoother that would be pretty awesome!
SPowerSPower

2013/11/15

Well, it's quite hard to optimize. Switching to deferred rendering was a big improvement, but now it looks like it will hit a ceiling of performance close in the future... I'll do my best!
Can't wait!
A new version of this scenario was uploaded on Sat Nov 16 15:10:38 UTC 2013 Better screenshot
Entity1037Entity1037

2013/11/18

Wow....... that's... amazing!
SPowerSPower

2013/11/18

Thanks a lot man!
Entity1037Entity1037

2013/11/30

Hey, how did you detect the FPS?
SPowerSPower

2013/11/30

I used mjrb's scenario: http://www.greenfoot.org/scenarios/261
trimiltrimil

2016/3/13

Wow! Very creepy and cool. I want to see this with a unicorn :D

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

Who likes this?

nolttr21 Dalvengyr trimil Busch2207 Entity1037 Game/maniac Kartoffelbrot JetLennit FlyingRabidUnicornPig