cassius Posted September 13, 2013 Share Posted September 13, 2013 Is there any way yet to give characters loaded in by code a shadow. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
gamecreator Posted September 13, 2013 Share Posted September 13, 2013 Have you tried http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/material/materialsetshadowmode-r257 Quote Link to comment Share on other sites More sharing options...
cassius Posted September 14, 2013 Author Share Posted September 14, 2013 Just tried that but it didn't give characters a shadow.EDIT:: Ah I see theres more to it than just that.Thanks Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
gamecreator Posted September 14, 2013 Share Posted September 14, 2013 I've never used that function myself so I'm curious (and for anyone else who reads this): what more is there? 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted September 16, 2013 Share Posted September 16, 2013 Try Entity::SetShadowMode(Light::Dynamic) 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...
cassius Posted September 16, 2013 Author Share Posted September 16, 2013 Had no luck with that. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Josh Posted September 17, 2013 Share Posted September 17, 2013 I really think that is the answer. That is the command the Map::Load function calls. 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...
cassius Posted September 17, 2013 Author Share Posted September 17, 2013 I must be getting the syntax wrong then. I presume Entity is my characters name. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
cassius Posted September 19, 2013 Author Share Posted September 19, 2013 This worked ok but only when on terrain. Indoors no shadows. Entity->SetShadowMode(Light::Dynamic); EDIT: This code only works if placed in main loop. Don't know why,but I am still learning c++. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ 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.