Andy Gilbert Posted September 5, 2013 Share Posted September 5, 2013 IS there any chance shadow mapping can shadow objects taking into acount the alpha texture? For instance, we now have terrain, to put any veg or tree's inside then render shadow, the shadows are horrible as they use the goemetry of the planes (so buig square shadows) not the alpha of the leaves ETC. Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 The included tree models show how materials can use a shadow shader to perform alpha discard. This should always be used for trees, grass, etc. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 Included tree models? Where are they? I missed them (but also cant find them) Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 Add this line to the material file: shadowshader="abstract::mesh_shadow_sway.vert","abstract::mesh_shadow.frag" Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 Ok, will try it. Is there any included models then? As i cant find any in the DarknessAwaitas project? Im getting the feeling your assuming im talking about leadwerks 2? Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 Ah...Leadwerks 3 doesn't use shadow mapping yet! Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
shadmar Posted September 5, 2013 Share Posted September 5, 2013 You could try this (have no idea if it works anymore) but it's a sway shader for LE3 back in march. http://www.leadwerks.com/werkspace/files/file/404-le3-treesway-shader/ Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 Sorry i meant lightmapping then I just to make an outdoor scene look good, but qas soon as you calculate lighting with any tree's or veg the shadows are all squared like explained above. Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 Ohhhhh, I see. I probably won't do this soon because we'll have the OpenGL4 renderer soon enough. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 It doesnt have to be projected shadows, the plants and trees dont have to move, so instead of using projected shadows they can cast static shadows, but using the alpha? Can this not be done either? Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 Sure, I could do it, but it's always a matter of tradeoffs. I think my time is best spent on the OpenGL 4 renderer right now rather than making adjustments to the fallback renderer. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 Ok, understandable. Am i right in thinking the openGL 4 wont work on ios? Just thought this would be nice for IOS outdoor games. Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
flachdrache Posted September 5, 2013 Share Posted September 5, 2013 Hmm - building games was mostly always about the art of faking ... in le2 I would use "shadow-decals". Like render shadows from the tree and place these as decals to its roots taking light direction into account. This tech has been used in many ways AFAIK. That being stayed - does le3 support "light styles". You know switching between two light maps? Pulse, flicker, wave etc. for indoor lightning strikes and such alike. Quote AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3 zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5 Xxploration FPS in progress ... Link to comment Share on other sites More sharing options...
flachdrache Posted September 5, 2013 Share Posted September 5, 2013 PS: I road that mobiles are texture limited and not by geometry throughput ... huge/many light maps might be a tradeoff too?! Quote AMD 64 X2 Dual 5k - 4GB - XFX GForce9800GT - nv196.21 - WinXP Sp3 zBrush4R2 - Silo2Pro - Unwrap3DPro - Gile - MaPZone2.5 Xxploration FPS in progress ... Link to comment Share on other sites More sharing options...
Josh Posted September 5, 2013 Share Posted September 5, 2013 Ok, understandable. Am i right in thinking the openGL 4 wont work on ios? Just thought this would be nice for IOS outdoor games. Andy OpenGL 4 is PC-only. At the moment, Leadwerks is still making the most sales in PC. However, mobile users have been increasing lately. It might be that it just takes more time to break into that market. I'd really like to make the December deadline, so that means staying focused on the essentials. We can always add enhancements down the road. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy Gilbert Posted September 5, 2013 Author Share Posted September 5, 2013 Sounds fine josh. I myself want the OpenGL 4 renderer more than anything so don't want you to stray from it. Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.