Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Grafica e immagini digitali > Parse Error
  Last Thread   Next Thread
Author
Thread    Post New Thread    Post A Reply
IsaMetallo
.illuminato.

User info:
Registered: Mar 2008
Posts: 179 (0.03 al dì)
Location: Treviglio
Corso: Comunicazione Digitale
Anno: Secondo
Time Online: 15:35:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Parse Error

salve.. sto tentando ci far compilare gli shader fatti oggi pomeriggio a lezione, ma per tutti e quattro il compilatore mi restituisce:
error: Parse error


vi posto qui il primo giusto per capire cosa c'è che non va:

surface myCartoon_1 (float c = 0.3; color bordercolor=(0.1 0.1 0.1))
{
float bordo;
vector If,Nf;
If= normalize(faceforward(N),I);
Nf = normalize(-I);
bordo= abs(If.Nf);
if (bordo<=c)
Ci = bordercolor;
else
Ci=Cs;

}

gli altri sono semplici espansioni di questo dunque l'errore dovrebbe essere già qui... vi ringrazio

__________________
"They Can't Stop Us Let Them Try...
for heavy metal we would die..."
(Manowar - Die For Metal)

http://www.jackassubs.com - Admin (in ricerca di traduttori!!!)

29-10-2008 19:48
Click Here to See the Profile for IsaMetallo Click here to Send IsaMetallo a Private Message Find more posts by IsaMetallo Add IsaMetallo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Ste.dv
.precettore.

User info:
Registered: Apr 2008
Posts: 86 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 23:04:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Credo (guardando altri shader) che i valori RGB nell'inizializzazione delle variabili di tipo color vadano separati da virgole.

surface myCartoon_1 (float c = 0.3; color bordercolor=(0.1, 0.1, 0.1))
{
etc.

30-10-2008 18:06
Click Here to See the Profile for Ste.dv Click here to Send Ste.dv a Private Message Find more posts by Ste.dv Add Ste.dv to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
IsaMetallo
.illuminato.

User info:
Registered: Mar 2008
Posts: 179 (0.03 al dì)
Location: Treviglio
Corso: Comunicazione Digitale
Anno: Secondo
Time Online: 15:35:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questo è vero, ma anche correggendola situazione non cambia... andando più nel dettaglio mi dice che non trova la funzione normalize e faceforward, cosa assurda visto ch eme le compila perfettamente su altri shader...

__________________
"They Can't Stop Us Let Them Try...
for heavy metal we would die..."
(Manowar - Die For Metal)

http://www.jackassubs.com - Admin (in ricerca di traduttori!!!)

30-10-2008 18:24
Click Here to See the Profile for IsaMetallo Click here to Send IsaMetallo a Private Message Find more posts by IsaMetallo Add IsaMetallo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Jep
.crawling in the dark.

User info:
Registered: May 2006
Posts: 311 (0.05 al dì)
Location: Sorrento / Milano
Corso: Incomunicazione Digitale
Anno:
Time Online: 6 Days, 13:53:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by IsaMetallo
questo è vero, ma anche correggendola situazione non cambia... andando più nel dettaglio mi dice che non trova la funzione normalize e faceforward, cosa assurda visto ch eme le compila perfettamente su altri shader...


invece di "normalize(faceforward(N),I)" prova "faceforward(normalize(N),I)"
;)

__________________
"bisogna solo scegliere cosa fare con il tempo che ci viene concesso"

"Il problema non sta nella caduta, ma nell'atterraggio..."

30-10-2008 22:33
Click Here to See the Profile for Jep Click here to Send Jep a Private Message Visit Jep's homepage! Find more posts by Jep Add Jep to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
IsaMetallo
.illuminato.

User info:
Registered: Mar 2008
Posts: 179 (0.03 al dì)
Location: Treviglio
Corso: Comunicazione Digitale
Anno: Secondo
Time Online: 15:35:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie mille... che errore idiota... non avevo pensato alla sintassi di queste funzioni... è che il compilatore non è proprio user-friendly... grazie ancora!!

__________________
"They Can't Stop Us Let Them Try...
for heavy metal we would die..."
(Manowar - Die For Metal)

http://www.jackassubs.com - Admin (in ricerca di traduttori!!!)

30-10-2008 22:51
Click Here to See the Profile for IsaMetallo Click here to Send IsaMetallo a Private Message Find more posts by IsaMetallo Add IsaMetallo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
tyrdrummer
dsy moderator

User info:
Registered: Jun 2005
Posts: 487 (0.07 al dì)
Location: Milan
Corso: Com.Dig
Anno:
Time Online: 5 Days, 3:55:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grande Jà , allora chiudo!

30-10-2008 23:09
Click Here to See the Profile for tyrdrummer Click here to Send tyrdrummer a Private Message Find more posts by tyrdrummer Add tyrdrummer to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:43.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.037 seconds (74.37% PHP - 25.63% MySQL) con 25 query.