[Papervision3D] Smart Textures
Arne Strout
mm21xx at hotmail.com
Mon Apr 2 19:57:36 EDT 2007
I have been fiddling around with the best way to implement textures which have a bit more brain to them.Currently Face3D supports bitmap and color textures, but supports no callback based texture method.What I'm proposing is this:Modify Face3D to add a line in which there is a flag based callback to the Material object passing the Face3D object before any rendition of the texture / color for the face is done.This allows, for example, the texture to change it's color based on the location of the Face, or perhaps to create a gradient fill (Garoud / Z lighting? anyone?)This would also allow for distance fog, but I'm not going to get into the logic for that just yet.Any thoughts?Would the extra IF statement be too much weight?I'm thinking something along the lines of:if(material.smart){material.prepare(this)} // Where smart is a boolean property of MaterialObject3Dbefore the line (line 269): if( texture ) {If this modification could be added I could start building some fun material choices without having to modify the current engine.-Arne G Strout
_________________________________________________________________
Take a break and play crossword puzzles - FREE!
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_ wlmemailtaglinemarch07
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070402/7c755d46/attachment.htm
More information about the Papervision3D
mailing list