.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Grafica e immagini digitali (http://www.dsy.it/forum/forumdisplay.php?forumid=77)
-- Problema con file nprBorder.sl in esercitazioni eidolab (http://www.dsy.it/forum/showthread.php?threadid=40658)


Posted by Armakazam on 27-06-2010 12:00:

Problema con file nprBorder.sl in esercitazioni eidolab

Ciao ragazzi, io ho un problema con questo file, quando lancio la compilazione mi esce l'errore:

nprBorder.sl(12) : error : Parse error
nprBorder.sl(13) : error : Identifier f not found

in quel tratto il testo è questo

6 {
7 color finalcolor, colortemp;
8 normal Nf;
9 vector If;
10
11 N
12 f = faceforward(normalize(N), I);
13
14 If = normalize(I);
15
16 float val = Nf.If;


eliminando l'N dalla riga 11, elimino l'errore nprBorder.sl(12), solo che non capisco come fare ad eleminare l'altro errore...ed è importante che lo sistemi in quanto poi non funziona bene il rib...

infatti nel lancio del rib mi esce l'errore:
Unable to find share "nprBorder"

qualcuno sa aiutarmi cortesemente?


Posted by gae84 on 27-06-2010 18:18:

le righe 11 e 12 cambiale con

Nf = faceforward(normalize(N), I);


Posted by Armakazam on 28-06-2010 09:22:

ci avrei scommesso che era una cazzata...

come sempre la soluzione piu semplice è quella che non viene in mente!!


All times are GMT. The time now is 07:26.
Show all 3 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.