- Joined
- Dec 15, 2012
- Messages
- 650
Yes, after you use the terrain palette to applied "Heigh : Raise" (apply it many times) in your map, you will see the black shadow appear at there.How do you remove the shadows ?
THANKS FOR YOUR HELP !



function CreateUnitWithoutShadow takes player owner,integer uid, real x, real y,real facing, string shadowfile returns item
local image i=CreateImage(shadowfile, 64, 64, 0, 0,0,0,64,64,0, 3)
if GetHandleId(i)==-1 then
debug call BJDebugMsg("CreateUnitWithShadow: Invalid path for new shadow!")
return null
endif
call DestroyImage(i)
set bj_lastCreatedUnit = CreateUnit(owner,iid, x, y,facing)
call DestroyImage(i)
return bj_lastCreatedUnit
endfunction
I'm not want to remove the shadow of unitsCredits to Deaod
JASS:function CreateUnitWithoutShadow takes player owner,integer uid, real x, real y,real facing, string shadowfile returns item local image i=CreateImage(shadowfile, 64, 64, 0, 0,0,0,64,64,0, 3) if GetHandleId(i)==-1 then debug call BJDebugMsg("CreateUnitWithShadow: Invalid path for new shadow!") return null endif call DestroyImage(i) set bj_lastCreatedUnit = CreateUnit(owner,iid, x, y,facing) call DestroyImage(i) return bj_lastCreatedUnit endfunction
Yes, I done this but it generate extra shadows for models in the map.I don't want the extra shadows becaues some shadows didn't matched the model.I would suggest trying to totally flatten your maps height(with the plateau tool and the largest brush) then under 'file' go to 'Calculate Shadows and Save Map'.
Ok, here's my problemMaybe show us a screenshot and the map with the problem so I can get a clearer idea?
Would help alot!
Here is the [rainbow]Test Map.[/rainbow].....
With the terrain for you can't set the Z Start value to a negative through "Scenario" - "Map Options" - "Use Terrain Fog" or GUI although can be changes with Jass script to add a cool effect. Here is an example. This can be placed in your maps initialization script with custom script.
In the () we have 'The Style', 'ZStart", 'ZEnd', 'Density', 'Red Value', 'Green Value', 'Blue Value'.JASS:call SetTerrainFogEx(0, -7200.00, 8000.00, 0.00, .01, .07, .02)
Just do whatever you would think suit your map with any value.
- 'The Style' keep this value as 0 as that style is linear(the one that we would want).
- 'ZStart' This is the reason why we are doing this. Although I would suggest keeping it as a value of anywhere from 500 to the max value of 'ZEnd' but as a negative. (eg 'ZStart' = -2800, 'ZEnd' = 4000)
- 'ZEnd' would be the value that you would usually want your fog to end, I would suggest trying any value from 1000 to 15,000.
- 'Density' I can't really seem to find a reason for this field so I would suggest keeping it as 0.
- As for the rest of the values they are just colours but instead of the max value being 100 as a percent the max is a real of 1.00.
I've also provided a test map.
Will this cause the units' shadows be removedWrite 0x00 to all active bytes of the .shd file that contains the terrain shadows.
You could also make a new blank map (no shadows) with the same shape and size as your existing map and then transfer that blank .shd file into your map.