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

Report as inappropriate.

MatheMagician
MatheMagician presents ...

2013/4/2

OBJ file reader

This code is a simple method of reading an obj file and drawing the object on screen. It doesn't currently work for multiple objects in a scene.

If your computer does not allow the program to read the file, download the project file.

4657 views / 34 in the last 7 days

5 votes | 0 in the last 7 days

Tags: mouse game simulation demo with-source

open in greenfoot
Your browser does not support the canvas tag.
Oh whoops, I meant to direct that comment to MatheMagician D: My mistake!
UpupzealotUpupzealot

2013/4/27

Awesome!
DutaDuta

2013/4/28

I didn't get round to adding materials support, but I packaged up my rewrite into a new scenario with a basic model viewer + a head model I made in Blender. It's link is http://www.greenfoot.org/scenarios/7931 in case the code interests either of you (by either of you, I mean MatheMagician & Builderboy)
JetLennitJetLennit

2013/4/28

You put the wrong link
DutaDuta

2013/4/28

Thanks! Yeah, the correct link is http://www.greenfoot.org/scenarios/8159
MatheMagicianMatheMagician

2013/4/28

Oops, that line is actually in readStuff(). Anyway, just put the file in the project file (the one that contains all the classes and their code). Thanks Duta, for pointing out the bug. I will try to fix that.
A new version of this scenario was uploaded on Sun Apr 28 11:29:47 UTC 2013 I fixed the small bug Duta mentioned.
A new version of this scenario was uploaded on Sun Apr 28 11:41:33 UTC 2013 I think I made it read on site.
DutaDuta

2013/4/28

Yeah, it's working :)
Game/maniacGame/maniac

2013/4/28

will you add texturing next?

See all comments

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

Who likes this?

Gevater_Tod4711 Duta Upupzealot JetLennit Game/maniac