Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 900 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 10 of 14 1 2 8 9 10 11 12 13 14
Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: Espér] #218451
07/28/08 18:14
07/28/08 18:14
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline OP
User
BoH_Havoc  Offline OP
User

Joined: Jun 2004
Posts: 655
to your left
Alright i think i know what your problem is:
In the current version most (if not all) object shaders need a precalculated matrix (most likely this won't be the case in the next version, we'll see)

So what you have to do is this:
Add this function to your script
Code:
void worldInvTrans(){
	mat_inverse(mtl.matrix,matWorld);
	mat_transpose(mtl.matrix,mtl.matrix);
}


and in your material definition you do this:
Code:
MATERIAL* myMaterial =
{	
	event = worldInvTrans;
	flags = ENABLE_RENDER;
	effect = "myShader.fx";
}


That should be it.

Last edited by BoH_Havoc; 07/28/08 18:15.

Shade-C EVO Lite-C Shader Framework
Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: BoH_Havoc] #218464
07/28/08 19:35
07/28/08 19:35
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
nope.. the model is still black...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: JJJohan] #218909
07/31/08 10:20
07/31/08 10:20
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
Originally Posted By: JJJohan
Agh, it doesn't work for me <img src="/ubbthreads/images/graemlins/frown.gif" alt="" />.

I'm running gamestudio pro a7.

When I try to run my game it says:

Code:
Error in 'MAIN' line 13: 'var' undeclared identifier

&lt; var s_rtScale = 256; //render-target size&gt;

&lt;include ^s_shadeC.c&gt;;&gt;
MAIN.WDL 1:2 (): Script error s_shadeC.c


All I did was include the s_shadec.c file and call s_initshaders


First of all ...this error is a bit stupid^^

just type #inlcude "s_shadeC.c" instead of <...>

now ...I have a problem tooI created a new little lvl....with a ground plate, 2 buildings and sun and used it as lite-c script...then i included the s_shadeC.c in my script and used the main() example 1 from the shade-c manual and the only effect i get is...every object is dark...
now i tried the second example with all the finetuning for the HDR and i changed NOTHING....and the following error occures after compiling in the game:
-----------------------------------------------------------
Malfunction W1550
Error in effect:
s_mtl_ppe1(1):error X3000:syntax error:unexpected end of file

>_showRT<
-----------------------------------------------------------

can sb help me ? >.<
i don't know what to do ^^

Last edited by Arcaine; 07/31/08 10:20.

Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: Arcaine] #219055
07/31/08 20:32
07/31/08 20:32
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Ok.. my problem still exists..
But it´s not just your shaders..

If i want to use the "planet shader + athmosphere", the model is lack too...

My VIdeo Card has Shader Model 3.0

NVidia GeForce 7300 SE


But with my newer computer it won´t work too..
But he has NVidia GeForce 9800 GTX ( SM 4.0 )



Ps.:
I use Lite-C.. but i don´t think that´s a problem..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: Espér] #219059
07/31/08 20:56
07/31/08 20:56
Joined: Jul 2008
Posts: 1
V
VecG Offline
Guest
VecG  Offline
Guest
V

Joined: Jul 2008
Posts: 1
s_shadeC. No blur Skybox. What? There is a method or not?

Re: shade-c : lite-c shader project (HDR,DoF,etc) [Re: VecG] #219503
08/02/08 22:17
08/02/08 22:17
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
what???


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
shade-c : dynamic exposure control in action :) [Re: Espér] #222461
08/19/08 14:30
08/19/08 14:30
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline OP
User
BoH_Havoc  Offline OP
User

Joined: Jun 2004
Posts: 655
to your left
I realized i haven't posted much in the last days, so here's a video showing you the new dynamic exposure control in action. I think this finally is HDR-R but i'm not exactly sure so i'm calling it fake HDR-R wink
Anyway i think it looks awesome in motion



To the ppl having problems: Please wait until the next release of shade-c. There's much that has been changed and it wouldn't really be worth to use the old version as you would have to rewrite some things in your script.


Shade-C EVO Lite-C Shader Framework
Re: shade-c : dynamic exposure control in action :) [Re: BoH_Havoc] #222478
08/19/08 15:55
08/19/08 15:55
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
wow BoH, nice job. And yes I think you could call that HDR rendering, very very nice job.

So how is this project going?

Btw I think I'll wait until you've finished the new version with updated rendering before I add it to our Developers section, but overall nice work.


- aka Manslayer101
Re: shade-c : dynamic exposure control in action :) [Re: BoH_Havoc] #222487
08/19/08 16:40
08/19/08 16:40
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
quick question havoc:
did you changed something at the DOF shader?
because it seems to need work for ati cards:

ATI Radeon X800GTO²
http://www.bysamb.de/priv/hammerman2.jpg (hdr is on, thats why its brighter, also its a bit older version)

GeForce 8800:
http://www.bysamb.de/priv/hammerman-tjm.jpg

when I start the engine it says: s_mtl_dofVBlur - effect unsupported by hardware

besides that: awesome work! I love it! :]

Last edited by Samb; 08/19/08 16:41.
Re: shade-c : dynamic exposure control in action :) [Re: Samb] #222522
08/19/08 19:25
08/19/08 19:25
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
looks neat! have you thought about implementing softshadows? smile

Page 10 of 14 1 2 8 9 10 11 12 13 14

Moderated by  adoado, checkbutton, mk_1, Perro 

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