Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PSSM Shadows problem... #350618
12/17/10 16:25
12/17/10 16:25
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
I think this kind of bug:


I try to use it with 'spot.c' example in A8.10
PC details:
Quote:
Windows 7
4GB DDR3 Memory
AMD Turion(tm) II P250 Dual-Core Processor 2.3 GHz
ATI Mobility Radeon HD 5650

Script:
Code:
////////////////////////////////////////////////////////
// Spotlight sample
// (c) oP group 2010
////////////////////////////////////////////////////////
#include <default.c>
#include <shadows.c>

function blob()
{
	my.flags |= SHADOW;
}

function spot()
{
	my.flags |= SPOTLIGHT|CAST|LIGHT;
	my.lightrange = 500;
	vec_set(my.blue,vector(255,100,100));
	
	while(1) {
		my.pan += 3*time_step;
		my.tilt = -60;
		wait(1);
	}
}

function main()
{
	shadow_stencil = 8; // activate external shadows
	shadow_lod = 2; // works also for PSSM
	level_load("small.hmp");
	vec_set(sky_color,vector(20,10,10));
	vec_set(ambient_color,vector(40,40,40));
	sun_light = 0;
	ent_create("blob.mdl",vector(-120,70,20),blob);
	ent_create(CUBE_MDL,vector(0,0,200),spot);
	vec_set(camera.x,vector(-400,0,50));
	def_move();
	pssm_fbias = 0.0005;
	pssm_run(3);
}




Last edited by 3run; 12/17/10 16:31.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: PSSM Shadows problem... [Re: 3run] #350658
12/17/10 22:49
12/17/10 22:49
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
before changing resolution, you have to stop pssm shadows, then after changing it you can start it again. f.i. do not change resolution with f5, write your own function


3333333333

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1