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 / Is there a way to apply normal mapping to sprites that show animated normals in Dark Basic

Author
Message
Programmer X
17
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 8th Mar 2015 16:12
I would like to texture a plane with a normal map but keep the image colorkey. I don't know how to set that up shader or FX file???

XXX
Sasuke
19
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 8th Mar 2015 16:23
I'm alittle confused cause your title is different to the question posted. Are you talking about 2D Sprites or 3D Quads or Shader Point Sprites?

Animated normals is just re-texturing the normal channel with the next frame of the normals texture and looping. As of keeping image colorkey, I'm not entirely sure what you mean.

"Get in the Van!" - Van B
Programmer X
17
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 8th Mar 2015 16:27 Edited at: 8th Mar 2015 16:32
Theres no way to make certain colors transparent when you texture the polygon with the calculated normals?

XXX
Programmer X
17
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 8th Mar 2015 16:46 Edited at: 8th Mar 2015 16:57
For 2D Sprites or 3D Quads or Shader Point Sprites I'm just trying to normal map a plane and hide the plane geometry which isn't used. All I need is something that works. The missing geometry of it only being a plane is accounted for with a Normal map texture library. I just need to normal map a texture and display it to the screen with transparency.

XXX

Login to post a reply

Server time is: 2025-05-12 10:13:06
Your offset time is: 2025-05-12 10:13:06