Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Per pixel lighting  (Read 2203 times)
0 Members and 1 Guest are viewing this topic.
Offline 2late4u

Senior Newbie




.....


« Posted 2004-03-25 14:08:43 »

Anyone does help me on per pixel lighting implementation?
Offline jeickmann

Senior Newbie




Java games rock!


« Reply #1 - Posted 2004-03-26 11:42:54 »

Try to specify what you want to accomplish. Tell people what you already figured out, whether you want some pointers to general tutorials (nehe.gamedev.com, developer.nvidia.com are usually good places to start) or have a specific problem.

What features of the GPU do you want to use: fixed-function texEnv extensions, register-combiners, ARB_fragment_program/shader, etc.

Unless you get more specific, you will probably not get that many useful answers.

Regards,

Jan
Offline 2late4u

Senior Newbie




.....


« Reply #2 - Posted 2004-03-26 11:47:41 »

thanks ...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Java Cool Dude

Senior Member




Java forever


« Reply #3 - Posted 2004-03-27 00:24:43 »

I've already written plenty of demos that use Per Pixel lighting (even vertex shaders accelerated) so shoot me a message if you need help Smiley
Offline 2late4u

Senior Newbie




.....


« Reply #4 - Posted 2004-03-27 06:02:59 »

gooooooood!
Hi Cool Dude! .... i want to implements a simple rendering algorithm rhat use vertex program for coucalating lighting effects per pixel ... if you have some sample source .... send me please .....
it's very important for me .... if you do not use vertex program ... no problem .... send me the sources!!!!

take a look to AURIGA ..... (my project)

http://xoomer.virgilio.it/auriga/Home.html

my project is to create a java Doom3 map viewer ..
every contribution is accepted!!
Offline jeickmann

Senior Newbie




Java games rock!


« Reply #5 - Posted 2004-03-27 11:52:41 »

Vertex programs alone won't help you much. If you don't want to use fragment-shaders (which is advisable given the current hardware support is limited to GeforceFX/Radeon 9500+, etc), you can calculate the light-dir in a vertex shader as primary-color and then use tex_env_dot3-extension to calculate a dot3 against a bump-map.

This is only the basic idea but it should get you started. You might want to renormalize the light-dir in a normal-map since the linear interpolation between vertices will otherwise dim your light a little bit, etc.

Of course, this only gives you diffuse color (no speculars) but you should get the idea.
When I did something similar for a terrain-rendering-engine, what helped me a lot was to write down the lighting-math first and then try to figure out how you can map that to whatever hardware you have (register-combiners, ATI_fragment_shader, texEnv-dot3, etc).

Feel free to mail me if you have questions (jeNO@SPAMframesys.de)

Jan
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (23 views)
2014-09-12 09:08:26

Norakomi (56 views)
2014-09-10 13:57:51

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (34 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (26 views)
2014-09-07 01:12:14

Longarmx (32 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
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!