Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4 ... 12
  ignore  |  Print  
  State of Fortune  (Read 52292 times)
0 Members and 1 Guest are viewing this topic.
Offline Kroniz

Senior Newbie





« Reply #30 - Posted 2013-01-23 12:54:04 »

Runs awfully smooth!
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #31 - Posted 2013-01-23 13:24:55 »

Looks awsome however i found 2 things:
Gras looks really low quality from close.
Water looks odd (repetitive) from an distance (showing the tiles).

i see you have one big quad to draw the water all over, how did you manage to not make it glitch with the triangles from the terrain?
When an triangle intersects with the big water quad, my test was glitching like hell.
Offline Roquen
« Reply #32 - Posted 2013-01-23 13:26:15 »

Food for thought:  You might what to peek at atmospheric scattering...a cheap model can do a reasonable sky and the extinction + inscattering will make the terrain look much more realistic.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #33 - Posted 2013-01-23 14:06:18 »

Looks awsome however i found 2 things:
Gras looks really low quality from close.
Water looks odd (repetitive) from an distance (showing the tiles).

The up close I was planning to solve by adding "real" grass in your close vicinity. The other way is to use a better texture (already using one of 1024x1024) or pushing it together (makes it look very repetitive far away).

The dudv/normal map indeed looks very weird when far away, I'll look into what to do about that, maybe mip map it less to make it shimmer a bit.

i see you have one big quad to draw the water all over, how did you manage to not make it glitch with the triangles from the terrain?
When an triangle intersects with the big water quad, my test was glitching like hell.

The terrain is drawn using one call, not one for above and one for underneath the sea. The way to draw it like that and still use it for reflection/refraction is to use clipping.
I.e.
Set clipping to only draw where z<0 (under water)
Draw all terrain, all terrain above water will be clipped away
Set clipping to only draw where z>0 (above water)
Draw all terrain, all terrain under water will be clipped away

Food for thought:  You might what to peek at atmospheric scattering...a cheap model can do a reasonable sky and the extinction + inscattering will make the terrain look much more realistic.

That sounds great, I'll look into what it is and if I can implement it Smiley

EDIT: Right, that's what I meant with having gradients on the sky for sun rise and sun set. I didn't know the fancy word Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline krasse
« Reply #34 - Posted 2013-01-23 14:55:47 »

Nice water shader!
It could be improved if you allow the specularity of the water to vary. Water gradually stops being a mirror when the angle increases. But then you might have to change the shader for rendering the terrain?

Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #35 - Posted 2013-01-23 15:04:39 »

Nice water shader!
It could be improved if you allow the specularity of the water to vary. Water gradually stops being a mirror when the angle increases. But then you might have to change the shader for rendering the terrain?

Thanks! Smiley

There should indeed be some kind of sweet spot. If you currently look down you will see the bottom of the sea instead of the clouds. But there is nothing that stops the reflection when looking really far away (It should become increasingly blurry). I don't think I'll spend too much time on the water though as it already looks better than the rest of the engine.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Roquen
« Reply #36 - Posted 2013-01-23 15:32:51 »

Food for thought:  You might what to peek at atmospheric scattering...a cheap model can do a reasonable sky and the extinction + inscattering will make the terrain look much more realistic.

That sounds great, I'll look into what it is and if I can implement it Smiley

EDIT: Right, that's what I meant with having gradients on the sky for sun rise and sun set. I didn't know the fancy word Smiley
Nah, that's not what I meant.  You could use a gradient for the sky and that would be pretty reasonable, but I think a physically based model would probably be around the same cost (assuming you're doing a texture look-up for the gradient) and not give you the flexibly to change atmosphere conditions.  But really I was think more about the terrain.  Some unoptimized examples by bjgil2 here:  http://www.java-gaming.org/topics/atmospheric-scattering/28366/view.html
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #37 - Posted 2013-01-23 15:45:01 »

Nah, that's not what I meant.  You could use a gradient for the sky and that would be pretty reasonable, but I think a physically based model would probably be around the same cost (assuming you're doing a texture look-up for the gradient) and not give you the flexibly to change atmosphere conditions.  But really I was think more about the terrain.  Some unoptimized examples by bjgil2 here:  http://www.java-gaming.org/topics/atmospheric-scattering/28366/view.html

That is a big lump of code Smiley If you could do what you might and create a minimalistic version I'd definitely have a stab at implementing it and see what the graphical nice-ness vs performance impact is.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Roquen
« Reply #38 - Posted 2013-01-23 15:53:53 »

I'm intending to...just lack of motivation & free-time are slowing me down. Smiley
Offline Tim Spekler
« Reply #39 - Posted 2013-01-23 17:49:23 »

You're water shader is nice ! I love the blue light coming out from water at night (even if it may be not made on purpose).
A farming game would be sweeeet  !! Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Roochie

Junior Member


Medals: 2
Projects: 1



« Reply #40 - Posted 2013-01-23 20:16:06 »

This is so awesome! and i think a farming game is a super good idea. i would definitely play it a lot Smiley. Also, i was wondering where you learned to render realistic terrain and water and stuff like that. I've only learned how to do really basic 3d graphics, so im trying to expand my knowledge Smiley

-Roochie

Rawr. Im a lion.
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #41 - Posted 2013-01-23 20:24:57 »

Also, i was wondering where you learned to render realistic terrain and water and stuff like that. I've only learned how to do really basic 3d graphics, so im trying to expand my knowledge Smiley

I spent something like 2-3k hours on State of Profit, which is where I learned how to do 3D. The fancy things in this engine I learned since I started working on it about 3-4 weeks ago. Most of it comes from googling around and testing things out and figuring out how other people did things and then doing things the way I envisioned it. My best advice is: Be curious and push yourself Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Roochie

Junior Member


Medals: 2
Projects: 1



« Reply #42 - Posted 2013-01-23 20:55:54 »

Also, i was wondering where you learned to render realistic terrain and water and stuff like that. I've only learned how to do really basic 3d graphics, so im trying to expand my knowledge Smiley

I spent something like 2-3k hours on State of Profit, which is where I learned how to do 3D. The fancy things in this engine I learned since I started working on it about 3-4 weeks ago. Most of it comes from googling around and testing things out and figuring out how other people did things and then doing things the way I envisioned it. My best advice is: Be curious and push yourself Smiley

Mike

Ok kool, thanks! Thats pretty much how i've learned what i know about 3d programming thus far. Searching countless forums and articles and wikis haha. usually once i understand the theory of what im trying to do, i can prototype it in java. And then after rewriting my code a couple times i'll get a result closer to what im looking for. Lately though i havent been trying very hard to learn this more advanced stuff, sometimes I just get exhausted by it. But this project is super encouraging! keep up the good work!

Rawr. Im a lion.
Offline Ultroman

JGO Knight


Medals: 25
Projects: 1


Snappin' at snizzes since '83


« Reply #43 - Posted 2013-01-23 21:04:07 »

Awesome! Runs perfectly smooth. Thanks for the "hold-shift-to-run"-feature Wink

- Jonas
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #44 - Posted 2013-01-23 23:33:07 »

Awesome! Runs perfectly smooth. Thanks for the "hold-shift-to-run"-feature Wink

Thanks Smiley I'll update the applet tomorrow.

I added texture splatting (smoother sand at beaches, rocks when steep and snow on high flat areas). I also made light depending on the depth of the sea bottom as well as ground textures being more crisp.

Mike

EDIT: Updated it now instead, the higher quality ground isn't really well optimized but it seems to work Smiley

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #45 - Posted 2013-01-24 00:21:46 »

This looks really awesome!
I went to try it and i get this error:
ClassNotFoundException
org.lwjgl.util.applet.AppletLoader

any ideas of why this is happening?

Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #46 - Posted 2013-01-24 06:52:18 »

Does other applets usually work? I don't know, I'm using the simple default version of the lwjgl loader...

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #47 - Posted 2013-01-24 07:14:23 »

And put this into the game: http://xkcd.com/873/ Grin

That's awesome Smiley

The main reason I don't want to make a pure fps is that there are so many of them out there and I cannot compete with them without making something unique. While the xkcd thing is quite unique I don't think it'd make the game better ;-)

Letting people code and create their own game is going to take a pretty big programmer base that is really dedicated to it, which isn't very easy to get.

So, I prefer to have something where users create their own experience without having to program. While I'm still thinking about the genetic experiment farming game suggested above I'm not sure how to make such a thing Smiley

Mike

I was just joking by the way.

Quote
Letting people code and create their own game is going to take a pretty big programmer base that is really dedicated to it, which isn't very easy to get.

So, I prefer to have something where users create their own experience without having to program.

Look into some sort of scripting.

If you can create a world and entities from external files (ie: not programming), you should be fine.

Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #48 - Posted 2013-01-25 10:42:53 »

Any fun idea what kind of game to make it into?

An idea I'm considering doing somedaytm is to develop a similar terrain generation engine (or mod minecraft), and then build a pure survival game out of it, as in you need to hunt and scavenge for food, tools, weapons, to make clothing to survive cold weather.... and be chased around by angered bears.




Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #49 - Posted 2013-01-25 13:06:15 »

That sounds quite nice. A bit like Stalker but in a nature environment. I'll spend some more time on the engine before deciding if and what to do with it Smiley You should at least be able to chop down trees but if you need to do that to build a farm or a campfire I have no idea Tongue

Anyone with comments on the new texture splatting?

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #50 - Posted 2013-01-25 13:39:44 »

It gets better and better, however, still got some complaints:

Very light patches, seems like its glowing at night:


Also small puddles of water are kinda ffed up (i know how hard it is to fix this).
And maybe make the transition of the texture splatting a bit sharper, it goes into each other so smoothly, it looks kinda odd.
3rd point, the water waves now stand 90 degrees to the land, its ruins your beautiful water effect.
Last, The reflection in the water is to clear, the waves should brake the light some more at the waves, and maybe an bigger overall blur.

Same stuff is was messing with when i tryd to make something similar, hopefully you got more luck on this.
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #51 - Posted 2013-01-25 13:50:41 »

Lots of nice comments, thanks! Smiley

I just made the stone transition less smooth, I'll do the same with the sand and look into the glowing

The waves are tricky seeing as it is a randomly generated land. I'll look into making the water a bit smarter when it comes to wave direction.

I kinda like the clear water reflection but you are right that it is very clear when reflecting something that is far away.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #52 - Posted 2013-01-27 23:10:00 »

I've been busy with preparing the new server for state of profit but found a few hours to improve on the engine.

The landscape is now four times as large
The loading time is four times as quick
The performance hit of enabling high quality ground is a third as big

You should be able to get some nice vistas now with the bigger landscape while having a better fps.

I'm currently making a bit of a to do list, some big ones are grass, sunset/sunrise coloring the sky, shadows and more kind of trees. It'll be nice when the engine is good enough to support some kind of game Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #53 - Posted 2013-01-28 01:33:09 »

I got the "game" to load but all i see is a blue screen....

Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #54 - Posted 2013-01-28 08:30:54 »

I got the "game" to load but all i see is a blue screen....

That has happened me a 4-5 times as well, a reload solves it. I'll try to make it happen while having debug turned on to see what is going on.

If it isn't a one time thing: any clue in the java console?

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #55 - Posted 2013-01-28 20:36:10 »

the game works after 2 reloads. this is really awesome!

Offline Mike

JGO Wizard


Medals: 74
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #56 - Posted 2013-01-28 22:54:03 »

Thanks! I am looking into building things (your farm?). The texture looks really bad (just reused the one for the trees) and the lack of a shadow makes it look like it is floating, but at least it is a start Smiley



Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline wreed12345

JGO Knight


Medals: 24
Projects: 2
Exp: 2 years


http://linebylinecoding.blogspot.com/


« Reply #57 - Posted 2013-01-28 23:05:30 »

this is really beginning to look really really cool!!! if only i could make a game like this  Undecided

Offline Ultroman

JGO Knight


Medals: 25
Projects: 1


Snappin' at snizzes since '83


« Reply #58 - Posted 2013-01-29 20:22:43 »

@wreed12345: Put a lot of time into it, and you can! I've been programming since I started college 2 years ago, and I only recently felt confident enough, that I could implement the Box2D (physics) part of libgdx into a game. While I have been very busy at college, I've spent most of my spare time experimenting with Java2D (and some Swing), because the guys at this forum suggested that I get the basics right first, and I wanted to know what goes on behind the scenes of libraries like libgdx, before I dove into them. I've gained so much experience just testing stuff out, and reading source code (mainly Nate's and Mario's, and Ra4king's gameloop) on the web. I can highly recommend this approach. You'll come out right in the end, heheh.

Keep at it. Once you get 2 dimensions right, the steep learning curve of the third dimension will be easier to climb...I hope Cheesy

Back on topic, this project is getting more awesome by the minute!

- Jonas
Offline Varkas
« Reply #59 - Posted 2013-01-30 10:57:54 »

How did you make your tree models? They look very detailed and I'm curious how you get them display so efficiently Smiley

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Pages: 1 [2] 3 4 ... 12
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (18 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (70 views)
2014-08-11 02:49:23

BurntPizza (46 views)
2014-08-09 21:09:32

BurntPizza (37 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!