Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WSAIoctl with SIO_RCVALL in WINNT Pin
valikac12-Feb-04 12:24
valikac12-Feb-04 12:24 
GeneralRe: WSAIoctl with SIO_RCVALL in WINNT Pin
Mike Dimmick13-Feb-04 2:15
Mike Dimmick13-Feb-04 2:15 
GeneralRe: WSAIoctl with SIO_RCVALL in WINNT Pin
valikac13-Feb-04 5:09
valikac13-Feb-04 5:09 
GeneralDBase question Pin
Rassul Yunussov12-Feb-04 5:40
Rassul Yunussov12-Feb-04 5:40 
GeneralRe: DBase question Pin
David Crow12-Feb-04 5:49
David Crow12-Feb-04 5:49 
GeneralRe: DBase question Pin
Rassul Yunussov12-Feb-04 21:10
Rassul Yunussov12-Feb-04 21:10 
GeneralRe: DBase question Pin
David Crow13-Feb-04 4:14
David Crow13-Feb-04 4:14 
GeneralOpenGL Positional Light Problem Pin
_SaTaN_12-Feb-04 4:56
_SaTaN_12-Feb-04 4:56 
OK. Now I'm, uhhh I gon..., ahhhhhh. I don't have any idea what is THE PROBLEM. I set all stuff like this text down there but when I change light2 position from light2_position[]={10.0,0.0,10.0,0.0}; to light2_position[]={10.0,0.0,10.0,1.0}; (last number from 0.0 to 1.0 // directional to positional type of light) there is no lightning at all. It's just change of light type not position and other stuff. All setup code:

GLfloat light2_ambient[]={0.1,0.1,0.1,1.0};<br />
GLfloat light2_diffuse[]={1.0,1.0,1.0,1.0};<br />
GLfloat light2_specular[]={1.0,1.0,1.0,1.0};<br />
GLfloat light2_position[]={10.0,0.0,10.0,0.0};<br />
GLfloat light2_spot_direction[]={0.0,0.0,0.0};<br />
GLfloat light2_spot_exponent[]={1.0};<br />
GLfloat light2_spot_cutoff[]={45.0};<br />
GLfloat light2_quadric_attenuation[]={1.0};<br />
GLfloat light2_linear_attenuation[]={1.0};<br />
GLfloat light2_constant_attenuation[]={1.0};<br />
		<br />
glLightfv(GL_LIGHT2, GL_AMBIENT,light2_ambient);<br />
glLightfv(GL_LIGHT2, GL_DIFFUSE,light2_diffuse);<br />
glLightfv(GL_LIGHT2, GL_SPECULAR,light2_specular);<br />
glLightfv(GL_LIGHT2, GL_POSITION, light2_position);<br />
glLightfv(GL_LIGHT2, GL_SPOT_DIRECTION, light2_spot_direction);<br />
glLightfv(GL_LIGHT2, GL_SPOT_EXPONENT, light2_spot_exponent);<br />
glLightfv(GL_LIGHT2, GL_SPOT_CUTOFF, light2_spot_cutoff);<br />
glLightfv(GL_LIGHT2, GL_CONSTANT_ATTENUATION, light2_constant_attenuation);<br />
glLightfv(GL_LIGHT2, GL_LINEAR_ATTENUATION, light2_linear_attenuation);<br />
glLightfv(GL_LIGHT2, GL_QUADRATIC_ATTENUATION, light2_quadric_attenuation);


something missing????????WTF | :WTF: WTF | :WTF: WTF | :WTF: Why is it working as directional and not as positional??? I didn't say that if light2_spot_cutoff[]={45.0}; is 180.0 and not something form 0.0 to 90.0 then it works again. WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYMad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad: Mad | :mad:

<<s@t@n>>
GeneralRe: OpenGL Positional Light Problem Pin
Andrew Walker12-Feb-04 19:23
Andrew Walker12-Feb-04 19:23 
QuestionTools to catch heap corruption? Pin
SteveTSS12-Feb-04 4:39
SteveTSS12-Feb-04 4:39 
AnswerRe: Tools to catch heap corruption? Pin
Anonymous12-Feb-04 6:49
Anonymous12-Feb-04 6:49 
AnswerRe: Tools to catch heap corruption? Pin
John M. Drescher12-Feb-04 7:19
John M. Drescher12-Feb-04 7:19 
Generalplotting from VC++ .NET Pin
BlueMonkey6812-Feb-04 4:36
BlueMonkey6812-Feb-04 4:36 
GeneralRe: plotting from VC++ .NET Pin
valikac12-Feb-04 12:25
valikac12-Feb-04 12:25 
GeneralSetting the font in SDI Pin
Member 36008212-Feb-04 4:27
Member 36008212-Feb-04 4:27 
GeneralRe: Setting the font in SDI Pin
Steve S12-Feb-04 6:07
Steve S12-Feb-04 6:07 
Generalmodal dialog problem Pin
Coming12-Feb-04 3:45
Coming12-Feb-04 3:45 
GeneralRe: modal dialog problem Pin
basementman12-Feb-04 3:55
basementman12-Feb-04 3:55 
GeneralRe: modal dialog problem Pin
Coming12-Feb-04 4:06
Coming12-Feb-04 4:06 
GeneralRe: modal dialog problem Pin
Dennis L12-Feb-04 4:15
Dennis L12-Feb-04 4:15 
GeneralRe: modal dialog problem Pin
David Crow12-Feb-04 5:55
David Crow12-Feb-04 5:55 
GeneralRe: modal dialog problem Pin
RobJones12-Feb-04 4:50
RobJones12-Feb-04 4:50 
Generalreading header Pin
styve12-Feb-04 3:37
styve12-Feb-04 3:37 
GeneralRegistration procedure Pin
Dennis L12-Feb-04 3:34
Dennis L12-Feb-04 3:34 
GeneralRe: Registration procedure Pin
David Crow12-Feb-04 5:52
David Crow12-Feb-04 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.