Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java church demo  (Read 1972 times)
0 Members and 1 Guest are viewing this topic.
Offline phu004

JGO Coder


Medals: 4
Projects: 9
Exp: 10 years


NoSuchPersonException


« Posted 2010-01-14 02:35:46 »

Hey guys,  Happy new year! Hope you enjoyed your holiday.

Well I pretty much spent my holiday working on this demo.  I always enjoy looking at the stained glasses
in the big churches, it's my pleasure to create these shiny colorful glasses with Java and some 3d rendering
tricks.

Here is a shot:


I uploaded the appleton my website:
http://phu004.webs.com/javaChurch/church.htm

Controls are simple,  arrows key for changing view point, a,w,s,d for camera moment.

This demon does require a lot of cpu power, it takes 20~ 30% of the cpu resources on my E8400. For those who
interested in the source code, you can grab it at http://phu004.webs.com/java_church.zip.



Offline Gudradain
« Reply #1 - Posted 2010-01-14 03:54:20 »

Nice church!

I'm impressed that you can do that with Java2D.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #2 - Posted 2010-01-14 06:44:30 »

pretty cool!

it looks pretty awesom from the outside cause it is like floating in the air lol.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #3 - Posted 2010-01-14 07:25:36 »

very nice work, runs pretty nice here.

This demon does require a lot of cpu power, it takes 20~ 30% of the cpu resources on my E8400.

you could also try an opengl binding for java to offload the cpu usage to a graphics card. Then again that would require a signed applet, still pretty impressive work for software 3d.
Offline indexunknown

Junior Duke





« Reply #4 - Posted 2010-01-14 12:39:59 »

You wrote whole software rendering for this? All the models are as java classes and constructed by mathematical functions? This must be the 10th time someone reinvents the bicycle. It looks good and runs fine on my pc from year 2004, but just imagine if all models,animations in games were constructed with code, 3 year development time switch 30 years.
Offline phu004

JGO Coder


Medals: 4
Projects: 9
Exp: 10 years


NoSuchPersonException


« Reply #5 - Posted 2010-01-14 20:30:10 »

Quote
you could also try an opengl binding for java to offload the cpu usage to a graphics card.

I feel that software rendering gives  me the flexibility to create new interesting effect,  while relying on opengl binding i have to stick with its fixed pixel functions.
And I have deal with whole bunch of other hassles too such as driver issues.  With moredern CPU power faster than ever I think there is plenty of room for software
rendering.

Quote
You wrote whole software rendering for this?
Well i created this rendering system a few years ago, and i made couple of other applets with it, check out my older posts  Smiley

Quote
but just imagine if all models,animations in games were constructed with code, 3 year development time switch 30 years.
I agree. All i do is keeping all  models simple,  but its till a pain in the butt.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #6 - Posted 2010-01-14 22:03:08 »

I like the translucent distortion of the glass.  Very pretty.  How does that work?   Chews rather heavily on my CPU though.

Time flies like a bird. Fruit flies like a banana.
Offline phu004

JGO Coder


Medals: 4
Projects: 9
Exp: 10 years


NoSuchPersonException


« Reply #7 - Posted 2010-01-14 22:47:28 »

Quote
I like the translucent distortion of the glass.  Very pretty.  How does that work? Chews rather heavily on my CPU though.

Thanks for trying out. For each of my translucent texture there is a distortion texture associate with it,(essentially it's just the black/white version of the orginal texture).
The gradient at each point is used to displace pixels from the back ground image.

It does take a lot of cpu resource since its pre pixeld operation, especially when you look directly into the chandelier.



Pages: [1]
  ignore  |  Print  
 
 

 
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!