Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 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 3 of 6 1 2 3 4 5 6
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Machinery_Frank] #152547
09/13/07 09:09
09/13/07 09:09
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Julzmighty: Just read my response. There are no stencil shadows without "perspective". How to activate shadows and light sources is described in the manual.



Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Machinery_Frank] #152548
09/13/07 09:16
09/13/07 09:16
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
I think the problem with our stencil shadows is: Most users use them with the sun as a light source and therefore do not see the expected perspective shadows. The influence of a nearby dynamic light is the only chance to create interesting and realistic perspective stencil shadows in an indoor environment.


Models, Textures and Games from Dexsoft
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Machinery_Frank] #152549
09/13/07 10:19
09/13/07 10:19
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
they haven't always had perspective with dynamic light sources have they? i was never aware of a change, and from other peoples' discussions i was always under the impression it was always orthographic.

i remember a discussion regarding a video of another game where a little vampire or something was casting a huge shadow on the wall, and the differences between their system and gs's were discussed.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Machinery_Frank] #152550
09/13/07 20:53
09/13/07 20:53
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Quote:

(...) The influence of a nearby dynamic light is the only chance to create interesting and realistic perspective stencil shadows in an indoor environment.




Maybe this isn't popular, because only ONE light entity casts such a shadow. If an entity could have more than one stencil shadow and the shadows are faded away depending on the lightsource intensity and distance to it, heck, I would use it more than very often.

Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: HeelX] #152551
09/14/07 04:36
09/14/07 04:36
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
actually, i agree that we need more shader support, meaning some in engine shaders, instead of having to write all of them in dx (which is slower, because it has to compile the shader every frame, meaning it isn't real shader support, just dx) in all honesty it would be great to have normal mapping and bloom and all these older shaders coded into the engine itself, they would be faster that way, and while on the topic, we need a new lighting engine, the lighting isn't all that great.....

however this being said, this engine was at a great price and this forum is very helpful, so you get what you paid for


- aka Manslayer101
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: HeelX] #152552
09/14/07 07:35
09/14/07 07:35
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
@JulzMighty: I was the one that brought up that game/scene with the huge shadow on the wall. It was a PSP game called Death Jr. If this kind of huge shadow effect can be achieved without a shader, then that would be best, but I fear this may not be possible.

Quote:

Quote:

(...) The influence of a nearby dynamic light is the only chance to create interesting and realistic perspective stencil shadows in an indoor environment.




Maybe this isn't popular, because only ONE light entity casts such a shadow. If an entity could have more than one stencil shadow and the shadows are faded away depending on the lightsource intensity and distance to it, heck, I would use it more than very often.




I have some lines in my dynamic light function which will fade the shadow depending on distance from the light. The problem with it is that it will fade EVERY shadow because of the nature of stencil shadows. It also only works with one light only, but Error said there were possible ways to get around this. Search for the thread in Scripting. Here's the code...these two lines go before my dynamic light while loop:

Code:

my.skill11 = 100*pow(my.minDist,4)/(pow(my.maxDist,2)-pow(my.minDist,2)) + 100*pow(my.minDist,2);
my.skill12 = -100*pow(my.minDist,2)/(pow(my.maxDist,2)-pow(my.minDist,2));



This line will go somewhere near the end of the while loop:

Code:

mat_shadow.alpha = my.skill11 / (clamp(vec_dist(my.x,player.x), my.minDist, my.maxDist) * clamp(vec_dist(my.x, player.x),my.minDist,my.maxDist)) + my.skill12;



You'll need either a VAR or DEFINE for minDist and maxDist. These are the values that will determine the behavior of the fading. It's a bit tricky, and I don't fully understand it, yet it works find once I get the proper values for a level.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Orange Brat] #152553
09/14/07 13:46
09/14/07 13:46
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Quote:

@JulzMighty: I was the one that brought up that game/scene with the huge shadow on the wall. It was a PSP game called Death Jr. If this kind of huge shadow effect can be achieved without a shader, then that would be best, but I fear this may not be possible.


yeh! death jr!
well that's what jcl says 3dgs's stencil shadows can do. i'll give it a go on the weekend, but i've never seen a 3dgs example of it.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: JibbSmart] #152554
09/17/07 09:59
09/17/07 09:59
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
I found an interesting article from Crytek / Siggraph 2007. It describes
shaders and shading, Variance Shadow Maps, Real-Time Ambient Maps,
Screen-Space Ambient Occlusion, different LOD-systems.

I hope this helps to get some ideas for better shadows and shading:

PDF-article from Crytek

The references in this article look very valueable as well.


Models, Textures and Games from Dexsoft
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: Machinery_Frank] #152555
09/17/07 14:27
09/17/07 14:27
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
well for one thing, why can't we use a diffuse map for lighting on our models anyway, or why isn't the light coded to do this anyway? it seems like a6 kept a5's lighting and rendering engine with some minimal improvements. In all honesty before all the shaders and stuff can be added, we need a new rendering engine altogether, as it is the rendering engine is.....ok....but of course i only have a6.5, but even then, the rendering engine is a bit outdated, now an example of my two favorite rendering engines are the serious engine and the unreal engine, unreal being the best, because both are good at making out huge terrains and outdoor environments, i think it's about time to start moving 3dgs in this direction, considering it's popularity has really grown over the years, and way more people are starting to get it, originally it was for casual games, and the engine is perfect for them, but now people are trying good fps', horror games, and other games that require a better render engine.

Actually, i love 3DGS and it's support, if all the bugs were worked out, and the rendering engine was redone along with shaders, and a new lighting engine, it would be one of the best, because of the huge amount of support that you don't get with most engines...


- aka Manslayer101
Re: NEW LIGHT MAP ENGINE AND SUPPORT FOR SHADRES [Re: mpdeveloper_B] #152556
09/17/07 23:43
09/17/07 23:43
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline
Member
Darkyyes  Offline
Member
D

Joined: Jun 2007
Posts: 152
Norway
Ok, Manslayer101 how much is the license price on serious engine and any of the unreal engines counting 1,2,3? Waaay more than what gamestudio does and thus they are alot more complex and can of course tackle more punish. =/


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7
Page 3 of 6 1 2 3 4 5 6

Moderated by  aztec, 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