Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,486 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 9 1 2 3 4 5 6 7 8 9
Re: Dynamic Realtime Shadows [Re: garv3] #270014
06/05/09 14:44
06/05/09 14:44
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
This is a long thread, so ignore me if its already been said,
but have you tried on another machine, and/or another gstudio version,
and/or tried a gstudio re-install?


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Dynamic Realtime Shadows [Re: garv3] #270026
06/05/09 15:58
06/05/09 15:58
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: garv3
Maybe you are using a graphics card that does not support stencil grin

Ummmm, so how can his computer renders a toon shader that requires VS 1.3 (And stencil shadows needs VS 1.3)? smile

Re: Dynamic Realtime Shadows [Re: Cowabanga] #270036
06/05/09 16:26
06/05/09 16:26
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
I tried some other shaders ( crystal, normal map2, the shade-c things )
They all worked perfect... So I think it's not a problem with the graphiccard..

Code problem... Don't think so. Just a main function wich creates 2 ents. 1 light and 1 model inside a cube...

Hmmm perhaps...do I have to include something???


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Dynamic Realtime Shadows [Re: Espér] #270037
06/05/09 16:34
06/05/09 16:34
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Maybe you are using models with a transparent texture? Stencil shadow doesn't work (or better 3dgs doesn't use them) with transparent skins.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Dynamic Realtime Shadows [Re: ChrisB] #270039
06/05/09 16:35
06/05/09 16:35
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
@ChrisB:
That was my first thought, but, toon shader don't work with transparent skins, and Espér said it's working perfectly. smile

Re: Dynamic Realtime Shadows [Re: Cowabanga] #270102
06/06/09 10:07
06/06/09 10:07
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Umm... maybe you need to set lightrange on Dynamic Light... You said that the light is engine generated, not level generated(which set lightrange at default 300)...

Re: Dynamic Realtime Shadows [Re: bart_the_13th] #270109
06/06/09 11:20
06/06/09 11:20
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
ok.. before everyone sais more things to let me think, that you think i´m stupid:

Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     ^^^^^^^^^^^^^^                                                            //
//                                                                                                                               //
//=================================================================================================================================
//                                                                                                                               //
//                                          EINBINDEN DER UNTERORDNER UND SCRIPTS                                                //
//                                          """""""""""""""""""""""""""""""""""""                                                //
//                                                                                                                               //
//=================================================================================================================================
#include "acknex.h"
#include "default.c"

//=================================================================================================================================
//                                                                                                                               //
//                                                         PANELS                                                                //
//                                                         """"""                                                                //
//                                                                                                                               //
//=================================================================================================================================


//=================================================================================================================================
//                                                                                                                               //
//                                                       FUNKTIONEN                                                              //
//                                                       """"""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================
function lichttest()
{
	my.lightrange = 1000;
	my.x = 500;
	my.y = 500;
	my.z = 800;
	set(my, SHADOW | CAST);
//	while(1)
//	{
//		if(editorgogo == 0)
//		{
//			vec_set(my.x,player.x);
//			my.y += 100;
//			my.z += 400;
//		}
//		wait(1);
//	}
}

function test()
{
	set(my, SHADOW);
}


//=================================================================================================================================
//                                                                                                                               //
//                                                        AKTIONEN                                                               //
//                                                        """"""""                                                               //
//                                                                                                                               //
//=================================================================================================================================

//=================================================================================================================================
//                                                                                                                               //
//                                                     DAS MAINSCRIPT                                                            //
//                                                     """"""""""""""                                                            //
//                                                                                                                               //
//=================================================================================================================================

function main()
{
	fps_max = 60;
	video_mode = 8;
	d3d_antialias = 9;
	video_set(1024,768,32,0);
	video_window(vector(10,10,NULL),NULL,2,"Test");
	level_load("Editor.wmb");
	sky_color.red = 1;
	sky_color.green = 1;
	sky_color.blue = 1;
	wait(3);
	shadow_stencil = 2;
	mouse_mode = 0;
	
	ent_create("Charakter_human_Template_2.mdl",vector(150,150,1000),test);
	ent_create(NULL,vector(0,0,156),lichttest);
	
	wait(1);
	hud_update();
	wait(1);
}



i tried with shadow_stencil = 2; before the level_load too..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Dynamic Realtime Shadows [Re: Espér] #270117
06/06/09 12:04
06/06/09 12:04
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
I see no problem in your code. But:

Code:
#include "acknex.h"
#include "default.c"

What? it's supposed to be:

Code:
#include <acknex.h>
#include <default.c>

Except if you copied them...

Re: Dynamic Realtime Shadows [Re: Cowabanga] #270128
06/06/09 13:00
06/06/09 13:00
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
I know there´s no problem.. but the shadow isn´t working..

and.. i copied acknex.h and default.c in my game folder ( because in the last GS Version, the acknex.h has an error with PANEL Element.. so i needed to use an older acknex.h )


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Dynamic Realtime Shadows [Re: Espér] #270131
06/06/09 13:18
06/06/09 13:18
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Stup up to public beta 7.77 then, its got no problems to the best of my knowledge.

It may also fix the issue too. Mixing old acknex.h's with with different engine can never be trusted.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 4 of 9 1 2 3 4 5 6 7 8 9

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