Page 1 of 1

Sprite3D Lighting...

Posted: Tue Dec 28, 2004 7:59 pm
by Shannara
Well, from what I can tell, a Sprite3D is basically a pointer to a texture created from the given 2D sprite. If this is so, then how can we access the sprite3D in order to change the colors of the corners of that texture?

Unless this is already implimented. This would make an excellent wish so that we can emulate lights and such. After all, we already have the texture pointer, we just need to be able to color the vertices.

Posted: Mon Jan 03, 2005 1:29 pm
by BalrogSoft
Hi Shannara, yes it is possible, i used Direct3D for some sprites commands on my language and i made a command called SetD3DColor that set the color for each corner, there are some topics on this forums with tips to made it on PB. Take a look to TransformSprite3D routines of Danilo:

viewtopic.php?t=8938

Posted: Mon Jan 03, 2005 7:58 pm
by Shannara
That looks nifty :) I'll have to take a closer look at home, thanks!

Posted: Thu Mar 16, 2006 4:53 am
by Shannara
Im bumping this as a request since the link provided links to broken code.