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 Discussion / Bumpmapping?

Author
Message
ScottyB
17
Years of Service
User Offline
Joined: 26th Jul 2007
Location:
Posted: 2nd Sep 2007 03:45
How do I apply a bumpmap to an object in darkbasic?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Sep 2007 17:51
You can't, not in DBC.
You can in DBP.

In programming, nothing exists
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 2nd Sep 2007 18:23 Edited at: 2nd Sep 2007 18:23
what about positioning a model with the bumpmap texture onto the model and type
? dont know if that'll give you the result you're looking for but it's worth a try isnt it?


oh praise the lord, praise furry jesus
Lucy
18
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 2nd Sep 2007 18:44 Edited at: 2nd Sep 2007 18:49
Um, no. Bump mapping isn't simply a detail slapped ontop of a texture. You could easily embed such detail directly onto the texture if that were the case.

Bump mapping is about shading. What it does is it causes the appearance of raised bumps, or indented bumps, on a texture. The light ends up shading it differently.

Essentially, bump mapping is the predecessor to normal mapping and parallax mapping.

To get an idea of the visual effect it causes, imagine just a flat square. Now, imagine that flat square with bumps sticking out or into it everywhere. Then imagine a light that moves around. The bump mapping details will be brighter on the side that the faces the light and darker on the opposite side.

So you move the light around and the entire thing reshades constantly, giving the appearance of an uneven surface, even though the surface is infact flat.

(EDIT)
Here is a video that is a good example of bumpmapping http://video.google.com/videoplay?docid=1570416667092534064

Nothing I say is intended to be rude. My autism means that I do not know what is rude and what isn't rude. I apologize if I seem rude. It is not my intention.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Sep 2007 22:39
cool vid, and that is a completely flat plain!!

In programming, nothing exists

Login to post a reply

Server time is: 2025-06-02 06:13:43
Your offset time is: 2025-06-02 06:13:43