|
2 registered members (steyr, alibaba),
534
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Tesselating at highest level
[Re: Liamissimo]
#334999
07/26/10 09:51
07/26/10 09:51
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
Expert
|
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
Or you wait for the Lightfrog from Hummel XD
edit: of course bart's version is great, too!
Last edited by Rei_Ayanami; 07/26/10 09:52.
|
|
|
Re: Tesselating at highest level
[Re: Liamissimo]
#335161
07/27/10 03:51
07/27/10 03:51
|
Joined: Aug 2008
Posts: 482
bart_the_13th
Senior Member
|
Senior Member
Joined: Aug 2008
Posts: 482
|
@ Rei: Aww, that's not fair to compare it to Hummel's lightfrog  @ TheLiam: Well, since this is only a modification of XD1v0's Texture Projector, you still have to: 1. Add the pMat.c and projMain.c library
#include "pMat.c" // projection materials
#include "projMain.c" //code for creating matrix
2.Add a spotlight BMAP(you can use my spotlight.pcx)
set_material_matrices();
mtl_pTex2.skin1 = spotlight ;// set mtl_pTex2 skin1 to spotlight bmap (level block)
mtl_pTex1.skin1 = spotlight ;// set mtl_pTex1 skin1 to spotlight bmap (models)
3.Add this code somewhere in the main loop
create_dxmat(mat_effect1,light1.x,vector(90,90,90),light_range,1,mtl_pTex2.skin1);
create_dxmat(mat_effect1,light1.x,vector(90,90,90),light_range,1,mtl_pTex1.skin1);
create_dxmat(mat_effect2,light1.x,vector(0,0,0),light_range,1,mtl_pTex1.skin1);
create_dxmat(mat_effect2,light1.x,vector(0,0,0),light_range,1,mtl_pTex2.skin1);
The light1 vector is your light source position and the light_range is, well, the light range 
|
|
|
Re: Tesselating at highest level
[Re: bart_the_13th]
#335201
07/27/10 08:52
07/27/10 08:52
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
OP
Serious User
|
OP
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
I've included the two files in my main code but set_material_matrices is still undeclared for my code, I also added d3d9.h
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: Tesselating at highest level
[Re: Liamissimo]
#335203
07/27/10 08:58
07/27/10 08:58
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
OP
Serious User
|
OP
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
ARGH! Sorry, I forgot to include the files in my folder. FACEPALM!
EDIT: But if I start it now (it can compile everything, just had to edit pMat.c) my function crashes. I placed the create_dxmat thing in an action of an entity and set light1.x to my.x
Last edited by TheLiam; 07/27/10 09:04.
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: Tesselating at highest level
[Re: Liamissimo]
#339212
08/25/10 11:13
08/25/10 11:13
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
OP
Serious User
|
OP
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
Sorry, but I am still getting an crash in dxmat.
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
|