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 / Bump mapping and re-scaling issue

Author
Message
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 22nd May 2003 19:36
Hello,

I have noticed that bump mapped objects cannot been resized to half its size, they become completely black!

They can be resized bigger, although, and the effect remains ok.

Anyone has bump mapped a down-scaled object without it becoming black?

Thanks a lot.
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 22nd May 2003 21:25
Well, I have changed the size of the object with an external tool, so there is no scaling now inside DBPro, and the problem persist.

It must be an object normals properties issue, then?

thanks to anyone who can answer
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 23rd May 2003 04:43
There is some bugs in the DBpro bump mapping, I had already proven it and reported to Lee. He had confirmed it is a bug. These are what I found:

1. Bump mapped object loose its ambient lightings, i.e. the part which is not illuminated by light source will TOTALLY dark.

2. Bump mapping doesn't react upon Directional Lights. The whole model will look TOTALLY dark if your scene only contains directional lights.

3. Bump mapping doesn't work correctly with Spot Lights. The way a bump mapped model gets illuminated under spot lights will be the same as point lights. The bump mapping algorithm doesn't take the inner cone and outer cone of a spot lights into account when calculating the bump maps.

If you need my source code of the experiment that I run on source code, I can email it to you. I guess your problem is caused by these bugs as well.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 23rd May 2003 04:44
FYI, I am now writing my own bump mapping routine using Pixel Shader and Vertex Shader. Hopefully it will work.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 23rd May 2003 13:25 Edited at: 23rd May 2003 13:25
Well, goodluck with the bump mapping routine!

I have a point light in my program and another thing that I have noticed is that the light trespass the object, that is, that the object is illuminated in the side of light and also in the opposite side!

Maybe I should post that as another problem.

Login to post a reply

Server time is: 2026-07-11 13:57:43
Your offset time is: 2026-07-11 13:57:43