www.jpct.net

jPCT - a 3d engine for Java => Projects => Topic started by: hthth on September 30, 2007, 11:14:30 pm

Title: Mystery Puzzle Game
Post by: hthth on September 30, 2007, 11:14:30 pm
I recently started working on some game ideas, and am planning to make a very short mystery/puzzle like game if time allows. Despite the project's young age I thought it'd still be fine to tell it to the world. So here's the fruit of this weekend, a few screenshots of my experiments:

(http://lh5.google.com/h.thorisson/Rv-1THBZudI/AAAAAAAAACc/r9eKjn2v61Y/s400/Picture%205.png)

(http://lh6.google.com/h.thorisson/Rv-1TXBZueI/AAAAAAAAACk/2p6oW7CAEdI/s400/Picture%206.png)

(http://lh4.google.com/h.thorisson/Rv-1s3BZugI/AAAAAAAAADQ/22ZyGH43he8/s400/Picture%208.png)

[Note that the sky is black because I haven't putten in a roof]

I'm currently getting the hang of architectures and texturing, plus using dummy objects for telling jPCT what to do (like player position, lights, etc.).
Title: Re: Mystery Puzzle Game
Post by: Remo on October 01, 2007, 02:49:14 am
Looking good!
Check out the DevKit. It has some buitl in stuff that may help you speed up research.
Title: Re: Mystery Puzzle Game
Post by: hthth on October 03, 2007, 04:14:38 am
Thanks for the compliments and advice, Remo. I'll definitely have a look at the DevKit.
I'm currently reading up on proper texture creation and application as well as finetuning my modeling skills (no real experience with it). If anyone's looking for a wholesome info on texture creation, I recommend 3D Game Textures: Create Professional Game Art Using Photoshop by Luke Ahearn. It technically contains tutorials that you could easily find online, but he presents it pretty nice and coherently.

Title: Re: Mystery Puzzle Game
Post by: hthth on October 08, 2007, 12:51:45 am
Well. Another weekend passed and some more screenshots to have a look at. Starting with a small bug that's been haunting me. Does anyone know why this could happen? :

(http://lh3.google.com/h.thorisson/RwlgDHBZuqI/AAAAAAAAAJA/50J3czDkaZE/s400/buggyfloor1.png)


The texture appears to move when the camera pans, as if it's constantly remapping itself onto the object. This only happens when I use the software renderer — when I switch to hardware the bug disappears and the texture looks fine again.

Any ideas?

Anyway, here are some sneak peaks at what I'm working on, still working on interior scenery and textures.
(http://lh3.google.com/h.thorisson/RwlgGHBZuvI/AAAAAAAAAJo/DpthbSjtOZw/s400/textured-hall.png)

Another question if anybody has the time: In the image above, the edges of the archways look curved, or round-edged. That's not the way the model looks (it's got hard edges, supposed to look like steel), the light appears to be making them look round. Anyone have any suggestions on how this could be mended?

(http://lh4.google.com/h.thorisson/RwlgFXBZuuI/AAAAAAAAAJg/5Mv55_QkZxw/s400/intersection-vents-textured.png)
Title: Re: Mystery Puzzle Game
Post by: EgonOlsen on October 08, 2007, 06:55:06 am
The texturing issue looks like a tiling issue to me. The software renderer runs into accuracy problems when polygons are getting too large and the texture repeats too many times on them. Try to split them into smaller ones to see, if this helps. About the lighting: You may try to identity/seperate the affected object (-parts) and change the shading mode on them: http://www.jpct.net/doc/com/threed/jpct/Object3D.html#setShadingMode(int) (http://www.jpct.net/doc/com/threed/jpct/Object3D.html#setShadingMode(int)).
Title: Re: Mystery Puzzle Game
Post by: hthth on October 09, 2007, 05:10:29 pm
Thanks Helge.
It looks like you're right on the texturing issue, shrinking the polygons worked! But I tried enabling flat shading on a part and it disappeared/became see-through, haven't figured out why yet. A play on the texture orientation helps make the archway edges look more sharp though, so that's cool for now.
Title: Re: Mystery Puzzle Game
Post by: EgonOlsen on October 09, 2007, 05:55:09 pm
Maybe flat mode became bugged somehow. I haven't used it in a long time...i'll look into it.
Title: Re: Mystery Puzzle Game
Post by: EgonOlsen on October 09, 2007, 07:17:38 pm
I've tested the flat shading and it worked as expected in software as well as in hardware mode... ???
Title: Re: Mystery Puzzle Game
Post by: hthth on October 10, 2007, 02:54:10 am
Thanks for testing — this one was absolutely my fault: I handle objects via methods depending on what they are (light, flat-shaded, etc.), and in the method for setting flat shading I forgot to add the Object's part to the world. My bad.

Anyway, the flat shading works now and it looks muuuuuch better! The edges definitely don't look curved anymore :)

Edit: Here's a screenshot to compare with the ones above.

(http://lh6.google.com/h.thorisson/RwwkGHBZuzI/AAAAAAAAAME/6HnY0CMrYfk/s400/archway_flatshade.png)
Title: Re: Mystery Puzzle Game
Post by: hthth on October 25, 2007, 06:33:16 pm
Just posted some information plus the most recent screenshots over at my blog, Think Artificial. If anyone's interested in keeping taps on what I'm doing.


EDIT: Might as well post the screens here too. I'm making all models and textures from scratch.

(http://lh4.google.com/h.thorisson/RxYSzHBZu1I/AAAAAAAAAM4/PLb7Bd3ACgU/s400/hall2.png)
(http://lh6.google.com/h.thorisson/RxYSznBZu2I/AAAAAAAAANA/qw8jBMm61r8/s400/intersection.png)
(http://lh4.google.com/h.thorisson/RxYS0HBZu3I/AAAAAAAAANI/6nk7HZltyG4/s400/intersection2.png)