Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Tesselating at highest level [Re: Liamissimo] #334764
07/25/10 03:17
07/25/10 03:17
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Here's a little demo video:
http://www.youtube.com/watch?v=-jbNafHHuYA

And here's the demo and source:
http://www.mediafire.com/?q0va4rntj6i2r52

Still having problem in combining the lightmap with the two projected texture, sorry

Re: Tesselating at highest level [Re: bart_the_13th] #334969
07/26/10 03:33
07/26/10 03:33
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Sorry for double post, but you can forget what I'm saying about the light map not working, because it does now grin

Here's the short video:
http://www.youtube.com/watch?v=wRvBmYw-WbI

And here's the demo with source code
http://www.mediafire.com/?yli7ejuqxotldb6

Re: Tesselating at highest level [Re: bart_the_13th] #334973
07/26/10 07:18
07/26/10 07:18
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Very cool, going go Test it later, I am in a forest right now wink


"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] #334999
07/26/10 09:51
07/26/10 09:51
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
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: Rei_Ayanami] #335028
07/26/10 12:43
07/26/10 12:43
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
I tried to get it in my code but it isn't that easy. First, my SED does not know what set_material_matrices(); is. Also the texture mtl_pTex2 isn't declared, what should I do with it? I tried to ignore the rest but I dont get it grin


"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] #335161
07/27/10 03:51
07/27/10 03:51
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
@ Rei: Aww, that's not fair to compare it to Hummel's lightfrog grin
@ 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
Code:
#include "pMat.c" // projection materials
#include "projMain.c" //code for creating matrix



2.Add a spotlight BMAP(you can use my spotlight.pcx)
Code:
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
Code:
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 grin

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
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

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
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

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
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

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
Re: Tesselating at highest level [Re: Liamissimo] #339504
08/27/10 09:53
08/27/10 09:53
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Hmm.. let see..
I might miss some step, I'll dig it as soon as I'm home(I'm not at home right now)

Page 2 of 3 1 2 3

Moderated by  HeelX, Spirit 

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