Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Light-mapping? Bump-mapping?

Author
Message
skyser
22
Years of Service
User Offline
Joined: 11th Sep 2003
Location: New York, NY
Posted: 29th Sep 2003 00:03
Does anyone have examples of how to do this in DBP?

Don't you need to be able to specify different object UV coordinates for the lightmap than for the regular texture coords?

All help and insight appreciated!!

--skyser
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 29th Sep 2003 00:12
look at the examples suplied with db and the ones on the web site

Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 29th Sep 2003 01:06
light mapping and bump mapping simply require premade maps...

for light mapping white=light black=shadow, anything on the greyscale will give you the right indication.

for bump mapping you use something called a normal map, this can either be a greyscale image like the lightmap with white=highlight black=flat

else it can be a coloured normal image, these are generally produced with special tools as your base is blue & highlight green/yellow ... the varying colours depicts different heights and steps of incline.

the nVidia software downloads for developers currently has a very good selection of tools for this.

Login to post a reply

Server time is: 2026-07-25 08:29:05
Your offset time is: 2026-07-25 08:29:05