cassius Posted September 13, 2013 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++
gamecreator Posted September 13, 2013 Posted September 13, 2013 Have you tried http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/material/materialsetshadowmode-r257 Quote
cassius Posted September 14, 2013 Author 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++
gamecreator Posted September 14, 2013 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
Josh Posted September 16, 2013 Posted September 16, 2013 Try Entity::SetShadowMode(Light::Dynamic) Quote Let's build cool stuff and have fun.
cassius Posted September 16, 2013 Author 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++
Josh Posted September 17, 2013 Posted September 17, 2013 I really think that is the answer. That is the command the Map::Load function calls. Quote Let's build cool stuff and have fun.
cassius Posted September 17, 2013 Author 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++
cassius Posted September 19, 2013 Author 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++
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.