Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, EternallyCurious, Petra, 1 invisible), 764 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
Re: Variance Shadow Mapping for the Sun [Re: TSG_Christof] #176335
01/04/08 10:16
01/04/08 10:16
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Same here! Probably a missing file.

Re: Variance Shadow Mapping for the Sun [Re: TSG_Christof] #176336
01/04/08 10:19
01/04/08 10:19
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
I've got a crash here too when running the .exe. Even when putting the correct dlls in the map
When I tried to run the compiled version, it works but no shadows appeared.
Looks very promising though

Thanks in progress

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Variance Shadow Mapping for the Sun [Re: TSG_Christof] #176337
01/04/08 12:08
01/04/08 12:08
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
I got it working on my machine: 7600GT with 60fps. It looks awesome, shadows are still sharp but very promising!

Also, this SetLightMatrices DLL - did you make this? I am guessing it generates the view matrix or something similar for the light, is there any chance you will release how to use it and if we can use it

Looks very awesome!

Thanks,
Adoado


Visit our development blog: http://yellloh.com
Re: Variance Shadow Mapping for the Sun [Re: TSG_Christof] #176338
01/04/08 16:50
01/04/08 16:50
Joined: Sep 2006
Posts: 292
M
Mythran Offline
Member
Mythran  Offline
Member
M

Joined: Sep 2006
Posts: 292
Crashed with me too. Maybe a bad compilation?
Have you tested it Slin? I have shader 3.0 too...

Variance Shadow Mapping for the Sun [Re: Mythran] #176339
01/05/08 00:53
01/05/08 00:53
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Quote:


Is there any chance to get rid off the SetLightMatrices.dll...
set the matrices somehow in c-script and still being able to use this shadow method in A7??




It is all written in Lite-C and I wasn´t able to get the functionality of the dll in Lite-C...

I am going to release the full code when everything works fine.
I thought about selling it but a sponsor call is probably a good idea


Quote:


It looks awesome, shadows are still sharp but very promising!




I know how to blur them more but had some wierd problems when trying that yesterday,
but I will look into it more deeply very soon.

Quote:


Also, this SetLightMatrices DLL - did you make this?
I am guessing it generates the view matrix or something similar for the light,
is there any chance you will release how to use it and if we can use it




I created that DLL. I need it to pass more than one custom matrix to shaders.
It is actually very simple but I plan to expand it to help me with some other stuff as well
You can use it for everything you want to.
You have to use it like that:
-Put the dll in your plugindir.
-Place these lines on top of your scripts:
Code:

dllfunction SetCustomMatrix(char *Name, float *Matrix); //passes a custom matrix to a shader
dllfunction SetCustomVector(char *Name, float *Vector); //passes a custom matrix to a shader


-Call the function you want to use in the event of the material you want to pass the matrix to:
Code:

SetCustomMatrix("MatName", ArrayWith16Values);
SetCustomVector("VecName", ArrayWith4Values);


-You can than acces the Vector and the Matrix in the Shader like this:
Code:

float4x4 MatName;
float4 VecName;



This is the sourcecode of the dll:
Code:

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <math.h.>

// engine specific header file
#define DLL_USE // always define before including adll.h
#include "adll.h"
#include <d3dx9.h>

// DLL main entry point - normally this needs not to be changed
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved )
{
// make sure the library is linked
engine_bind();
return TRUE;
}

LPD3DXEFFECT *A7_eff;

DLLFUNC void SetCustomMatrix(char *Name, float *Matrix)
{
D3DXMATRIX matCustom = (D3DXMATRIX)Matrix;

A7_eff = (LPD3DXEFFECT*)ev->render_d3dxeffect;
if(A7_eff)
{
LPD3DXEFFECT(A7_eff)->SetMatrix(Name,&matCustom);
}
}

DLLFUNC void SetCustomVector(char *Name, float *Vector)
{
D3DXVECTOR4 vecCustom = (D3DXVECTOR4)Vector;

A7_eff = (LPD3DXEFFECT*)ev->render_d3dxeffect;
if(A7_eff)
{
LPD3DXEFFECT(A7_eff)->SetVector(Name,&vecCustom);
}
}



The problem for the errors is that this dll doesn´t get loaded on many computers (it works fine on my computer...)... -_-

Here is a short clip of the shadows until I solve the problem with the dll:
http://www.youtube.com/watch?v=JL8NIaTpGTo

Thanks for all those comments

If I get the problems fixed, added pointlights, blur and support for more lights and have it all easy to use, how much would you be willing to pay for it?
single choice
Votes accepted starting: 01/05/08 00:52
You must vote before you can view the results of this poll.
Re: Variance Shadow Mapping for the Sun [Re: Slin] #176340
01/05/08 01:26
01/05/08 01:26
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
i'd pay about $10-$20 but that's entirely up to you.


- aka Manslayer101
Re: Variance Shadow Mapping for the Sun [Re: mpdeveloper_B] #176341
01/05/08 10:22
01/05/08 10:22
Joined: Jul 2007
Posts: 103
L
Lutz_G Offline
Member
Lutz_G  Offline
Member
L

Joined: Jul 2007
Posts: 103
20-50USD.

Re: Variance Shadow Mapping for the Sun [Re: Lutz_G] #176342
01/05/08 10:34
01/05/08 10:34
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
@Slin :

But I wonder why we get a crash due too the dll since it doens't get loaded anywhere in the code yet ??
Btw, that isn't an easy dll

Thanks in progress

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Variance Shadow Mapping for the Sun [Re: frazzle] #176343
01/05/08 12:58
01/05/08 12:58
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Quote:


But I wonder why we get a crash due too the dll since it doens't get loaded anywhere in the code yet ??




I use the functions of the dll. That causes the crash. 3DGS just does not load the dll on most systems but it does on some (it works perfectly on my computer-_-).

Re: Variance Shadow Mapping for the Sun [Re: Slin] #176344
01/05/08 13:15
01/05/08 13:15
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Quote:

I use the functions of the dll. That causes the crash. 3DGS just does not load the dll on most systems but it does on some (it works perfectly on my computer-_-).




Did you create the plugin with VC++? Maybe those users have to install the vcredist.exe? Or you have to distribute the libraries another way.

Page 2 of 5 1 2 3 4 5

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