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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 2 1 2
Spotlight -- Wie erstelle ich nun ein Spotlight? #16430
08/29/03 08:46
08/29/03 08:46
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline OP
Expert
Dima  Offline OP
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Hallo Leute,

Also ich habe mit folgenden Werten rumgespielt:

Code:
  
function ScheinwerferMitte()
{
while(player != null)
{
vec_for_vertex(licht_mitte, player, 258);
my.x = licht_mitte.x;
my.y = licht_mitte.y;
my.z = licht_mitte.z;
my.pan = player.pan;

if(Scheinwerfer == ein)
{
d3d_spotlightcone[0] = 12000;
d3d_spotlightcone[1] = 100;
d3d_spotlightcone[2]= 1;
d3d_spotlightfalloff[0] = 90;
d3d_spotlightfalloff[1] = 1;
d3d_spotlightfalloff[2]= 0;
my.lightrange = 1000;
my.spotlight = on;
}

if(Scheinwerfer == aus)
{
my.lightrange = 0;
my.spotlight = off;
}
wait(1);
}
}



Ok, also es funktioniert zwar, aber irgend wie Total komisch. Ich weiß werklich nicht was da los ist. Ich möchte das eine Entity, so ein kleines Würfelchen, vor dem Player ist. Wenn nun das Licht an ist, soll es wie ein scheinwerfer funktonieren. Diese Funktion, die da oben steht, bekommt diese Entity zugewiesen. Kann mir jemand nun erklären was die einzelnen Werte bedeuten. Es gibt Sterne, für jeden der mir zu helfen versucht, Danke

Gruß Dima


I'm not afraid of competition cos I'm know that I'm best
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: Dima] #16431
08/29/03 11:08
08/29/03 11:08
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
was ist denn komisch ? screenshot?




www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: ello] #16432
08/29/03 11:13
08/29/03 11:13
Joined: Aug 2003
Posts: 1,125
Germany / Reckenfeld
Tobias_Runde Offline
Serious User
Tobias_Runde  Offline
Serious User

Joined: Aug 2003
Posts: 1,125
Germany / Reckenfeld
Die Werte werden doch im Handbuch erklärt!
Ohne Screenshot kann man wirklcih nicht sagen, was da komisch ist.

Denk bitte dran, das ein Spotlicht jeweils ein komplettes Polygon der Lightmap erhellt. Ist das Spotlich zu klein, liegt also genau in einem Polygon, dann sieht man es unter Umständen garnicht (es wird immer von den Kanten ausgegangen).


-------------------------- www.3dgs.de
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: ello] #16433
08/29/03 11:13
08/29/03 11:13
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline OP
Expert
Dima  Offline OP
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Hi,

Das kann ich auch sagen. Das Licht fällt auf den Player selbst, also esleuchtet in die falsche Richtung. Man müsste es um 180 umdrehen.

Gruß Dima


I'm not afraid of competition cos I'm know that I'm best
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: Dima] #16434
08/29/03 11:15
08/29/03 11:15
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
deine werte sind merkwürdig. ich meine vor allem dein lightcone[0]
bedenke nur, ein kreis hat 360° was willst du mit 12000° machen??

d3d_lightcone[0] = innerer Lichtkegel in Grad(1..90, default 30)
d3d_lightcone[1] = dunklerer Bereich um den Lichtkegel(1..90, default 15)
d3d_lightcone[2] = Lichtabfall in dem dunkleren Bereich (-5..5, default 1)

probiers ma damit


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: Tobias_Runde] #16435
08/29/03 11:15
08/29/03 11:15
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline OP
Expert
Dima  Offline OP
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Hallo Tobias,

Danke dir auch für deine Antwort. im Handbuch stehts auf Englisch, da kann ich es nicht eichtig verstehen. Also mein Handbuch ist zu Hälfte auf Englisch, echt komisch.

Gruß Dima


I'm not afraid of competition cos I'm know that I'm best
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: ello] #16436
08/29/03 11:17
08/29/03 11:17
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline OP
Expert
Dima  Offline OP
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Danke Ello,

werds sofort probieren, und dann mein Beitrag editieren

Gruß Dima


I'm not afraid of competition cos I'm know that I'm best
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: Tobias_Runde] #16437
08/29/03 11:23
08/29/03 11:23
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
übrigens, habe ich bei spotlights das phänomen das ich nur eins anzeigen kann.


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: ello] #16438
08/29/03 11:27
08/29/03 11:27
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline OP
Expert
Dima  Offline OP
Expert

Joined: Nov 2002
Posts: 2,148
Germany
So, bin wiede da:





Das sind nun die Screenshots, mit den Werten von Ello. wie ihr seht, fällt das Licht nicht immer so richtig auf die Wände.

Gruß Dima


I'm not afraid of competition cos I'm know that I'm best
Re: Spotlight -- Wie erstelle ich nun ein Spotlight? [Re: Dima] #16439
08/29/03 12:19
08/29/03 12:19
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
hast du schon versucht, als lichtquellenposition die spielerposition zu verwenden?


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Page 1 of 2 1 2

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