Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, henrybane), 1,101 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
using a flashlight #125906
04/23/07 19:34
04/23/07 19:34
Joined: Jul 2004
Posts: 52
Vienna
H
Hawk Offline OP
Junior Member
Hawk  Offline OP
Junior Member
H

Joined: Jul 2004
Posts: 52
Vienna
Hi, i used the flashlight script from aum18 but i am not satisfied at all. Because i want a nice spotlight like it looks when you create a light in wed.
Like in this picture, these are two lights created in wed:

But my flashlight hasn't a real spot although i use "my.spotlight=on;" and the "d3d_spotlightcone" vector. It looks like in these pictures:

Looks like there is a wrong light/shadow calculation, or maybe i am wrong..and I don't like these hard borders, i want it as smooth as it looks like from lights created in wed. I don't mean the transition to dark, but it's like a triangle instead of a round spot.

I hope somebody can help me :/


Commcercial A6.60
Re: using a flashlight [Re: Hawk] #125907
04/23/07 19:50
04/23/07 19:50
Joined: May 2005
Posts: 155
C:\Program files\GStudio6
alphaindigo Offline
Member
alphaindigo  Offline
Member

Joined: May 2005
Posts: 155
C:\Program files\GStudio6
the shadows created in WED are prerendered and therefore have more detal than the realtime dynamic light for your torchbeam


beware the sock! - tLempoary...
Re: using a flashlight [Re: alphaindigo] #125908
04/23/07 20:18
04/23/07 20:18
Joined: Jul 2004
Posts: 52
Vienna
H
Hawk Offline OP
Junior Member
Hawk  Offline OP
Junior Member
H

Joined: Jul 2004
Posts: 52
Vienna
but how can i create a flashlight that looks for example like that one?




Commcercial A6.60
Re: using a flashlight [Re: Hawk] #125909
04/24/07 02:50
04/24/07 02:50
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
The picture immediatly above looks like it is using a projected texture (decal). Decals will be in A7, bu are not available now.

However, you can improve the resolution of the dynamic lights through the compiler. When your compiling, click on the arrow in the bottom-right corner for advanced options. Then adjust the Tesselate Shaded slider.

Lower values will divide surfaces into more triangles (smaller), and higher values will divide less (larger triangles). So you obviously want the lowest setting possible so that the triangles are NOT NOTICED.

Be careful though, because setting this variable too low will increase build time, lower the FPS, and can cause build errors. The trick is finding the median through a lot of testing.

Good luck...


xXxGuitar511
- Programmer
Re: using a flashlight [Re: xXxGuitar511] #125910
04/24/07 09:59
04/24/07 09:59
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Try improve lights in display.wdl. Or play with shadow settings like treshold or something.


Never say never.
Re: using a flashlight [Re: tompo] #125911
04/24/07 12:41
04/24/07 12:41
Joined: Jul 2004
Posts: 52
Vienna
H
Hawk Offline OP
Junior Member
Hawk  Offline OP
Junior Member
H

Joined: Jul 2004
Posts: 52
Vienna
thanks for your help, playing with the tesselate shaded slider works pretty fine!
i don't use the templates, but i will check the display.wdl, maybe i will find something usefull to increase the quality even more.


Commcercial A6.60
Re: using a flashlight [Re: Hawk] #125912
04/24/07 12:45
04/24/07 12:45
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Take look at "d3d_spotlightcone" and "d3d_spotlightfalloff". Play with the values, youŽll recognize an improvement.


no science involved
Re: using a flashlight [Re: fogman] #125913
09/05/07 00:11
09/05/07 00:11
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
http://www.live-share.com/files/263840/Flashlight.rar.html
This is my flashlight example. Old script modified. (Source&Compiled)
**Sorry my bad speak english**



Last edited by emre; 09/05/07 17:22.
Re: using a flashlight [Re: Emre] #125914
09/06/07 10:14
09/06/07 10:14

A
Anonymous
Unregistered
Anonymous
Unregistered
A



@emre can you post this on rapidshare.com because the server is extreme slow

Last edited by Fear411; 09/06/07 10:29.
Re: using a flashlight [Re: ] #125915
09/06/07 17:40
09/06/07 17:40
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline
Member
Darkyyes  Offline
Member
D

Joined: Jun 2007
Posts: 152
Norway
I agree with Fear411, live-share is nutcracking slow,
getting a insane 0.1KB download rate! =/


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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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