Hello everyone! I am really desperate, so I am with all possible humbleness asking for help (
I seem to be positively unable to use ShadowVolume for some reason :( I just can't get it working in my app - while demo works perfectly and, as it seems to me, I'm doing everything exactly like in the demo...
Just to inform the community: after lots of tinkering discovered that the problem was actually with models. After experiments with model export, discovered that most important part was .obj triangulation and as simple file structure as possible.
PS Also, the code I provided in opening post had to be reworked completely as well, so... XD
Last edit: Sergey Plesnetsov 2016-01-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone! I am really desperate, so I am with all possible humbleness asking for help (
I seem to be positively unable to use ShadowVolume for some reason :( I just can't get it working in my app - while demo works perfectly and, as it seems to me, I'm doing everything exactly like in the demo...
So, I have a scene:
Root
- mcam <-camera
- dcmaingame
- -dcgame
- --playerlight <-lightsource
- --shadowz <-glshadowvolume
- ---dcgameb
- ---- (all gameworld objects)
- (other dummies mostly related to UI)
ShadowVolume parameters are:
object shadowz: TGLShadowVolume
ObjectsSorting = osNone
Active = False //this one is activated in forms OnCreate
Lights = <
item
LightSource = playerlight
end>
Occluders = <>
Options = [svoScissorClips, svoDesignVisible]
Mode = svmDarkening
end
end
This code is supposed to periodically process casters to refress current surroundings:
Whenever this procedure is used I receive memory errors as soon as caters are added... What am I doing wrong? T___T
Late edit:
Discovered that error appears to happen at GLVectorGeometry.pas on the first line of assembler code:
O___o
Last edit: Sergey Plesnetsov 2015-09-19
Just to inform the community: after lots of tinkering discovered that the problem was actually with models. After experiments with model export, discovered that most important part was .obj triangulation and as simple file structure as possible.
PS Also, the code I provided in opening post had to be reworked completely as well, so... XD
Last edit: Sergey Plesnetsov 2016-01-02