![]() |
|
VertexColorMaterial and Illumination - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.DXEngine (https://forum.ab4d.com/forumdisplay.php?fid=11) +--- Thread: VertexColorMaterial and Illumination (/showthread.php?tid=4077) |
VertexColorMaterial and Illumination - leonardo - 02-01-2018 I have applied a VertexColorMaterial to my model but illumination is ignored and colors are flat. There is a way to enable illumination? Thank you RE: VertexColorMaterial and Illumination - abenedik - 02-05-2018 Loenardo, sorry but you have provided way to little information. From that I cannot diagnose and solve your problem. Please check the VertexColor sample that comes with Ab3d.DXEngine samples and compare what is different from your code. You can also provide the XAML and code that you use and I will check where is the problem. RE: VertexColorMaterial and Illumination - leonardo - 02-08-2018 Hello, Attached an example that show the problem. WPF Spotlight don't work with VertexColorMaterial and with Ambient light model colors are flat. Setting ShowCameraLight of TargetPositionCamera to "Always" fix the illumination but I want a custom illumination with spotlight instead of default one. RE: VertexColorMaterial and Illumination - abenedik - 02-09-2018 VertexColorMaterial currently supports only up to 3 directional lights and an ambient light. Support for other point and spotlight will be added in the next version of DXEngine. I will try to add that next week and will send you a pre-release version when this is implemented. RE: VertexColorMaterial and Illumination - leonardo - 02-09-2018 Thank you very much, this is a very important improvement for us. Do you think that pre-release could include also "PixelEffect to VertexColorMaterial" improvement? Thanks RE: VertexColorMaterial and Illumination - abenedik - 02-09-2018 Yes, I have just started working on a new PixelEffect that will support per-pixel color. RE: VertexColorMaterial and Illumination - abenedik - 02-15-2018 VertexColorEffect that is used to render VertexColorMaterial has just been improved so that it supports PointLights and SpotLights. This functionality will be available in the next version. RE: VertexColorMaterial and Illumination - leonardo - 02-16-2018 Thank you very much for the pre-release. Now illumination with spotlight works very well. |